Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneT2000 committed Jan 24, 2024
1 parent fba9ee8 commit c80b3d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions mani_skill2/agents/controllers/pd_base_vel.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ def set_action(self, action: Array):
vel = (rot_mat @ action[:, :2].unsqueeze(-1)).squeeze(-1)
new_action = torch.hstack([vel, action[:, 2:]])
self.articulation.set_joint_drive_velocity_targets(new_action, self.joints)


class PDBaseVelControllerConfig(PDJointVelControllerConfig):
controller_cls = PDBaseVelController
4 changes: 2 additions & 2 deletions mani_skill2/agents/robots/fetch/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def controller_configs(self):
self.arm_damping,
self.arm_force_limit,
ee_link=self.ee_link_name,
urdf_path=self.urdf_path
urdf_path=self.urdf_path,
)
arm_pd_ee_delta_pose = PDEEPoseControllerConfig(
self.arm_joint_names,
Expand All @@ -145,7 +145,7 @@ def controller_configs(self):
self.arm_damping,
self.arm_force_limit,
ee_link=self.ee_link_name,
urdf_path=self.urdf_path
urdf_path=self.urdf_path,
)

arm_pd_ee_target_delta_pos = deepcopy(arm_pd_ee_delta_pos)
Expand Down

0 comments on commit c80b3d1

Please sign in to comment.