状态数据
获取机器人状态
获取机器人当前状态。
state = lebai:get_robot_state()
- 返回
- 当前机器人状态。
JSON-RPC
// 请求:
{ "jsonrpc": "2.0", "method": "get_robot_state", "params": [{}], "id": 1 }
// 响应:
{ "jsonrpc": "2.0", "result": {"state": "IDLE"}, "id": 1 }
获取手臂运动数据
data = lebai:get_kin_data()
- 返回
actual_joint_pose
actual_joint_speed
actual_joint_acc
actual_joint_torque
target_joint_pose
target_joint_speed
target_joint_acc
target_joint_torque
actual_tcp_pose
target_tcp_pose
actual_flange_pose
JSON-RPC
// 请求:
{ "jsonrpc": "2.0", "method": "get_kin_data", "params": [{}], "id": 1 }
// 响应:
{ "jsonrpc": "2.0", "result": {"actual_joint_pose": [], "actual_tcp_pose": {}}, "id": 1 }