ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can align the end effector without actually specifying the whole pose. Let's

pose_target = geometry_msgs.msg.Pose()

pose_target.position=group.get_current_pose().pose.position

# Then set orientation as you want
pose_target.orientation.w = 1.0
group.set_pose_target(pose_target)

plan1 = group.plan()
group.go()

You can align the end effector without actually specifying the whole pose. Let'sLet's say we keep the position but only set the orientation of the end effector.

Here in python the solution by modifying a bit the moveit tutorial :

pose_target = geometry_msgs.msg.Pose()
# Then set pose_target position as the current position pose_target.position=group.get_current_pose().pose.position

pose_target.position=group.get_current_pose().pose.position

# Then set orientation as you want
pose_target.orientation.w = 1.0
group.set_pose_target(pose_target)
 # Planning
plan1 = group.plan()
group.go()

I don't know if it's really what you want but that's the first solution I have in mind