Skip to content

Commit

Permalink
fix(panda): fix 'ee_pose_target' not defined bug
Browse files Browse the repository at this point in the history
This commit ensures that the 'ee_pose_target' variable is defined.
  • Loading branch information
rickstaa committed Mar 24, 2024
1 parent cda1b76 commit 54693d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ros_gazebo_gym/robot_envs/panda_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ def set_ee_pose(self, ee_pose): # noqa: C901
# Remove the end-effector offset if set.
if not self.ee_offset_is_zero:
# FIXME: Is not yet correctly implemented.
ee_target = self._remove_ee_offset(ee_pose_target)
ee_pose_target = self._remove_ee_offset(ee_pose_target)

########################################
# Set EE pose ##########################
Expand All @@ -954,7 +954,7 @@ def set_ee_pose(self, ee_pose): # noqa: C901
f"'{self._moveit_set_ee_pose_client.resolved_name}' service."
)
set_ee_pose_req = self.panda_gazebo.srv.SetEePoseRequest(
pose=ee_target.pose,
pose=ee_pose_target.pose,
)
retval = self._moveit_set_ee_pose_client.call(set_ee_pose_req)
if not retval.success:
Expand Down

0 comments on commit 54693d7

Please sign in to comment.