feat(scan_planner_msgs): 新增 TrajectoryStatus 消息
供 FSM 对外广播当前执行状态与原因字符串,使上层(动作原语、行为树、 上位机)不必靠订阅内部话题猜状态。先在 CMakeLists 注册接口定义。
This commit is contained in:
@@ -10,6 +10,7 @@ find_package(std_msgs REQUIRED)
|
||||
rosidl_generate_interfaces(${PROJECT_NAME}
|
||||
"msg/Bspline.msg"
|
||||
"msg/DataDisp.msg"
|
||||
"msg/TrajectoryStatus.msg"
|
||||
DEPENDENCIES builtin_interfaces geometry_msgs std_msgs
|
||||
)
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# Authorizes one B-spline and preserves the user's task goal independently of it.
|
||||
uint8 HOLD=0
|
||||
uint8 ACTIVE=1
|
||||
uint8 SUCCEEDED=2
|
||||
uint8 FAILED=3
|
||||
|
||||
std_msgs/Header header
|
||||
uint64 goal_id
|
||||
int64 traj_id
|
||||
uint8 state
|
||||
bool is_final
|
||||
geometry_msgs/Point goal
|
||||
string reason
|
||||
|
||||
# Rectangle mode: ACTIVE is a short-lived safety grant, refreshed at 20 Hz.
|
||||
bool hold_heading
|
||||
float64 heading
|
||||
float64 heading_tolerance
|
||||
bool correction_rotation_allowed
|
||||
bool terminal_rotation_allowed
|
||||
bool target_yaw_valid
|
||||
float64 target_yaw
|
||||
Reference in New Issue
Block a user