队列运动接口
1. queue_motion_set_status - 开启/关闭队列模式
方法: queue_motion_set_status(socket_fd, status)
参数:
socket_fd:连接句柄status:True表示开启队列模式,False表示关闭
返回值:
int:0表示成功,非0表示失败
使用示例:
2. queue_motion_push_back_moveJ - 添加MoveJ指令到本地队列
方法: queue_motion_push_back_moveJ(socket_fd, coord, vel, acc, dec, pl, pos_list)
参数:
socket_fd:连接句柄coord:坐标系类型(0=关节坐标系)vel:速度百分比acc:加速度百分比dec:减速度百分比pl:平滑度pos_list:目标位置列表(7个关节角度)
使用示例:
3. queue_motion_push_back_moveL - 添加MoveL指令到本地队列
方法: queue_motion_push_back_moveL(socket_fd, coord, vel, acc, dec, pl, pos_list)
参数:
socket_fd:连接句柄coord:坐标系类型(1=直角坐标系)vel:速度百分比acc:加速度百分比dec:减速度百分比pl:平滑度pos_list:目标位置列表([x, y, z, rx, ry, rz, 0])
使用示例:
4. queue_motion_push_back_moveC - 添加MoveC指令到本地队列
方法: queue_motion_push_back_moveC(socket_fd, coord, vel, acc, dec, pl, pos_list)
参数:
socket_fd:连接句柄coord:坐标系类型(1=直角坐标系)vel:速度百分比acc:加速度百分比dec:减速度百分比pl:平滑度pos_list:目标位置(圆弧中间点+终点)
使用示例:
5. queue_motion_push_back_moveS - 添加MoveS指令到本地队列
方法: queue_motion_push_back_moveS(socket_fd, coord, vel, acc, dec, pl, pos_list)
参数:
socket_fd:连接句柄coord:坐标系类型(1=直角坐标系)vel:速度百分比acc:加速度百分比dec:减速度百分比pl:平滑度pos_list:目标位置列表
使用示例:
6. queue_motion_send_to_controller - 发送队列到控制器
方法: queue_motion_send_to_controller(socket_fd, max_size, clear_old)
参数:
socket_fd:连接句柄max_size:最大发送数量clear_old:是否清除旧数据
使用示例:
