Skip to content

Commit 0770246

Browse files
committed
updated headings
1 parent c8421d8 commit 0770246

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

doc/tutorials/pick_and_place_with_moveit_task_constructor/pick_and_place_with_moveit_task_constructor.rst

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Move into your colcon workspace and pull the MoveIt Task Constructor source: ::
6363
git clone [email protected]:ros-planning/moveit_task_constructor.git -b ros2
6464
vcs import < moveit_task_constructor/.repos
6565

66-
3 Trying it out
66+
3 Trying it Out
6767
------------------
6868

6969
The MoveIt Task Constructor package contains several basic examples and a pick-and-place demo.
@@ -508,7 +508,7 @@ Finally, we have ``main``: the following lines create a node using the class def
508508
5 Running the Demo
509509
------------------
510510

511-
5.1 Launch files
511+
5.1 Launch Files
512512
^^^^^^^^^^^^^^^^
513513

514514
We will need a launch file to launch the ``move_group``, ``ros2_control``, ``static_tf``, ``robot_state_publisher``, and ``rviz`` nodes that provide us the environment to run the demo. The one we will use for this example can be found :codedir:`here<tutorials/pick_and_place_with_moveit_task_constructor/launch/mtc_demo.launch.py>`.
@@ -536,7 +536,7 @@ To run the MoveIt Task Constructor node, we need a second launch file to start t
536536
537537
return LaunchDescription([pick_place_demo])
538538
539-
Save a launch file as ``pick_place_demo.launch.py`` or download ours to the package's launch directory. Make sure to edit the ``CMakeLists.txt`` so it includes the launch folder by adding the following lines: ::
539+
Save a launch file as ``pick_place_demo.launch.py`` or download one to the package's launch directory. Make sure to edit the ``CMakeLists.txt`` so it includes the launch folder by adding the following lines: ::
540540

541541
install(DIRECTORY launch
542542
DESTINATION share/${PROJECT_NAME}
@@ -591,7 +591,7 @@ So far, we've walked through creating and executing a simple task, which runs bu
591591
.. image:: stages.png
592592
:width: 700px
593593

594-
We will start adding stages after our existing open hand stage here:
594+
We will start adding stages after our existing open hand stage. Open ``mtc_node.cpp`` and locate the following lines:
595595

596596
.. code-block:: c++
597597

@@ -763,11 +763,14 @@ With this, we have all the stages needed to pick the object. Now, we add the ser
763763
task.add(std::move(grasp));
764764
}
765765

766+
To test out the newly created stage, build the code and execute: ::
767+
768+
ros2 launch mtc_tutorial pick_place_demo.launch.py
766769

767770
6.2 Place Stages
768771
^^^^^^^^^^^^^^^^
769772

770-
Now that the stages that define the pick are complete, we move on to defining the stages for placing the object. We start with a ``Connect`` stage to connect the two, as we will soon be using a generator stage to generate the pose for placing the object.
773+
Now that the stages that define the pick are complete, we move on to defining the stages for placing the object. Picking up where we left off, we add a ``Connect`` stage to connect the two, as we will soon be using a generator stage to generate the pose for placing the object.
771774

772775
.. code-block:: c++
773776

@@ -901,10 +904,13 @@ All these stages should be added above these lines.
901904
return task;
902905
}
903906

904-
Congratulations! You've now defined a pick and place task using MoveIt Task Constructor!
907+
Congratulations! You've now defined a pick and place task using MoveIt Task Constructor! To try it out, build the code and execute: ::
908+
909+
ros2 launch mtc_tutorial pick_place_demo.launch.py
910+
905911

906-
7 Visualizing with RViz
907-
-----------------------
912+
7 Further Discussion
913+
--------------------
908914

909915
The task with each comprising stage is shown in the Motion Planning Tasks pane. Click on a stage and additional information about the stage will show up to the right. The right pane shows different solutions as well as their associated costs. Depending on the stage type and the robot configuration, there may only be one solution shown.
910916

@@ -918,8 +924,8 @@ And in a second terminal: ::
918924

919925
ros2 launch moveit2_tutorials pick_place_demo.launch.py
920926

921-
7.1 Debugging from terminal
922-
^^^^^^^^^^^^^^^^^^^^^^^^^^^
927+
7.1 Debugging Information Printed to the Terminal
928+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
923929

924930
When running MTC, it prints a diagram like this to terminal:
925931

@@ -938,7 +944,7 @@ The second stage ("move_to_home") is a ``MoveTo`` type of stage. It inherits its
938944

939945
In this case, we could tell that "move_to_home" was the root cause of the failure. The problem was a home state that was in collision. Defining a new, collision-free home position fixed the issue.
940946

941-
7.2 Various hints
947+
7.2 Stages
942948
^^^^^^^^^^^^^^^^^
943949

944950
Information about individual stages can be retrieved from the task. For example, here we retrieve the unique ID for a stage: ::

0 commit comments

Comments
 (0)