Skip to content

Commit

Permalink
[pickup/place_action] Fixed test for empty goal orientation
Browse files Browse the repository at this point in the history
Both None and empty list have to be covered
  • Loading branch information
alex-mitrevski committed Jan 6, 2021
1 parent d9ef475 commit 2dc3809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def running(self):
# y position of the goal pose to the elbow offset
pose_base_link.pose.position.y = self.base_elbow_offset

if self.grasping_orientation is not None:
if self.grasping_orientation:
pose_base_link.pose.orientation.x = self.grasping_orientation[0]
pose_base_link.pose.orientation.y = self.grasping_orientation[1]
pose_base_link.pose.orientation.z = self.grasping_orientation[2]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def running(self):
pose = self.goal.pose
pose.header.stamp = rospy.Time(0)
pose_base_link = self.tf_listener.transformPose('base_link', pose)
if self.placing_orientation is not None:
if self.placing_orientation:
pose_base_link.pose.orientation.x = self.placing_orientation[0]
pose_base_link.pose.orientation.y = self.placing_orientation[1]
pose_base_link.pose.orientation.z = self.placing_orientation[2]
Expand Down

0 comments on commit 2dc3809

Please sign in to comment.