Skip to content

Commit

Permalink
fix(rviz): fix topic name of traffic_light (autowarefoundation#583)
Browse files Browse the repository at this point in the history
* fix(rviz): fix topic name of traffic_light

Signed-off-by: 1222-takeshi <[email protected]>

* feat: update multi_data_monitor yaml for traffic_light

Signed-off-by: 1222-takeshi <[email protected]>

---------

Signed-off-by: 1222-takeshi <[email protected]>
  • Loading branch information
1222-takeshi authored Aug 2, 2023
1 parent ecfaf48 commit 52c8e6c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions autoware_launch/rviz/awsim.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ Visualization Manager:
shoulder_lanelet direction: true
shoulder_left_lane_bound: true
shoulder_right_lane_bound: true
shoulder_road_lanelets: true
shoulder_road_lanelets: false
stop_lines: true
traffic_light: true
traffic_light_id: true
Expand Down Expand Up @@ -939,7 +939,7 @@ Visualization Manager:
Durability Policy: Volatile
History Policy: Keep Last
Reliability Policy: Best Effort
Value: /perception/traffic_light_recognition/debug/rois
Value: /perception/traffic_light_recognition/camera6/debug/rois
Value: true
- Class: rviz_default_plugins/MarkerArray
Enabled: true
Expand All @@ -951,7 +951,7 @@ Visualization Manager:
Durability Policy: Volatile
History Policy: Keep Last
Reliability Policy: Best Effort
Value: /perception/traffic_light_recognition/traffic_light_map_based_detector/debug/markers
Value: /perception/traffic_light_recognition/camera6/detection/traffic_light_map_based_detector/debug/markers
Value: true
Enabled: true
Name: TrafficLight
Expand Down
9 changes: 9 additions & 0 deletions autoware_launch/rviz/config/awsim.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,12 @@ QLabel.value[test="unknown_traffic_light"] {
border-width: 1px 1px 1px 1px;
border-style: solid;
}

QLabel.value[test="none_traffic_light"] {
font-size: 12px;
font-weight: bold;
color: black;
background-color: white;
border-width: 1px 1px 1px 1px;
border-style: solid;
}
5 changes: 3 additions & 2 deletions autoware_launch/rviz/config/awsim_data_monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ widgets:
rules:
- class: Access
fails: ERROR-VALUE
field: [result, signal, lights, 0, color]
field: [elements, 0, color]
- class: SetFirstIf
type: text
list:
- { eq: 1, value: Red, attrs: { test: red_traffic_light } }
- { eq: 2, value: Yellow, attrs: { test: yellow_traffic_light } }
- { eq: 3, value: Green, attrs: { test: green_traffic_light } }
- { eq: ERROR-VALUE, value: unknown, attrs: { test: green_traffic_light } }
- { eq: 0, value: Unknown, attrs: { test: unknown_traffic_light } }
- { eq: ERROR-VALUE, value: None, attrs: { test: none_traffic_light } }
streams:
- { class: subscription, label: vehicle_gear, topic: /vehicle/status/gear_status, field: report }
- class: subscription
Expand Down

0 comments on commit 52c8e6c

Please sign in to comment.