Skip to Content

示例说明

Feature 简介

本页说明无人车示例包的公共接口约定。具体任务请从左侧选择对应 Feature。

公共接口

以下以 <agent_key>=ugv1 为例。

ROS话题

流向话题名话题类型含义
发布/ugv1/sunray/ugv_control/control_cmdsunray_msgs/UGVControlCMD世界系或车体系速度控制目标。

ROS服务

流向服务名服务类型含义
调用/ugv1/sunray/ugv_control/holdsunray_msgs/Hold在动作切换或异常时停车保持。

ROS动作

流向动作名动作类型含义
调用/ugv1/sunray/ugv_control/move_pointsunray_msgs/MovePoint请求移动到目标点。

Feature 启动方法

launch 文件位置:~/Sunray/example/sunray_ugv_control_example/launch/

roslaunch sunray_ugv_control_example MOVE_POINT/ugv_control_example_move_point.launch roslaunch sunray_ugv_control_example MOVE_POINT_BODY/ugv_control_example_move_point_body.launch roslaunch sunray_ugv_control_example MOVE_VELOCITY/ugv_control_example_move_velocity.launch

Python 版本使用同目录下带 _py 后缀的 launch 文件。

注意事项

  • 先启动 sunray_ugv_control、融合定位和底盘驱动或仿真 Feature。
  • 当前产品只交付麦克纳姆轮;示例参数应与实际 airframe(mecanum_default)一致。

与其他 Feature 的关系

与 sunray_ugv_control 的关系

示例调用无人车控制的 Action、Service 和控制命令话题。底盘速度由控制模块发布,示例不再向底盘驱动发布速度。

与 localization_fusion 的关系

定点示例使用控制模块统一处理定位门禁,任务节点只依赖控制 Action 和结果。

原理介绍

节点先发送定点 Action 到起始位置,再按世界系或车体系发布速度命令完成轨迹,阶段切换时调用 Hold,确保底盘停止后再进入下一阶段。