Status Data
Get Robot State
Get current robot state.
state = lebai:get_robot_state()
- Returns
- Current robot state
JSON-RPC
// Request:
{ "jsonrpc": "2.0", "method": "get_robot_state", "params": [{}], "id": 1 }
// Response:
{ "jsonrpc": "2.0", "result": {"state": "IDLE"}, "id": 1 }
Get Arm Motion Data
data = lebai:get_kin_data()
- Returns
actual_joint_pose
Feedback joint positionactual_joint_speed
Feedback joint velocityactual_joint_acc
Joint feedback accelerationactual_joint_torque
Joint feedback torquetarget_joint_pose
Planned joint positiontarget_joint_speed
Planned joint velocitytarget_joint_acc
Joint planned accelerationtarget_joint_torque
Joint planned torqueactual_tcp_pose
Feedback tool positiontarget_tcp_pose
Planned tool positionactual_flange_pose
Feedback flange position
JSON-RPC
// Request:
{ "jsonrpc": "2.0", "method": "get_kin_data", "params": [{}], "id": 1 }
// Response:
{ "jsonrpc": "2.0", "result": {"actual_joint_pose": [], "actual_tcp_pose": {}}, "id": 1 }
Get Arm Physical Data
data = lebai:get_phy_data()
- Returns
joint_temp
Temperature of each jointjoint_voltage
Voltage of each jointflange_voltage
Flange plate voltage
JSON-RPC
// Request:
{ "jsonrpc": "2.0", "method": "get_phy_data", "params": [{}], "id": 1 }
// Response:
{ "jsonrpc": "2.0", "result": {"joint_voltage": [48.0], "flange_voltage": 24.0}, "id": 1 }