Skip to content

[Bug Report] Changed behavior of set_external_force_and_torque() from v2.3.1 to v2.3.2 #4580

@LoreMoretti

Description

@LoreMoretti

Describe the bug

Release v2.3.2 deprecated set_external_force_and_torque() in favor of the composable wrench system.
But this causes some changed behavior in how external forces are applied in certain configuration, as I will try to document below.

Steps to reproduce

I have written an event with reset mode, where I am doing the following:

    asset.set_external_force_and_torque(
        forces, torques, env_ids=env_ids, body_ids=asset_cfg.body_ids, is_global=True
    )

with torques being 0.

The behavior is different if using IsaacLab v2.3.1 or v2.3.2. In particular, it seems that, in v2.3.2 release, the external forces are not being applied always in global frame.

-->

System Info

Describe the characteristic of your environment:

  • Commit: 37ddf62
  • Isaac Sim Version: [e.g. 5.0, this can be obtained by cat ${ISAACSIM_PATH}/VERSION]
  • OS: Ubuntu 24.04
  • GPU: RTX 5090
  • CUDA: 13.0
  • GPU Driver: 580.126.09

Additional context

I think the problem is related to this specific configuration of the external forces being applied at the reset, in global frame, and in permanent mode. Probably, the wrench composer was not taking into account this configuration, and the new API is not matching the behavior of v2.3.1 release.

It only affects the permanent wrench composer.

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • I have checked that the issue is not in running Isaac Sim itself and is related to the repo

Acceptance Criteria

Add the criteria for which this task is considered done. If not known at issue creation time, you can add this once the issue is assigned.

  • A way to replicate the same behavior of the deprecated API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions