Skip to content

[Bug Report] ANYmal symmetry augmentation mirrors the wrong joints on the default Newton backend #8204

Closed

Description

@NeoZng

Describe the bug

isaaclab_tasks/core/velocity/mdp/symmetry/anymal.py hard-codes joint indices for the PhysX joint order (LF_HAA, LH_HAA, RF_HAA, RH_HAA, LF_HFE, ...). For example, LF is [0, 4, 8] and the HAA joints are 0:4. The velocity tasks now default to newton_mjwarp. On that backend ANYmal-D uses its native depth-first order (LF_HAA, LF_HFE, LF_KFE, LH_HAA, ...), and ANYMAL_D_CFG does not set joint_ordering. As a result, every mirrored joint position, joint velocity, last action and action comes from the wrong joint, often with the wrong sign. The ANYmal-D rsl_rl_with_symmetry agents therefore train on corrupted augmented samples. The same applies to the contrib ANYmal-B/C Rough agents, which share the function and inherit the Newton default.

I tagged each joint column and decoded the output of compute_symmetric_states on Isaac-Velocity-Flat-AnymalD (PhysX and Newton) and Isaac-Velocity-Rough-AnymalD (Newton; PhysX also checked), with 2 envs:

backend public joint order left-right: wrong joints front-back: wrong joints
PhysX LF_HAA, LH_HAA, RF_HAA, RH_HAA, LF_HFE, ... 0/12 0/12
Newton (default) LF_HAA, LF_HFE, LF_KFE, LH_HAA, ... 12/12 (e.g. LF_HAA <- -LF_KFE instead of -RF_HAA) 12/12

As a physical check, I set env 0 to an asymmetric joint configuration q and env 1 to the configuration produced by the left-right transform of q, with both bases at identity. The base-frame feet of env 1 should then equal the mirrored feet of env 0. On PhysX the difference is below 1e-5 m, i.e. float precision. On Newton it is 0.17-0.33 m for left-right and 0.28-0.42 m for front-back.

Steps to reproduce

env = gym.make("Isaac-Velocity-Flat-AnymalD", cfg=parse_env_cfg("Isaac-Velocity-Flat-AnymalD", num_envs=2))
print(env.unwrapped.scene["robot"].joint_names)   # Newton: LF_HAA, LF_HFE, LF_KFE, LH_HAA, ...
actions = torch.arange(1.0, 13.0, device=env.unwrapped.device).unsqueeze(0)
_, aug = anymal.compute_symmetric_states(env, None, actions)
print(aug[1])  # left-right mirror: column 0 (LF_HAA) is -3 (LF_KFE) instead of -7 (RF_HAA)

Passing physics=physx gives the expected mapping.

System Info

  • Commit: develop 3791c0f (release/3.0.0 has the same code and the same Newton default)
  • Isaac Sim Version: 6.1.0
  • OS: Ubuntu 24.04
  • GPU: RTX PRO 5000 Blackwell
  • CUDA: 13.0
  • GPU Driver: 580.126.20

Additional context

The backend-native order is legitimate. The joint and body ordering docs say that public order follows the backend unless joint_ordering is set, and that MDP code should resolve joints by name. The assumption that needs fixing is the task-level index layout.

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 ANYmal symmetry functions mirror each joint to its left-right / front-back counterpart with the correct sign for any joint order and backend.
  • A regression test covers the PhysX and Newton orders.

Activity

  1. RandomOakForest commented on Oct 7, 2026

    @RandomOakForest
    Collaborator

    Thank you for posting this and adding the PR. The team will review it.

  2. added
    bug
    on Oct 7, 2026
  3. added a commit that references this issue on Oct 8, 2026
    abe7db4
  4. added a commit that references this issue on Oct 8, 2026
    b9efdb7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions