Public 成员函数 | |
| __init__ (self, copter_id=1, target_ip="127.0.0.1", ros_node=None) | |
| 构造函数 | |
| start (self) | |
| 启动桥接线程 | |
| stop (self) | |
| 停止桥接线程并清理资源 | |
Protected 成员函数 | |
| _init_socket (self) | |
| 初始化UDP套接字 | |
| _init_ros (self) | |
| 初始化ROS发布者、订阅者和服务 | |
| _handle_param_set (self, req, res=None) | |
| 处理ROS参数设置请求的服务回调 | |
| _handle_set_mode (self, req, res=None) | |
| 处理模式设置请求的服务回调 | |
| _handle_arm (self, req, res=None) | |
| 处理解锁/上锁请求的服务回调 | |
| _handle_setpoint (self, msg) | |
| 处理接收到的ROS控制指令并转发给CopterSim | |
| _parse_s_out2_simulator (self, data) | |
| 解析从CopterSim接收到的数据并发布为ROS消息 | |
| _recv_loop (self) | |
| UDP接收循环线程函数 | |
| _ros_loop (self) | |
| ROS事件处理循环线程函数 | |
| __init__ | ( | self, | |
| copter_id = 1, | |||
| target_ip = "127.0.0.1", | |||
| ros_node = None ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |