Skip to Content

机体系定点

Feature 简介

在机体 body 坐标系中发送定点目标,演示相对当前机体方向的移动方式。

使用的 Feature 接口

ROS动作

所属 Feature流向动作名动作类型含义
sunray_uav_control调用/<agent_key>/sunray/uav_control/move_pointsunray_msgs/MovePoint请求移动到 body 坐标系目标点。

Feature 启动方法

四边形 launch 文件位置:~/Sunray/example/sunray_uav_control_example/launch/MOVE_POINT_BODY/move_point_body_quadrilateral.launch

roslaunch sunray_uav_control_example MOVE_POINT_BODY/move_point_body_quadrilateral.launch

六边形版本使用 MOVE_POINT_BODY/move_point_body_hexagon.launch;Python 版本分别使用带 _py 后缀的对应 launch。

与其他 Feature 的关系

与 sunray_uav_control 的关系

由控制器负责 body 坐标系目标转换、限幅和安全门禁。

原理介绍

MovePointGoal.BODY_FRAME 的 point 是每个 goal 被接受瞬间、相对于当前机体的三维位移。因此多边形示例发送的是“从当前目标继续移动的边向量”,而不是固定初始机体系中的顶点;每个动作完成后再发送下一条边,最后使用 LOCAL_FRAME 返回 local 原点。