moveit_users,
I recently tripped into an issue with the MoveGroup API which gets stuck
when planning a trajectory.
Specifically, when I run the code snippet pasted below, MoveGroup first
seems to plan the path like usual when I press the planning button in
the RViz plugin.
But then, moveit_ros gets stuck in the plan(...) function in
planning_interface/move_group_interface/src/move_group.cpp in line 471:
if (!move_action_client_->waitForResult()) and never returns from the
plan(...) function.
However, the planning seems to work fine as you can see in the output
below. Also, if I use setRandomTarget() instead of setJointValueTarget()
or setPoseTarget(), which I also tried, the planning functions returns
as expected.
I know that it doesn't make much sense to plan to the current position
as in this code snippet, but that's the simplest possible use case to
reproduce the issue.
Does anybody have an idea whether I forgot to set something or used the
plan function wrong? Any other ideas?
Cheers,
Tobi
-------------
Code snippet:
boost::shared_ptr<move_group_interface::MoveGroup> moveGroupPtr;
[...]
moveGroupPtr = boost::shared_ptr<move_group_interface::MoveGroup>(new
move_group_interface::MoveGroup("arm"));
moveGroupPtr->setPlannerId("arm[RRTStarkConfigDefault]");
moveGroupPtr->setPlanningTime(2.);
[...]
moveGroupPtr->setJointValueTarget(*moveGroupPtr->getCurrentState());
moveit::planning_interface::MoveGroup::Plan plan;
bool ret = moveGroupPtr->plan(plan);
MoveGroup output:
[ INFO] [1377092804.819722729]: Planning request received for MoveGroup
action. Forwarding to planning pipeline.
[ INFO] [1377092804.826220960]: Planner configuration
'arm[RRTStarkConfigDefault]' will use planner 'geometric::RRTstar'.
Additional configuration parameters will be set when the planner is
constructed.
[ INFO] [1377092804.827309191]: No optimization objective specified.
Defaulting to optimization of path length for the allowed planning time.
[ INFO] [1377092804.828668447]: Starting with 1 states
[ INFO] [1377092804.828839422]: Initial k-nearest value of 3
[ INFO] [1377092806.827681524]: Created 207 new states. Checked 2962
rewire options. 10 goal states in tree.
[ INFO] [1377092806.827743679]: Solution found in 2.000787 seconds
--
Tobias Fromm
Robotics Group
Jacobs University
Research I, Room 38
+49-421-200-3106
Campus Ring 1
t.f...@jacobs-university.de
28759 Bremen, Germany
http://robotics.jacobs-university.de