Skip to content

[Bug Report] EMAJointPositionToLimitsAction bug #1082

@Msornerrrr

Description

@Msornerrrr

Describe the bug

For the EMAJointPositionToLimitsAction controller, during reset(), it's trying to reset history to current joint positions. The indexing part

self._asset.data.joint_pos[env_ids, self._joint_ids]

has error if EMA control is applied for just part of the robot (e.g. arm + hand setup)

Steps to reproduce

I don't find any current robot that's using the arm + hand setup so reproducing the error would be hard. But I do have a one line fix for this issue which I will describe latter.

Fixing the error

self._prev_applied_actions[env_ids, :] = self._asset.data.joint_pos[env_ids][:, self._joint_ids]

System Info

Describe the characteristic of your environment:

  • Commit: 2804ff3
  • Isaac Sim Version: 2022.2.0
  • OS: Ubuntu 22.04
  • GPU: NVIDIA GeForce RTX 4090
  • CUDA: 12.4
  • GPU Driver: 550.107.02

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