Skip to content

Commit

Permalink
feat(planning): add planning factor msgs
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <[email protected]>
  • Loading branch information
satoshi-ota committed Jan 7, 2025
1 parent d81c8bb commit d9e9177
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoware_adapi_v1_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ rosidl_generate_interfaces(${PROJECT_NAME}
perception/msg/DynamicObjectKinematics.msg
perception/msg/DynamicObjectPath.msg
perception/msg/ObjectClassification.msg
planning/msg/ControlPoint.msg
planning/msg/SteeringFactor.msg
planning/msg/SteeringFactorArray.msg
planning/msg/VelocityFactor.msg
planning/msg/VelocityFactorArray.msg
planning/msg/PlanningBehavior.msg
planning/msg/PlanningFactor.msg
planning/msg/PlanningFactorArray.msg
planning/msg/PlanningSequence.msg
planning/msg/CooperationCommand.msg
planning/msg/CooperationDecision.msg
Expand Down
2 changes: 2 additions & 0 deletions autoware_adapi_v1_msgs/planning/msg/ControlPoint.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
geometry_msgs/Pose pose
float32 distance
41 changes: 41 additions & 0 deletions autoware_adapi_v1_msgs/planning/msg/PlanningFactor.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## constants for common use
uint16 UNKNOWN = 0

# These constants are used in the module field.
uint16 ADAPTIVE_CRUISE = 1
uint16 AVOIDANCE = 2
uint16 CROSSWALK = 3
uint16 GOAL_PLANNER = 4
uint16 INTERSECTION = 5
uint16 LANE_CHANGE = 6
uint16 MERGE = 7
uint16 NO_DRIVABLE_LANE = 8
uint16 NO_STOPPING_AREA = 9
uint16 REAR_CHECK = 10
uint16 ROUTE_OBSTACLE = 11
uint16 RUN_OUT = 12
uint16 SIDEWALK = 13
uint16 START_PLANNER = 14
uint16 STOP_SIGN = 15
uint16 SURROUNDING_OBSTACLE = 16
uint16 TRAFFIC_SIGNAL = 17
uint16 USER_DEFINED_DETECTION_AREA = 18
uint16 VIRTUAL_TRAFFIC_LIGHT = 19

# constants for behavior
uint16 NONE = 1
uint16 SLOW_DOWN = 2
uint16 STOP = 3
uint16 SHIFT_LEFT = 4
uint16 SHIFT_RIGHT = 5
uint16 TURN_LEFT = 6
uint16 TURN_RIGHT = 7

# variables
uint16 module

autoware_adapi_v1_msgs/ControlPoint[] control_points

uint16 behavior

string detail
2 changes: 2 additions & 0 deletions autoware_adapi_v1_msgs/planning/msg/PlanningFactorArray.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
std_msgs/Header header
autoware_adapi_v1_msgs/PlanningFactor[] factors

0 comments on commit d9e9177

Please sign in to comment.