Skip to content

Commit e8ea185

Browse files
zoctipuskellyguo11jtigue-bdai
authored
Fixes error in Articulation where default_joint_stiffness and default_joint_damping is not correctly set if actuator is instance of ImplicitActuator (#1580)
# Description Before the fix, the field, default_joint_stiffness, and default_joint_damping in omni.isaac.lab.assets.Articulation will be the default value configured Joint Drive property in usd file, and defining a new value with actuator config will not have effect if the actuator is type ImplicitActuator after the fix, all actuator types will be able to override default_joint_stiffness and default_joint_damping Fixes #1552 <!-- 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. --> - Bug fix (non-breaking change which fixes an issue) <!-- Example: | Before | After | | ------ | ----- | | _gif/png before_ | _gif/png after_ | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. --> ## Checklist - [X] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] 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 - [X] 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 <!-- 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 --> --------- Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]> Co-authored-by: James Tigue <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
1 parent 574abc4 commit e8ea185

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

source/extensions/omni.isaac.lab/config/extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
# Note: Semantic Versioning is used: https://semver.org/
4-
version = "0.30.1"
4+
version = "0.30.2"
55

66
# Description
77
title = "Isaac Lab framework for Robot Learning"

source/extensions/omni.isaac.lab/docs/CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changelog
22
---------
33

4+
0.30.2 (2024-12-22)
5+
~~~~~~~~~~~~~~~~~~~
6+
7+
Fixed
8+
^^^^^
9+
10+
* Fixed populating default_joint_stiffness and default_joint_damping values for ImplicitActuator instances in :class:`omni.isaac.lab.assets.Articulation`
11+
12+
413
0.30.1 (2024-12-17)
514
~~~~~~~~~~~~~~~~~~~
615

source/extensions/omni.isaac.lab/omni/isaac/lab/assets/articulation/articulation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,9 +1348,9 @@ def _process_actuators_cfg(self):
13481348
self.write_joint_velocity_limit_to_sim(actuator.velocity_limit, joint_ids=actuator.joint_indices)
13491349
self.write_joint_armature_to_sim(actuator.armature, joint_ids=actuator.joint_indices)
13501350
self.write_joint_friction_to_sim(actuator.friction, joint_ids=actuator.joint_indices)
1351-
# Store the actual default stiffness and damping values for explicit actuators (not written the sim)
1352-
self._data.default_joint_stiffness[:, actuator.joint_indices] = actuator.stiffness
1353-
self._data.default_joint_damping[:, actuator.joint_indices] = actuator.damping
1351+
# Store the actual default stiffness and damping values for explicit and implicit actuators (not written the sim)
1352+
self._data.default_joint_stiffness[:, actuator.joint_indices] = actuator.stiffness
1353+
self._data.default_joint_damping[:, actuator.joint_indices] = actuator.damping
13541354

13551355
# perform some sanity checks to ensure actuators are prepared correctly
13561356
total_act_joints = sum(actuator.num_joints for actuator in self.actuators.values())

0 commit comments

Comments
 (0)