Skip to content

Applying external forces to specific rigid bodies each simulation step #198

Description

@ucacaxm

Hi,

Is there a supported/public API in ProtoMotions to apply external forces to specific rigid bodies at each simulation step?

We found apply_rigid_body_force_tensors used in test_isaacgym_friction_mode.py via _gym and _sim directly, but those are private attributes.

Questions:

  1. Is there a public wrapper for applying per-body forces (similar to _apply_simulator_torques but for rigid body forces)?
  2. If not, is accessing simulator._gym / simulator._sim directly safe, or will it conflict with ProtoMotions' tensor refresh cycle?
  3. Is there a recommended hook point to inject forces without fighting the simulation loop?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions