Changing the orientation of a pose goal in rviz (python)
Coming off the back of the rviz tutorials, I've been trying to control the panda arm using only the pose goal but cannot change it's orientation. Changing the "pose_goal.orientation.w" value seems to do nothing and although I've read that rviz uses quaterion values to define orientation I can't understand how this translates to what I'd write in my code to achieve a specific orientation. My goal is to be able to set an orientation for the arm based on coordinates in Cartesian space and either values for pitch/roll/yaw or a direction vector
Here is the part of my code defining the pose goal
def go_to_pose_goal(self):
move_group = self.move_group
print("Starting planning to go to pose goal.\n")
pose_goal = geometry_msgs.msg.Pose()
pose_goal.orientation.w = 1
pose_goal.orientation.x = 1
pose_goal.orientation.y = 1
pose_goal.orientation.z = 1
pose_goal.position.x = 1
pose_goal.position.y = -0.518
pose_goal.position.z = 0.8
move_group.set_pose_target(pose_goal)
plan = move_group.go(wait=True)
move_group.stop()
move_group.clear_pose_targets()
current_pose = self.move_group.get_current_pose().pose
return all_close(pose_goal, current_pose, 0.01
please always link to whatever you are referring to.
We can't know what you consider "the rviz tutorials".