step_simulation
Step simulation forward by a specified number of frames to inspect prim positions, velocities, and joint states. Debug robot behavior in a single call.
Instructions
Step the simulation forward by N frames, then observe prim and joint states.
This is the primary tool for debugging robot behavior. Use it instead of play_simulation + sleep + execute_script. The observe parameters let you inspect positions, velocities, and joint states in a single call.
Typical debug loop:
set_joint_positions to command the robot
step_simulation with observe_prims and observe_joints
get_joint_config if drives are not tracking correctly
get_physics_state if objects are not behaving as expected
Adjust and repeat
Args: num_steps: Number of simulation frames to step. observe_prims: List of prim paths to observe (returns position + velocity). observe_joints: List of articulation prim paths to observe (returns joint positions).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num_steps | No | ||
| observe_prims | No | ||
| observe_joints | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |