Skip to content

Commit 874eaf3

Browse files
Format
1 parent 3cc2f56 commit 874eaf3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

robosuite/devices/device.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def input2action(self, mirror_actions=False, goal_update_mode="target") -> Optio
162162

163163
if hasattr(robot, "torso") and robot.torso is not None:
164164
# only support single joint torso for now
165-
if self.env.robots[0].composite_controller.part_controllers['torso'].joint_dim == 1:
165+
if self.env.robots[0].composite_controller.part_controllers["torso"].joint_dim == 1:
166166
ac_dict["torso"] = self.get_torso_action(robot, device_torso_input)
167167

168168
# populate action dict items for arm and grippers
@@ -192,7 +192,7 @@ def get_arm_action(self, robot, arm, norm_delta, goal_update_mode="target"):
192192
assert goal_update_mode in [
193193
"achieved",
194194
"target",
195-
], f"goal_update_mode must be either 'achieved' or 'target', got {goal_update_mode}" # update next target either based on achieved pose or current target pose
195+
], f"goal_update_mode must be either 'achieved' or 'target', got {goal_update_mode}" # update next target either based on achieved pose or current target pose
196196

197197
# TODO: the logic between OSC and while body based ik is fragmented right now. Unify
198198
if isinstance(robot.part_controllers[arm], OperationalSpaceController):

robosuite/models/robots/robot_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def add_mobile_base(self, mobile_base: MobileBaseModel):
206206
# elements to avoid duplicates since mobile base support already has inertial properties
207207
for child in all_root_children:
208208
# Skip inertial elements to avoid duplicates with mobile base's own inertial
209-
if child.tag != 'inertial':
209+
if child.tag != "inertial":
210210
mount_support.append(deepcopy(child))
211211
root.remove(child)
212212
self.merge_assets(mobile_base)

0 commit comments

Comments
 (0)