Skip to content
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

feat: update msg definitions #87

Merged
merged 10 commits into from
May 9, 2024
10 changes: 10 additions & 0 deletions autoware_perception_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@ find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/DetectedObject.msg"
"msg/DetectedObjectKinematics.msg"
"msg/DetectedObjects.msg"
"msg/ObjectClassification.msg"
"msg/PredictedObject.msg"
"msg/PredictedObjectKinematics.msg"
"msg/PredictedObjects.msg"
"msg/PredictedPath.msg"
"msg/Shape.msg"
"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
4 changes: 4 additions & 0 deletions autoware_perception_msgs/msg/DetectedObject.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
float32 existence_probability
ObjectClassification[] classification
DetectedObjectKinematics kinematics
Shape shape
25 changes: 25 additions & 0 deletions autoware_perception_msgs/msg/DetectedObjectKinematics.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Only position is available, orientation is empty. Note that the shape can be an oriented
# bounding box but the direction the object is facing is unknown, in which case
# orientation should be empty.
uint8 UNAVAILABLE=0

# The orientation is determined only up to a sign flip. For instance, assume that cars are
# longer than they are wide, and the perception pipeline can accurately estimate the
# dimensions of a car. It should set the orientation to coincide with the major axis, with
# the sign chosen arbitrarily, and use this tag to signify that the orientation could
# point to the front or the back.
uint8 SIGN_UNKNOWN=1

# The full orientation is available. Use e.g. for machine-learning models that can
# differentiate between the front and back of a vehicle.
uint8 AVAILABLE=2

geometry_msgs/PoseWithCovariance pose_with_covariance

bool has_position_covariance
uint8 orientation_availability

geometry_msgs/TwistWithCovariance twist_with_covariance

bool has_twist
bool has_twist_covariance
2 changes: 2 additions & 0 deletions autoware_perception_msgs/msg/DetectedObjects.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
std_msgs/Header header
DetectedObject[] objects
5 changes: 5 additions & 0 deletions autoware_perception_msgs/msg/TrackedObject.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
unique_identifier_msgs/UUID object_id
float32 existence_probability
ObjectClassification[] classification
TrackedObjectKinematics kinematics
Shape shape
22 changes: 22 additions & 0 deletions autoware_perception_msgs/msg/TrackedObjectKinematics.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Only position is available, orientation is empty. Note that the shape can be an oriented
# bounding box but the direction the object is facing is unknown, in which case
# orientation should be empty.
uint8 UNAVAILABLE=0

# The orientation is determined only up to a sign flip. For instance, assume that cars are
# longer than they are wide, and the perception pipeline can accurately estimate the
# dimensions of a car. It should set the orientation to coincide with the major axis, with
# the sign chosen arbitrarily, and use this tag to signify that the orientation could
# point to the front or the back.
uint8 SIGN_UNKNOWN=1

# The full orientation is available. Use e.g. for machine-learning models that can
# differentiate between the front and back of a vehicle.
uint8 AVAILABLE=2

geometry_msgs/PoseWithCovariance pose_with_covariance
geometry_msgs/TwistWithCovariance twist_with_covariance
geometry_msgs/AccelWithCovariance acceleration_with_covariance

uint8 orientation_availability
bool is_stationary
2 changes: 2 additions & 0 deletions autoware_perception_msgs/msg/TrackedObjects.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
std_msgs/Header header
TrackedObject[] objects
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
1 change: 1 addition & 0 deletions autoware_perception_msgs/msg/TrafficSignal.msg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# TODO(youtalk): Remove this after migration to TrafficLight
int64 traffic_signal_id
autoware_perception_msgs/TrafficSignalElement[] elements
1 change: 1 addition & 0 deletions autoware_perception_msgs/msg/TrafficSignalArray.msg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# TODO(youtalk): Remove this after migration to TrafficLight
builtin_interfaces/Time stamp
autoware_perception_msgs/TrafficSignal[] signals
1 change: 1 addition & 0 deletions autoware_perception_msgs/msg/TrafficSignalElement.msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# TODO(youtalk): Remove this after migration to TrafficLight
# constants for common use
uint8 UNKNOWN = 0

Expand Down
2 changes: 0 additions & 2 deletions autoware_planning_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"msg/TrajectoryPoint.msg"
"msg/Path.msg"
"msg/PathPoint.msg"
"msg/PathWithLaneId.msg"
"msg/PathPointWithLaneId.msg"
DEPENDENCIES
geometry_msgs
std_msgs
Expand Down
2 changes: 0 additions & 2 deletions autoware_planning_msgs/msg/PathPointWithLaneId.msg

This file was deleted.

4 changes: 0 additions & 4 deletions autoware_planning_msgs/msg/PathWithLaneId.msg

This file was deleted.

4 changes: 0 additions & 4 deletions autoware_vehicle_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

rosidl_generate_interfaces(${PROJECT_NAME}
"msg/ControlModeCommand.msg"
"msg/ControlModeReport.msg"
"msg/Engage.msg"
"msg/GearCommand.msg"
Expand All @@ -19,9 +18,6 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"msg/SteeringReport.msg"
"msg/TurnIndicatorsCommand.msg"
"msg/TurnIndicatorsReport.msg"
"msg/VehicleControlCommand.msg"
"msg/VehicleKinematicState.msg"
"msg/VehicleOdometry.msg"
"msg/VelocityReport.msg"
"srv/ControlModeCommand.srv"
DEPENDENCIES
Expand Down
6 changes: 0 additions & 6 deletions autoware_vehicle_msgs/msg/ControlModeCommand.msg

This file was deleted.

5 changes: 0 additions & 5 deletions autoware_vehicle_msgs/msg/VehicleControlCommand.msg

This file was deleted.

3 changes: 0 additions & 3 deletions autoware_vehicle_msgs/msg/VehicleKinematicState.msg

This file was deleted.

4 changes: 0 additions & 4 deletions autoware_vehicle_msgs/msg/VehicleOdometry.msg

This file was deleted.

Loading