@@ -152,9 +152,11 @@ int main(int argc, char** argv)
152152 visual_tools.trigger ();
153153 visual_tools.prompt (" Press 'next' in the RvizVisualToolsGui window to continue the demo" );
154154
155- // Finally, to execute the trajectory stored in my_plan, you could use the following method call:
155+ // Finally, to execute the trajectory stored in my_plan, you could use the following method call.
156156 // Note that this can lead to problems if the robot moved in the meanwhile.
157- // move_group_interface.execute(my_plan);
157+ // This tutorial does not actually move the robot, so this line is commented out
158+
159+ /* move_group_interface.execute(my_plan); */
158160
159161 // Moving to a pose goal
160162 // ^^^^^^^^^^^^^^^^^^^^^
@@ -163,8 +165,9 @@ int main(int argc, char** argv)
163165 // the following is a more robust combination of the two-step plan+execute pattern shown above
164166 // and should be preferred. Note that the pose goal we had set earlier is still active,
165167 // so the robot will try to move to that goal.
168+ // This tutorial does not actually move the robot, so this line is commented out
166169
167- // move_group_interface.move();
170+ /* move_group_interface.move(); */
168171
169172 // Planning to a joint-space goal
170173 // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -320,8 +323,9 @@ int main(int argc, char** argv)
320323 // the trajectory manually, as described `here <https://groups.google.com/forum/#!topic/moveit-users/MOoFxy2exT4>`_.
321324 // Pull requests are welcome.
322325 //
323- // You can execute a trajectory like this.
324- move_group_interface.execute (trajectory);
326+ // You can execute a trajectory like this. This tutorial does not actually move the robot, so this line is commented out
327+
328+ /* move_group_interface.execute(trajectory); */
325329
326330 // Adding objects to the environment
327331 // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments