Skip to content

Commit af1805b

Browse files
committed
format: pyformat, pylint
1 parent 4cf2fbd commit af1805b

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

python/rcs/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,12 @@ class RobotMetaConfig:
196196
}
197197

198198
GRIPPER_MOUNT_OFFSETS: dict[common.GripperType, common.Pose] = {
199-
common.GripperType.FrankaHand: common.Pose(rotation=common.FrankaHandTCPOffset()[:3, :3], translation=np.array([0.0, 0.0, 0.0])),
200-
common.GripperType("Robotiq2F85"): common.Pose(translation=np.array([0.0, 0.0, 0.0]), quaternion=np.array([0.0, 0.0, 0.7071068, 0.7071068])),
199+
common.GripperType.FrankaHand: common.Pose(
200+
rotation=common.FrankaHandTCPOffset()[:3, :3], translation=np.array([0.0, 0.0, 0.0])
201+
),
202+
common.GripperType("Robotiq2F85"): common.Pose(
203+
translation=np.array([0.0, 0.0, 0.0]), quaternion=np.array([0.0, 0.0, 0.7071068, 0.7071068])
204+
),
201205
}
202206

203207
SCENE_PATHS: dict[str, str] = {"empty_world": "assets/scenes/empty_world/scene.xml"}

python/rcs/envs/configs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import gymnasium as gym
66
import numpy as np
7-
from rcs._core.common import FrankaHandTCPOffset, GripperType, RobotType
7+
from rcs._core.common import GripperType, RobotType
88
from rcs._core.sim import (
99
CameraType,
1010
SimCameraConfig,
@@ -24,8 +24,8 @@
2424
from rcs import (
2525
CAMERA_PATHS,
2626
DEFAULT_TRANSFORMS,
27-
GRIPPER_TCP_OFFSETS,
2827
GRIPPER_MOUNT_OFFSETS,
28+
GRIPPER_TCP_OFFSETS,
2929
OBJECT_PATHS,
3030
SCENE_PATHS,
3131
)

0 commit comments

Comments
 (0)