-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Traffic light module #154
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3778700
download traffic light models
habby1012 a0b97f7
config camera position and angle
habby1012 837452a
use traffic light module
habby1012 7a1bbbf
prebuild traffic light classifier models
habby1012 cbf0546
add build_only when prebuilding traffic light classifier models
habby1012 13fd5b8
modify env.sh - Use correct traffic light topic for traffic light rec…
habby1012 944637a
Add a script, which runs traffic light module
habby1012 eedcfcc
Add some parameters for traffic light module
habby1012 8c3396d
download traffic light map
habby1012 2c42736
merge main
habby1012 1f773c5
zenoh carla bridge new commit
habby1012 68d0796
use new zenoh carla bridge submodule
habby1012 c18c929
Add comment in traffic light launch script
habby1012 39656b5
Create autoware_traffic_light.rst
habby1012 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
export VEHICLE_NAME="${1:-v1}" | ||
export ZENOH_CARLA_IP_PORT="${2:-'127.0.0.1:7447'}" | ||
export ZENOH_FMS_IP_PORT="${3:-'127.0.0.1:7887'}" | ||
|
||
# Add default port for Zenoh IP in Carla and FMS | ||
if [[ ${ZENOH_CARLA_IP_PORT} != *":"* ]]; then | ||
export ZENOH_CARLA_IP_PORT="${ZENOH_CARLA_IP_PORT}:7447" | ||
fi | ||
if [[ ${ZENOH_FMS_IP_PORT} != *":"* ]]; then | ||
export ZENOH_FMS_IP_PORT="${ZENOH_FMS_IP_PORT}:7887" | ||
fi | ||
|
||
# Log folder | ||
LOG_PATH=autoware_log/`date '+%Y-%m-%d_%H:%M:%S'`/ | ||
mkdir -p ${LOG_PATH} | ||
|
||
# Run the program | ||
parallel --verbose --lb ::: \ | ||
"ros2 launch autoware_carla_launch autoware_zenoh.launch.xml is_simulation:=false use_traffic_light_recognition:=true \ | ||
2>&1 | tee ${LOG_PATH}/autoware.log" \ | ||
"${AUTOWARE_CARLA_ROOT}/external/zenoh-plugin-ros2dds/target/release/zenoh-bridge-ros2dds \ | ||
-n /${VEHICLE_NAME} -d ${ROS_DOMAIN_ID} -c ${ZENOH_BRIDGE_ROS2DDS_CONFIG} -e tcp/${ZENOH_CARLA_IP_PORT} -e tcp/${ZENOH_FMS_IP_PORT} \ | ||
2>&1 | tee ${LOG_PATH}/zenoh_bridge_ros2dds.log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot why we need
is_simulation:=false
. Could you please add the comment here?