Skip to content

Commit df10ae8

Browse files
committed
lint
1 parent 3cb016e commit df10ae8

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

isaaclab_arena/embodiments/g1/g1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(
6666
anchor_pos=(0.0, 0.0, -1.0),
6767
anchor_rot=(0.70711, 0.0, 0.0, -0.70711),
6868
anchor_prim_path="/World/envs/env_0/Robot/pelvis",
69-
anchor_rotation_mode = XrAnchorRotationMode.FOLLOW_PRIM_SMOOTHED,
69+
anchor_rotation_mode=XrAnchorRotationMode.FOLLOW_PRIM_SMOOTHED,
7070
fixed_anchor_height=True,
7171
)
7272

isaaclab_arena/tests/test_xr_anchor_pose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,5 @@ def test_xr_anchor_multiple_positions():
196196

197197
if __name__ == "__main__":
198198
test_gr1t2_xr_anchor_pose()
199-
#test_g1_xr_anchor_pose()
199+
# test_g1_xr_anchor_pose()
200200
test_xr_anchor_multiple_positions()

isaaclab_arena_g1/g1_env/mdp/actions/g1_decoupled_wbc_pink_action.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
from scipy.spatial.transform import Rotation as R
1212
from typing import TYPE_CHECKING
1313

14-
from isaaclab.assets.articulation import Articulation
1514
import isaaclab.utils.math as math_utils
15+
from isaaclab.assets.articulation import Articulation
1616

1717
from isaaclab_arena_g1.g1_env.mdp.actions.g1_decoupled_wbc_joint_action import G1DecoupledWBCJointAction
1818
from isaaclab_arena_g1.g1_whole_body_controller.wbc_policy.g1_wbc_upperbody_ik.g1_wbc_upperbody_controller import (
@@ -379,9 +379,7 @@ def preprocess_actions(self, actions: torch.Tensor) -> torch.Tensor:
379379
wrist_pos_world = torch.stack([actions[0, 2:5], actions[0, 9:12]], dim=0)
380380
wrist_pos_translated = wrist_pos_world - robot_base_pos
381381
robot_base_quat_batch = robot_base_quat.unsqueeze(0).expand(2, -1)
382-
wrist_pos_base = math_utils.quat_apply_inverse(
383-
robot_base_quat_batch, wrist_pos_translated
384-
)
382+
wrist_pos_base = math_utils.quat_apply_inverse(robot_base_quat_batch, wrist_pos_translated)
385383

386384
wrist_quat_world = torch.stack([actions[0, 5:9], actions[0, 12:16]], dim=0)
387385
robot_base_quat_inv = math_utils.quat_inv(robot_base_quat.unsqueeze(0)).expand(2, -1)

0 commit comments

Comments
 (0)