Repository navigation
Clarifies the default parameters in ArticulationData - #1875
Merged
Merged
Conversation
Mayankm96
requested review from
jsmith-bdai,
jtigue-bdai and
kellyguo11
as code owners
February 15, 2025 12:55
1 of 2 tasks
Signed-off-by: Mayank Mittal <[email protected]>
…ator (#1923) # Description <!-- Thank you for your interest in sending a pull request. Please make sure to check the contribution guidelines. Link: https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html --> modifies explicit actuators to pass <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - New feature (non-breaking change which adds functionality) ## Checklist - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task -->
Contributor
Author
|
I added docstrings saying what it does exactly. It isn't the same as Coulumb friction although the effect of it is similar to that. I would prefer not calling it "Coulomb friction" because that is mostly used in a contact sense. But open to changing that if there are strong opinions. |
| self._data.joint_vel_limits[env_ids, joint_ids] = limits | ||
| # set into simulation | ||
| self.root_physx_view.set_dof_max_velocities(self._data.joint_velocity_limits.cpu(), indices=physx_env_ids.cpu()) | ||
| self.root_physx_view.set_dof_max_velocities(self._data.joint_vel_limits.cpu(), indices=physx_env_ids.cpu()) |
Collaborator
There was a problem hiding this comment.
noticed the unabbreviated phrase joint_velocity_limits is used elsewhere, like in line 570 of articulation.py
write_joint_velocity_limit_to_sim.
Contributor
Author
There was a problem hiding this comment.
I didn't find it. Could you point me to it?
Mayankm96
commented
Mar 5, 2025
Signed-off-by: Mayank Mittal <[email protected]>
Signed-off-by: Mayank Mittal <[email protected]>
jtigue-bdai
added a commit
that referenced
this pull request
Apr 14, 2025
# Description There was a lot of code duplication happening inside the `Articulation` class. This MR takes a step towards untangling some of the confusion that gets caused by default and non-default data attributes inside the class. The MR includes the following changes: * Removes operations where we set the data to "torch.zeros" and in the next function assign them the value from PhysX. This made the code bulkier and complex for no reason. * Adds docstring clarifications to make it clear what is what. The default values are now whatever the user configures from their configuration of the articulation class. * Updates the `soft_joint_pos_limits` when the user writes the joint pos limits to the simulator. * Renames parameters for a consistent nomenclature: * ``joint_velocity_limits`` → ``joint_vel_limits`` (to match attribute ``joint_vel`` and ``joint_vel_limits``) * ``joint_limits`` → ``joint_pos_limits`` (to match attribute ``joint_pos`` and ``soft_joint_pos_limits``) * ``default_joint_limits`` → ``default_joint_pos_limits`` * ``write_joint_limits_to_sim`` → ``write_joint_position_limit_to_sim`` * ``joint_friction`` → ``joint_friction_coeff`` * ``default_joint_friction`` → ``default_joint_friction_coeff`` * ``write_joint_friction_to_sim`` → ``write_joint_friction_coefficient_to_sim`` * ``fixed_tendon_limit`` → ``fixed_tendon_pos_limits`` * ``default_fixed_tendon_limit`` → ``default_fixed_tendon_pos_limits`` * ``set_fixed_tendon_limit`` → ``set_fixed_tendon_position_limit`` Fixes #1583, #1904 ## Type of change - Bug fix (non-breaking change which fixes an issue) - Breaking change (fix or feature that would cause existing functionality to not work as expected) - This change requires a documentation update ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Mayank Mittal <[email protected]> Co-authored-by: James Tigue <[email protected]>
ToxicNS
pushed a commit
to ToxicNS/IsaacLab
that referenced
this pull request
Apr 24, 2025
# Description There was a lot of code duplication happening inside the `Articulation` class. This MR takes a step towards untangling some of the confusion that gets caused by default and non-default data attributes inside the class. The MR includes the following changes: * Removes operations where we set the data to "torch.zeros" and in the next function assign them the value from PhysX. This made the code bulkier and complex for no reason. * Adds docstring clarifications to make it clear what is what. The default values are now whatever the user configures from their configuration of the articulation class. * Updates the `soft_joint_pos_limits` when the user writes the joint pos limits to the simulator. * Renames parameters for a consistent nomenclature: * ``joint_velocity_limits`` → ``joint_vel_limits`` (to match attribute ``joint_vel`` and ``joint_vel_limits``) * ``joint_limits`` → ``joint_pos_limits`` (to match attribute ``joint_pos`` and ``soft_joint_pos_limits``) * ``default_joint_limits`` → ``default_joint_pos_limits`` * ``write_joint_limits_to_sim`` → ``write_joint_position_limit_to_sim`` * ``joint_friction`` → ``joint_friction_coeff`` * ``default_joint_friction`` → ``default_joint_friction_coeff`` * ``write_joint_friction_to_sim`` → ``write_joint_friction_coefficient_to_sim`` * ``fixed_tendon_limit`` → ``fixed_tendon_pos_limits`` * ``default_fixed_tendon_limit`` → ``default_fixed_tendon_pos_limits`` * ``set_fixed_tendon_limit`` → ``set_fixed_tendon_position_limit`` Fixes isaac-sim#1583, isaac-sim#1904 ## Type of change - Bug fix (non-breaking change which fixes an issue) - Breaking change (fix or feature that would cause existing functionality to not work as expected) - This change requires a documentation update ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Mayank Mittal <[email protected]> Co-authored-by: James Tigue <[email protected]>
LJones-alt
pushed a commit
to LJones-alt/IsaacLab-Laura
that referenced
this pull request
Jul 1, 2026
# Description There was a lot of code duplication happening inside the `Articulation` class. This MR takes a step towards untangling some of the confusion that gets caused by default and non-default data attributes inside the class. The MR includes the following changes: * Removes operations where we set the data to "torch.zeros" and in the next function assign them the value from PhysX. This made the code bulkier and complex for no reason. * Adds docstring clarifications to make it clear what is what. The default values are now whatever the user configures from their configuration of the articulation class. * Updates the `soft_joint_pos_limits` when the user writes the joint pos limits to the simulator. * Renames parameters for a consistent nomenclature: * ``joint_velocity_limits`` → ``joint_vel_limits`` (to match attribute ``joint_vel`` and ``joint_vel_limits``) * ``joint_limits`` → ``joint_pos_limits`` (to match attribute ``joint_pos`` and ``soft_joint_pos_limits``) * ``default_joint_limits`` → ``default_joint_pos_limits`` * ``write_joint_limits_to_sim`` → ``write_joint_position_limit_to_sim`` * ``joint_friction`` → ``joint_friction_coeff`` * ``default_joint_friction`` → ``default_joint_friction_coeff`` * ``write_joint_friction_to_sim`` → ``write_joint_friction_coefficient_to_sim`` * ``fixed_tendon_limit`` → ``fixed_tendon_pos_limits`` * ``default_fixed_tendon_limit`` → ``default_fixed_tendon_pos_limits`` * ``set_fixed_tendon_limit`` → ``set_fixed_tendon_position_limit`` Fixes isaac-sim#1583, isaac-sim#1904 ## Type of change - Bug fix (non-breaking change which fixes an issue) - Breaking change (fix or feature that would cause existing functionality to not work as expected) - This change requires a documentation update ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there --------- Signed-off-by: Mayank Mittal <[email protected]> Co-authored-by: James Tigue <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
There was a lot of code duplication happening inside the
Articulationclass. This MR takes a step towards untangling some of the confusion that gets caused by default and non-default data attributes inside the class.The MR includes the following changes:
soft_joint_pos_limitswhen the user writes the joint pos limits to the simulator.joint_velocity_limits→joint_vel_limits(to match attributejoint_velandjoint_vel_limits)joint_limits→joint_pos_limits(to match attributejoint_posandsoft_joint_pos_limits)default_joint_limits→default_joint_pos_limitswrite_joint_limits_to_sim→write_joint_position_limit_to_simjoint_friction→joint_friction_coeffdefault_joint_friction→default_joint_friction_coeffwrite_joint_friction_to_sim→write_joint_friction_coefficient_to_simfixed_tendon_limit→fixed_tendon_pos_limitsdefault_fixed_tendon_limit→default_fixed_tendon_pos_limitsset_fixed_tendon_limit→set_fixed_tendon_position_limitFixes #1583, #1904
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there