Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 13 additions & 1 deletion plugin_tutorials/docs/writing_new_behavior_plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,20 @@ It is good practice to place these lines at the end of the file but technically,
<nav2_core plugin="${prefix}/behavior_plugin.xml" />
</export>

5. Compile and it should be registered. Next, we'll use this plugin.
5. Compile and it should be registered. You can verify that it has been successfully registered by running:

.. code-block:: shell

$ ros2 plugin list

You should see an output similar to below:

.. code-block:: shell

nav2_sms_behavior:
Plugin(name='nav2_sms_behavior::SendSms', type='nav2_sms_behavior::SendSms', base='nav2_core::Behavior')

Next, we'll use this plugin.

3- Pass the plugin name through params file
-------------------------------------------
Expand Down
13 changes: 12 additions & 1 deletion plugin_tutorials/docs/writing_new_costmap2d_plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,18 @@ Plugin description file is also should be added to ``package.xml``. ``costmap_2d

After everything is done put the plugin package into ``src`` directory of a certain ROS 2-workspace, build the plugin package (``colcon build --packages-select nav2_gradient_costmap_plugin --symlink-install``) and source ``setup.bash`` file when it necessary.

Now the plugin is ready to use.
Now the plugin is ready to use. You can verify that it has been successfully registered by running:

.. code-block:: shell

$ ros2 plugin list

You should see an output similar to below:

.. code-block:: shell

nav2_gradient_costmap_plugin:
Plugin(name='nav2_gradient_costmap_plugin::GradientLayer', type='nav2_gradient_costmap_plugin::GradientLayer', base='nav2_costmap_2d::Layer')

3- Enable the plugin in Costmap2D
---------------------------------
Expand Down
15 changes: 14 additions & 1 deletion plugin_tutorials/docs/writing_new_nav2controller_plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,20 @@ It is good practice to place these lines at the end of the file, but technically
<nav2_core plugin="${prefix}/pure_pursuit_controller_plugin.xml" />
</export>

5. Compile, and it should be registered. Next, we'll use this plugin.
5. Compile, and it should be registered. You can verify that it has been successfully registered by running:

.. code-block:: shell

$ ros2 plugin list

You should see an output similar to below:

.. code-block:: shell

nav2_pure_pursuit_controller:
Plugin(name='nav2_pure_pursuit_controller::PurePursuitController', type='nav2_pure_pursuit_controller::PurePursuitController', base='nav2_core::Controller')

Next, we'll use this plugin.

3- Pass the plugin name through the params file
-----------------------------------------------
Expand Down
15 changes: 14 additions & 1 deletion plugin_tutorials/docs/writing_new_nav2planner_plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,20 @@ It is good practice to place these lines at the end of the file, but technically
<nav2_core plugin="${prefix}/global_planner_plugin.xml" />
</export>

5. Compile and it should be registered. Next, we'll use this plugin.
5. Compile and it should be registered. You can verify that it has been successfully registered by running:

.. code-block:: shell

$ ros2 plugin list

You should see an output similar to below:

.. code-block:: shell

nav2_straightline_planner:
Plugin(name='nav2_straightline_planner::StraightLine', type='nav2_straightline_planner::StraightLine', base='nav2_core::GlobalPlanner')

Next, we'll use this plugin.

3- Pass the plugin name through params file
-------------------------------------------
Expand Down
15 changes: 14 additions & 1 deletion plugin_tutorials/docs/writing_new_navigator_plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,20 @@ It is good practice to place these lines at the end of the file, but technically
<nav2_core plugin="${prefix}/navigator_plugin.xml" />
</export>

5. Compile, and it should be registered. Next, we'll use this plugin.
5. Compile, and it should be registered. You can verify that it has been successfully registered by running:

.. code-block:: shell

$ ros2 plugin list

You should see an output similar to below:

.. code-block:: shell

nav2_bt_navigator:
Plugin(name='nav2_bt_navigator::NavigateToPoseNavigator', type='nav2_bt_navigator::NavigateToPoseNavigator', base='nav2_core::NavigatorBase')

Next, we'll use this plugin.

3- Pass the plugin name through the params file
-----------------------------------------------
Expand Down
Loading