set_joint_targets
Set robot joint drive position targets by joint name or ordered list; write them to USD so physics moves joints toward them during simulation.
Instructions
Set the position targets of a robot's joint drives, which physics drives the joints toward while the simulation plays.
A dict sets the joints it names and skips names it doesn't find; a list follows the order of get_robot_info's Joints list, not of its joint states. A joint without a drive gets one, with stiffness 1000 and damping 100. It writes USD, so it works stopped too, before physics has started. The answer counts the targets set; get_robot_info then reads where the joints are, in radians, while the simulation plays or is paused.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prim_path": "<prim_path>"
},
"name": "set_joint_targets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | No | Required: {joint_name: value}, or [v0, v1, ...] in get_robot_info's joint order, fixed joints included; degrees for revolute joints, stage units for prismatic ones | |
| prim_path | Yes | The robot's root prim, e.g. "/World/G1" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |