I've followed the
Setup Assistant from MoveIt official tutorial and set things up with PR2.
When I tried to launch the demo.launch, I got:
[ INFO] [1377699350.979543398, 416.061000000]: No active joints or end effectors found for group ''. Make sure you have defined an end effector in your SRDF file and that kinematics.yaml is loaded in this node's namespace.
[ INFO] [1377699350.980468041, 416.061000000]: No active joints or end effectors found for group 'right_arm'. Make sure you have defined an end effector in your SRDF file and that kinematics.yaml is loaded in this node's namespace.
[ INFO] [1377699351.117153529, 416.142000000]: No active joints or end effectors found for group 'right_arm'. Make sure you have defined an end effector in your SRDF file and that kinematics.yaml is loaded in this node's namespace.
[ INFO] [1377699351.183484368, 416.187000000]: Constructing new MoveGroup connection for group 'right_arm'
I just followed the procedure in the setup assistant tutorial. One of the step is setting the end effector and I've done that.
To make sure, I went back and checked the config/pr2.srdf in the package generated by the assistant. I think this line should set the end effector correctly:
<end_effector name="right_eef" parent_link="r_wrist_roll_link" group="right_gripper" parent_group="right_arm" />
When I tried to play around with the rviz GUI, I couldn't find the interactive markers around the end-effector to drag the arm.
I could only set the start and goal states using "random" and it can plan a trajectory correctly.
When I tried to write a simple program using
setPositionTarget function from moveit::planning_interface::MoveGroup to move the arm, I got the following error:
[ INFO] [1377700403.473149069, 1245.442000000]: Ready to take MoveGroup commands for group right_arm.
[ INFO] [1377700403.473345786, 1245.442000000]: Move to : x=0.500000, y=-0.200000, z=0.500000
[ERROR] [1377700403.473400750, 1245.442000000]:
No end-effector to set the pose for[ INFO] [1377700403.473452222, 1245.442000000]:
Set eef wrong[ INFO] [1377700403.498034983, 1245.455000000]: ABORTED: Invalid goal constraints
This seemed to be the some problem with setting the end effector of the arm.
However, I've checked the procedure and make sure that I've followed the procedure on the tutorial completely, but still failed with the same problem.
I tried the same procedure on other computers, one got the same problem while the other two worked fine!
My computer is Ubuntu 12.10, Groovy. The one that got the same problem is running Ubuntu 12.10, Groovy, too.
One of the computer that succeeded was Ubuntu 12.04, Groovy and another one is Ubuntu 12.10, Groovy.