get_joint_state
Retrieve joint positions, velocities, efforts, and command targets from an articulation. Select specific joints by name or index to get measured state and targets with explicit units.
Instructions
Read measured joint state and active command targets.
Returns position, velocity, measured effort, position/velocity/effort targets, joint name/index mapping, joint type, and explicit units. Use either joint_names or joint_indices for a subset; the selectors are mutually exclusive. Revolute units are radians, radians_per_second, and newton_meters. Prismatic units are meters, meters_per_second, and newtons.
Args: prim_path: USD path of the articulation root. joint_names: Optional exact, case-sensitive joint names in requested order. joint_indices: Optional DOF indices in requested order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prim_path | Yes | ||
| command_id | No | ||
| joint_names | No | ||
| joint_indices | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |