Skip to content

Commit 15f974a

Browse files
MGI: disambiguate tutorial on plan()+move() (#594)
The previous version implies that move() might actuate the plan generated above, which is *not* the case. Instead, let's mention the execute method above and disambiguate the comments. Co-authored-by: Drew Hamilton <contact@drewhamilton.net>
1 parent 424cb90 commit 15f974a

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

doc/move_group_interface/src/move_group_interface_tutorial.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -149,19 +149,19 @@ int main(int argc, char** argv)
149149
visual_tools.trigger();
150150
visual_tools.prompt("Press 'next' in the RvizVisualToolsGui window to continue the demo");
151151

152+
// Finally, to execute the trajectory stored in my_plan, you could use the following method call:
153+
// Note that this can lead to problems if the robot moved in the meanwhile.
154+
// move_group.execute(my_plan);
155+
152156
// Moving to a pose goal
153157
// ^^^^^^^^^^^^^^^^^^^^^
154158
//
155-
// Moving to a pose goal is similar to the step above
156-
// except we now use the move() function. Note that
157-
// the pose goal we had set earlier is still active
158-
// and so the robot will try to move to that goal. We will
159-
// not use that function in this tutorial since it is
160-
// a blocking function and requires a controller to be active
161-
// and report success on execution of a trajectory.
162-
163-
/* Uncomment below line when working with a real robot */
164-
/* move_group.move(); */
159+
// If you do not want to inspect the planned trajectory,
160+
// the following is a more robust combination of the two-step plan+execute pattern shown above
161+
// and should be preferred. Note that the pose goal we had set earlier is still active,
162+
// so the robot will try to move to that goal.
163+
164+
// move_group.move();
165165

166166
// Planning to a joint-space goal
167167
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)