Skip to content

[Proposal] Many naming inconsistencies in the joint properties inside Articulation #1583

Closed

Description

@Mayankm96

Proposal

Going over recent changes in the Articulation class and there are a few inconsistencies that have popped up in the recent merges.

  • Variables such as joint_armature and joint_friction are not a part of ArticulationData
  • It is unclear what joint_limits refer to unless we start digging into the code? Same for default_joint_limits.
  • There are attributes for joint_velocity_limits but at the same time there isn't joint_efforts_limits
  • There are attributes like soft_joint_pos_limits and soft_joint_vel_limits which are not getting updated when one calls write_xxx_to_sim methods
  • As attributes are exploding, it is getting very unclear what is meant by "default" and non-default members in the class. We should be documenting this very explicitly and clearly.
  • The same applies for quantities that are shared between sim and explicit actuators. The docstrings are not clear about them and code complexity has increated.

Similar arguments hold now for the event term:

  • randomize_joint_parameters - It is trying to do so many operations in one go. Not clear what lower_limit_distribution_params means in there without again checking the code. We should split it up into separate functions that -- one for joint properties and other for joint limits. Modularity goes big time over complexity.

Motivation

Would be great to make sure we stay consistent in our code and operations inside the classes.

Checklist

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

Acceptance Criteria

  • The above issues get resolved.

Activity

  1. added
    enhancement
    on Jan 3, 2025
  2. RandomOakForest commented on Jan 3, 2025

    @RandomOakForest
    Collaborator

    Thank you for posting this suggestion. It has been duly noted.

  3. added
    dev team
    on Feb 15, 2025
  4. Mayankm96 commented on Feb 15, 2025

    @Mayankm96
    ContributorAuthor

    The more I work with the Articulation class, the huger the mess seems.

    The default_ parameters, for instance. They are set to the values from inside the USD and not the values passed from the configuration. This isn't what is expected IMO. The configured values should be the default values.

    Also default_joint_stiffness and joint_stiffness are not the same "set". The former has stiffness/damping from explicit, while the latter only has the values set inside the simulation. This makes things buggy.

  5. Mayankm96 commented on Feb 15, 2025

    @Mayankm96
    ContributorAuthor

    Made the MR #1875 for this.

    To be fair, I want to deprecate all the joint_xxx parameters to make them joint_xxx_sim (for explicit clarity). But this breaks too many things and can be annoying. Since the docstrings mention they are the value provided to the simulation, I can live with that for now. Thoughts?

  6. added theissue type on Mar 1, 2025
  7. added a commit that references this issue on Mar 7, 2025
    46cbb5d
  8. added a commit that references this issue on Apr 14, 2025
    969327b
  9. added a commit that references this issue on Apr 24, 2025
    d69f1b2
  10. added a commit that references this issue on Jul 1, 2026
    a613e3d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dev teamenhancement

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions