Skip to content

Commit

Permalink
add TrafficLight msgs
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk committed May 9, 2024
1 parent f2a2096 commit 18463a6
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoware_perception_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"msg/TrackedObject.msg"
"msg/TrackedObjectKinematics.msg"
"msg/TrackedObjects.msg"
"msg/TrafficLightElement.msg"
"msg/TrafficLightGroup.msg"
"msg/TrafficLightGroupArray.msg"
# TODO(youtalk): Remove below after migration to TrafficLight
"msg/TrafficSignalElement.msg"
"msg/TrafficSignal.msg"
"msg/TrafficSignalArray.msg"
Expand Down
31 changes: 31 additions & 0 deletions autoware_perception_msgs/msg/TrafficLightElement.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# constants for common use
uint8 UNKNOWN = 0

# constants for color
uint8 RED = 1
uint8 AMBER = 2
uint8 GREEN = 3
uint8 WHITE = 4

# constants for shape
uint8 CIRCLE = 1
uint8 LEFT_ARROW = 2
uint8 RIGHT_ARROW = 3
uint8 UP_ARROW = 4
uint8 UP_LEFT_ARROW=5
uint8 UP_RIGHT_ARROW=6
uint8 DOWN_ARROW = 7
uint8 DOWN_LEFT_ARROW = 8
uint8 DOWN_RIGHT_ARROW = 9
uint8 CROSS = 10

# constants for status
uint8 SOLID_OFF = 1
uint8 SOLID_ON = 2
uint8 FLASHING = 3

# variables
uint8 color
uint8 shape
uint8 status
float32 confidence
2 changes: 2 additions & 0 deletions autoware_perception_msgs/msg/TrafficLightGroup.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
int64 traffic_light_group_id
autoware_perception_msgs/TrafficLightElement[] elements
2 changes: 2 additions & 0 deletions autoware_perception_msgs/msg/TrafficLightGroupArray.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
builtin_interfaces/Time stamp
autoware_perception_msgs/TrafficLightGroup[] traffic_light_groups

0 comments on commit 18463a6

Please sign in to comment.