BB.MCP.Tools.SendJointPositions (bb_mcp v0.3.3)

Copy Markdown View Source

Send target positions to one or more robot joints.

Positions are SI units: radians for revolute/continuous joints, metres for prismatic joints. Send a single joint with joint/position, or a batch as a JSON object string in positions_json. The robot must be armed and idle.

Only joints with a single degree of freedom can be commanded here, since a position is one number. A planar or floating joint needs a whole pose, so drive it through a command that takes one — read bb://robots/{robot}/topology for each joint's degrees_of_freedom.

Delivery defaults to pubsub, which waits for every actuator to accept its command and reports the first refusal. direct casts instead and waits for nothing, so it answers ok whether or not the robot took the command.

Summary

Functions

get_schema(atom)

mcp_schema(data)

mcp_schema!(data)