[Question] A compute torque function is different between a isaaclab and a legged_gym #3030
-
I'm curious about the compute_torque implementation in IsaacLab. In legged_gym, torque computation is typically based only on position error (i.e., proportional control). Why are these additional terms included in IsaacLab’s implementation? In IsaacLab
In legged_gym
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thank you for posting this. I'll move this post to our Discussions. The differences you’ve observed between IsaacLab’s and legged_gym’s torque computation stem mainly from IsaacLab’s emphasis on physical realism, versatility of control strategies, and sim-to-real transfer. Here’s a detailed breakdown: 1. Explicit Actuator Models and Physical RealismIsaacLab provides two main actuator paradigms: implicit (where the simulator’s internal PD controller is used) and explicit (where torque is computed by user-provided models). In the explicit case—such as in This formula includes both a feed-forward (policy-provided torque) and a velocity error (damping) term12. Why Add Feed-forward and Damping?
2. Control Architecture and RL Stability
3. Simulation Fidelity and Sim-to-Real Transfer
4. Comparison with legged_gymlegged_gym typically assumes a much simpler mapping from policy actions to desired joint positions and applies only proportional and derivative (PD) terms, without a feed-forward torque. This is often sufficient for simulation benchmarking and development, but it lacks the direct expressiveness and fidelity needed for real hardware deployment or highly dynamic tasks that benefit from explicit torque control. In summary: Footnotes
|
Beta Was this translation helpful? Give feedback.
Thank you for posting this. I'll move this post to our Discussions. The differences you’ve observed between IsaacLab’s and legged_gym’s torque computation stem mainly from IsaacLab’s emphasis on physical realism, versatility of control strategies, and sim-to-real transfer. Here’s a detailed breakdown:
1. Explicit Actuator Models and Physical Realism
IsaacLab provides two main actuator paradigms: implicit (where the simulator’s internal PD controller is used) and explicit (where torque is computed by user-provided models). In the explicit case—such as in
actuator_pd.py
—the control law is: