Skip to content

[Bug Report] Humanoid feet-wrench observation order differs between PhysX and Newton #8334

Closed

Description

@NeoZng

Describe the bug

The feet-wrench observation of Isaac-Humanoid (the feet_body_forces term) and of Isaac-Humanoid-Direct (LocomotionDirectEnv) resolves ["left_foot", "right_foot"] against the joint-wrench sensor without preserve_order. The returned indices follow the sensor's own body order instead of the list, and that order is backend-specific: PhysX lists right_foot before left_foot, Newton lists left_foot first. The 12 observation entries are therefore [right_foot, left_foot] on PhysX and [left_foot, right_foot] on Newton.

The sim-to-sim guide says a physics preset should not silently change policy-facing observation terms. Its transfer recipe sets only joint_ordering and body_ordering, which reorder the articulation but not the joint-wrench sensor, so the layout cannot be restored in either direction: a Humanoid policy moved between the backends sees the wrenches of its two feet swapped.

Steps to reproduce

Run with --physics isaacsim_physx and --physics newton_mjwarp:

import argparse

from isaaclab.app import add_launcher_args, launch_simulation

parser = argparse.ArgumentParser()
parser.add_argument("--physics", default="isaacsim_physx", choices=["isaacsim_physx", "newton_mjwarp"])
add_launcher_args(parser)
args_cli = parser.parse_args()

import gymnasium as gym

import isaaclab_tasks  # noqa: F401
from isaaclab_tasks.utils import resolve_task_config

env_cfg, _ = resolve_task_config("Isaac-Humanoid", None, overrides=[f"presets={args_cli.physics}"])
env_cfg.scene.num_envs = 1

with launch_simulation(env_cfg, args_cli):
    env = gym.make("Isaac-Humanoid", cfg=env_cfg)
    sensor = env.unwrapped.scene["joint_wrench"]
    body_ids = env.unwrapped.observation_manager.cfg.policy.feet_body_forces.params["sensor_cfg"].body_ids
    print(f"{args_cli.physics}: feet_body_forces layout", [sensor.body_names[i] for i in body_ids])
    env.close()
isaacsim_physx: feet_body_forces layout ['right_foot', 'left_foot']
newton_mjwarp: feet_body_forces layout ['left_foot', 'right_foot']

Checked separately with 20 random-action steps: obs["policy"][:, 54:66] equals 0.01 * the sensor force and torque of these bodies, in this order, on both backends. Isaac-Humanoid-Direct shows the same two layouts and the same match. Isaac-Ant lists its four feet in the configured order on both backends.

System Info

  • Commit: develop 32a1f33051 (same code on release/3.0.0 7aba91f629)
  • Isaac Sim Version: 6.1.0-rc.26
  • Newton: 1.6.0
  • OS: Ubuntu 24.04
  • GPU: RTX PRO 5000 Blackwell
  • CUDA: 13.0
  • GPU Driver: 580.126.20

Additional context

SceneEntityCfg(..., preserve_order=True) and JointWrenchSensor.find_bodies(..., preserve_order=True) keep the order of the name list. The calls without preserve_order are in humanoid_manager_env_cfg.py, ant_manager_env_cfg.py, locomotion_direct_env.py and isaaclab_tasks_experimental/.../locomotion_env_warp.py; the Warp one runs only on Newton, where the order already matches.

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

  • The feet-wrench observation of the Humanoid tasks lists left_foot before right_foot on PhysX and on Newton.

Activity

  1. RandomOakForest commented on Oct 7, 2026

    @RandomOakForest
    Collaborator

    Thanks for posting this. The team is looking into it.

  2. added
    bug
    on Oct 7, 2026
  3. ooctipus commented on Oct 9, 2026

    @ooctipus
    Collaborator

    fixed in #8344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions