Skip to content

Commit

Permalink
Update joint_actions.py
Browse files Browse the repository at this point in the history
Signed-off-by: -T.K.- <[email protected]>
  • Loading branch information
T-K-233 authored Dec 23, 2024
1 parent dd044a4 commit 3a0945f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, cfg: actions_cfg.JointActionCfg, env: ManagerBasedEnv) -> Non
)

# Avoid indexing across all joints for efficiency
if self._num_joints == self._asset.num_joints:
if self._num_joints == self._asset.num_joints and not self.cfg.preserve_order:
self._joint_ids = slice(None)

# create tensors for raw and processed actions
Expand Down

0 comments on commit 3a0945f

Please sign in to comment.