Skip to content

[Proposal] Incorrect clipping of actions #1732

Closed

Description

@Mayankm96

Proposal

In the MR #1476, the clipping functionality to individual action terms was introduced. However, there are issues with this implementation:

  • The clipping parameter is a dictionary. While this may make sense for joint actions (where keys are the names of the joints), it doesn't mean anything at all for other action terms such as task-space action terms
  • The clipping is applied to the processed actions. This isn't how any/many libraries think about for clipping. Clipping is done on the raw actions usually (as done in Clips actions to large limits before applying them to the environment #984). In the case of JointAction, the clipping internally might still make sense but then it should be clipping to the simulation joint limits and must be optional (while clipping of raw actions is a MUST for training stability)

I propose that"

  1. The clipping of processed actions should be specific to only JointAction (where it may even make sense)
  2. We should have a separate clipping of raw actions as done in Clips actions to large limits before applying them to the environment #984. We can move that to RSL-RL and other RL wrappers but it is definitely something we need to take care of somewhere.

Checklist

  • I have checked that there is no similar issue in the repo (required)

Acceptance Criteria

  • The clipping of raw actions happens correctly.
  • The clipping inside action terms is properly documented and removed where it isn't applicable.

Activity

  1. added
    enhancement
    on Jan 27, 2025
  2. SuomiKP31 commented on Jan 27, 2025

    @SuomiKP31

    Great point. I noticed that when I'm using Rsl_rl, there's no clipping on joint actions, which is kinda annoying as I have to implement this in my task if I don't want to touch the Isaac code base. I may also add that clipping will also make sense in phase modulation actions, where it should be clipped to [0, seconds_per_timestep].

  3. added theissue type on Mar 1, 2025
  4. added a commit that references this issue on Nov 16, 2026
    3013b46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions