set_joint_positions
Set target joint positions on a robot using radians for revolute joints and meters for prismatic joints. Use after retrieving joint info and before stepping simulation.
Instructions
Set target joint positions on a robot via ArticulationAction.
Units: radians for revolute joints, meters for prismatic joints (e.g. gripper fingers). Use get_robot_info to discover joint names, types, and limits first. After calling this, use step_simulation to advance and observe the result — do not use play_simulation + sleep.
Args: prim_path: The prim path of the robot. joint_positions: List of target joint position values. joint_indices: Optional list of joint indices to set. Sets all joints if not provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prim_path | Yes | ||
| joint_positions | Yes | ||
| joint_indices | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |