Skip to content

Commit

Permalink
feat(autoware_planning_msgs): move tier4_planning_msgs to autoware_pl…
Browse files Browse the repository at this point in the history
…anning_msgs

Signed-off-by: liu cui <cynthia.liu@autocore.ai>
  • Loading branch information
cyn-liu committed Dec 26, 2024
1 parent 0631905 commit 30d90b7
Show file tree
Hide file tree
Showing 26 changed files with 178 additions and 0 deletions.
26 changes: 26 additions & 0 deletions autoware_planning_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,33 @@ rosidl_generate_interfaces(${PROJECT_NAME}
"msg/TrajectoryPoint.msg"
"msg/Path.msg"
"msg/PathPoint.msg"
"msg/AvoidanceDebugMsg.msg"
"msg/AvoidanceDebugMsgArray.msg"
"msg/ControlPoint.msg"
"msg/ExpandStopRange.msg"
"msg/LateralOffset.msg"
"msg/PathChangeModule.msg"
"msg/PathChangeModuleId.msg"
"msg/PathPointWithLaneId.msg"
"msg/PathWithLaneId.msg"
"msg/PlanningFactor.msg"
"msg/PlanningFactorArray.msg"
"msg/RerouteAvailability.msg"
"msg/RouteState.msg"
"msg/SafetyFactor.msg"
"msg/SafetyFactorArray.msg"
"msg/Scenario.msg"
"msg/StopFactor.msg"
"msg/StopSpeedExceeded.msg"
"msg/VelocityLimit.msg"
"msg/VelocityLimitClearCommand.msg"
"msg/VelocityLimitConstraints.msg"
"srv/ClearRoute.srv"
"srv/SetLaneletRoute.srv"
"srv/SetWaypointRoute.srv"
DEPENDENCIES
autoware_common_msgs
autoware_perception_msgs
geometry_msgs
std_msgs
unique_identifier_msgs
Expand Down
9 changes: 9 additions & 0 deletions autoware_planning_msgs/msg/AvoidanceDebugMsg.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
string object_id
bool allow_avoidance
float64 longitudinal_distance
float64 lateral_distance_from_centerline
float64 to_furthest_linestring_distance
float64 max_shift_length
float64 required_jerk
float64 maximum_jerk
string failed_reason
2 changes: 2 additions & 0 deletions autoware_planning_msgs/msg/AvoidanceDebugMsgArray.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
std_msgs/Header header
autoware_planning_msgs/AvoidanceDebugMsg[] avoidance_info
4 changes: 4 additions & 0 deletions autoware_planning_msgs/msg/ControlPoint.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
geometry_msgs/Pose pose
float32 velocity
float32 shift_length
float32 distance
2 changes: 2 additions & 0 deletions autoware_planning_msgs/msg/ExpandStopRange.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
builtin_interfaces/Time stamp
float32 expand_stop_range
2 changes: 2 additions & 0 deletions autoware_planning_msgs/msg/LateralOffset.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
builtin_interfaces/Time stamp
float32 lateral_offset
2 changes: 2 additions & 0 deletions autoware_planning_msgs/msg/PathChangeModule.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
std_msgs/Header header
autoware_planning_msgs/PathChangeModuleId module
8 changes: 8 additions & 0 deletions autoware_planning_msgs/msg/PathChangeModuleId.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
int32 type

int32 NONE = 0
int32 AVOIDANCE = 1
int32 LANE_CHANGE = 2
int32 FORCE_LANE_CHANGE = 3
int32 GOAL_PLANNER = 4
int32 START_PLANNER = 5
2 changes: 2 additions & 0 deletions autoware_planning_msgs/msg/PathPointWithLaneId.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
autoware_planning_msgs/PathPoint point
int64[] lane_ids
4 changes: 4 additions & 0 deletions autoware_planning_msgs/msg/PathWithLaneId.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
std_msgs/Header header
autoware_planning_msgs/PathPointWithLaneId[] points
geometry_msgs/Point[] left_bound
geometry_msgs/Point[] right_bound
20 changes: 20 additions & 0 deletions autoware_planning_msgs/msg/PlanningFactor.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# constants for behavior
uint16 UNKNOWN = 0
uint16 NONE = 1
uint16 SLOW_DOWN = 2
uint16 STOP = 3
uint16 LEFT_SHIFT = 4
uint16 RIGHT_SHIFT = 5

# variables
string module

bool is_driving_forward

autoware_planning_msgs/ControlPoint[] control_points

uint16 behavior

string detail

autoware_planning_msgs/SafetyFactorArray safety_factors
2 changes: 2 additions & 0 deletions autoware_planning_msgs/msg/PlanningFactorArray.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
std_msgs/Header header
autoware_planning_msgs/PlanningFactor[] factors
2 changes: 2 additions & 0 deletions autoware_planning_msgs/msg/RerouteAvailability.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
builtin_interfaces/Time stamp
bool availability
12 changes: 12 additions & 0 deletions autoware_planning_msgs/msg/RouteState.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
uint8 UNKNOWN = 0
uint8 INITIALIZING = 1
uint8 UNSET = 2
uint8 ROUTING = 3
uint8 SET = 4
uint8 REROUTING = 5
uint8 ARRIVED = 6
uint8 ABORTED = 7
uint8 INTERRUPTED = 8

builtin_interfaces/Time stamp
uint8 state
27 changes: 27 additions & 0 deletions autoware_planning_msgs/msg/SafetyFactor.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# constants for common use
uint16 UNKNOWN = 0

# constants for factor type
uint16 POINTCLOUD = 1
uint16 OBJECT = 2

# variables
uint16 type

# use only for predicted objects
unique_identifier_msgs/UUID object_id

# use only for predicted objects
autoware_perception_msgs/PredictedPath predicted_path

# time to collision in relative to the header time
float32 ttc_begin

float32 ttc_end

# type == POINTCLOUD: the position of the each points
# type == OBJECT: the object position
geometry_msgs/Point[] points

# module's primitive judgement of the safety for its decision
bool is_safe
4 changes: 4 additions & 0 deletions autoware_planning_msgs/msg/SafetyFactorArray.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
std_msgs/Header header
autoware_planning_msgs/SafetyFactor[] factors
bool is_safe
string detail
6 changes: 6 additions & 0 deletions autoware_planning_msgs/msg/Scenario.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
string EMPTY=Empty
string LANEDRIVING=LaneDriving
string PARKING=Parking

string current_scenario
string[] activating_scenarios
3 changes: 3 additions & 0 deletions autoware_planning_msgs/msg/StopFactor.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
geometry_msgs/Pose stop_pose
float64 dist_to_stop_pose
geometry_msgs/Point[] stop_factor_points
2 changes: 2 additions & 0 deletions autoware_planning_msgs/msg/StopSpeedExceeded.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
builtin_interfaces/Time stamp
bool stop_speed_exceeded
7 changes: 7 additions & 0 deletions autoware_planning_msgs/msg/VelocityLimit.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
builtin_interfaces/Time stamp
float32 max_velocity

bool use_constraints false
autoware_planning_msgs/VelocityLimitConstraints constraints

string sender
3 changes: 3 additions & 0 deletions autoware_planning_msgs/msg/VelocityLimitClearCommand.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
builtin_interfaces/Time stamp
bool command false
string sender
11 changes: 11 additions & 0 deletions autoware_planning_msgs/msg/VelocityLimitConstraints.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# maximum signed acceleration
float32 max_acceleration

# minimum signed acceleration
float32 min_acceleration

# maximum signed jerk
float32 max_jerk

# minimum signed jerk
float32 min_jerk
2 changes: 2 additions & 0 deletions autoware_planning_msgs/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

<build_depend>rosidl_default_generators</build_depend>

<depend>autoware_common_msgs</depend>
<depend>autoware_perception_msgs</depend>
<depend>builtin_interfaces</depend>
<depend>geometry_msgs</depend>
<depend>nav_msgs</depend>
Expand Down
2 changes: 2 additions & 0 deletions autoware_planning_msgs/srv/ClearRoute.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
autoware_common_msgs/ResponseStatus status
7 changes: 7 additions & 0 deletions autoware_planning_msgs/srv/SetLaneletRoute.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
std_msgs/Header header
geometry_msgs/Pose goal_pose
autoware_planning_msgs/LaneletSegment[] segments
unique_identifier_msgs/UUID uuid
bool allow_modification
---
autoware_common_msgs/ResponseStatus status
7 changes: 7 additions & 0 deletions autoware_planning_msgs/srv/SetWaypointRoute.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
std_msgs/Header header
geometry_msgs/Pose goal_pose
geometry_msgs/Pose[] waypoints
unique_identifier_msgs/UUID uuid
bool allow_modification
---
autoware_common_msgs/ResponseStatus status

0 comments on commit 30d90b7

Please sign in to comment.