Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add steps to run python code #47

Merged
merged 2 commits into from
Nov 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify here that this is a bug for the Indigo release?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


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