Skip to content

Commit

Permalink
Add steps to run python code (#47)
Browse files Browse the repository at this point in the history
* Add steps to run python code

Make sure python code is executable and note that in binary release of ROS, moveit_commander throws an exception while shutting down

* Update move_group_python_interface_tutorial.rst

changes to rosrun and chmod
  • Loading branch information
MPJansen authored and davetcoleman committed Nov 5, 2016
1 parent e448414 commit 5284f93
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,27 @@ The entire code can be seen :codedir:`here in the moveit_pr2 github project<plan

The launch file
^^^^^^^^^^^^^^^
The entire launch file is `here
<https://github.com/ros-planning/moveit_tutorials/tree/kinetic-devel/doc/pr2_tutorials/planning/launch/move_group_python_interface_tutorial.launch>`_
The entire launch file is `here <https://github.com/ros-planning/moveit_tutorials/tree/kinetic-devel/doc/pr2_tutorials/planning/launch/move_group_python_interface_tutorial.launch>`_
on github. All the code in this tutorial can be run from the
moveit_tutorials package that you have as part of your MoveIt! setup.

Running the code
^^^^^^^^^^^^^^^^
Make sure your python file is executable::
roscd moveit_tutorials/doc/pr2_tutorials/planning/scripts/
chmod +x move_group_python_interface_tutorial.py

Roslaunch the launch file to run the code directly from moveit_tutorials::
Launch the moveit! demo interface::

roslaunch moveit_tutorials move_group_python_interface_tutorial.launch
roslaunch pr2_moveit_config demo.launch

Now run the python code directly using rosrun::

rosrun moveit_tutorials move_group_python_interface_tutorial.py

Please note that due to a bug in ros-Indigo discussed in issue `#15 <https://github.com/ros-planning/moveit_commander/issues/15>`_ the moveit_commander throws an exception when shutting down.
This does not interfere with the functioning of the code itself.

Expected Output
^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 5284f93

Please sign in to comment.