-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Description
If you are submitting a bug report, please fill in the following details and use the tag [bug].
Describe the bug
I want to preserve the order of the joint names in EMAJointPositionToLimitsActionCfg except when I use the config below it doesn't preserve the order.
joint_pos = mdp.EMAJointPositionToLimitsActionCfg(
asset_name="robot",
joint_names=[f"joint_{i}" for i in range(16)],
alpha=0.95,
rescale_to_limits=True,
preserve_order=True,
)I found the bug here:
| self._joint_ids = slice(None) |
Basically if the length of joint_names matches the number of joints in the asset the joint_id needed for preserving order are overwritten.
I believe if we just confirm that self.cfg.joint_names is set beforehand then we shouldn't overwrite self._joint_ids
Steps to reproduce
Set joint_names to match the number of joints in the asset.
Metadata
Metadata
Assignees
Labels
No labels