Skip to content

Commit

Permalink
remove delta w.r.t. terrain
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlottaSartore committed Apr 30, 2024
1 parent 5e1463e commit 0e130e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comodo/mujocoSimulator/mujocoSimulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def set_visualize_robot_flag(self, visualize_robot):

def set_base_pose_in_mujoco(self, xyz_rpy):
base_xyz_quat = np.zeros(7)
base_xyz_quat[:3] = xyz_rpy[:3] + 0.0001
base_xyz_quat[:3] = xyz_rpy[:3]
base_xyz_quat[3:] = self.RPY_to_quat(xyz_rpy[3], xyz_rpy[4], xyz_rpy[5])
base_xyz_quat[2] = base_xyz_quat[2]
self.data.qpos[:7] = base_xyz_quat
Expand Down

0 comments on commit 0e130e3

Please sign in to comment.