Skip to content

Commit 8e7c701

Browse files
add missing step in writing new BT plugin tutorial (#111)
1 parent 30a337c commit 8e7c701

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

plugin_tutorials/docs/writing_new_bt_plugin.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,24 @@ An example can be seen below, where the ``Wait`` BT XML node specifies a non-var
179179
180180
<Wait wait_duration="5"/>
181181
182+
3- Add plugin library name to config
183+
------------------------------------
184+
185+
In order for the BT Navigator node to discover the plugin we've just registered, we need to list the plugin library name under the bt_navigator node in the configuration YAML file. Configuration should look similar to the one shown below. Take note of nav2_wait_action_bt_node listed under plugin_lib_names.
186+
187+
.. code-block:: text
188+
189+
bt_navigator:
190+
ros__parameters:
191+
use_sim_time: True
192+
global_frame: map
193+
robot_base_frame: base_link
194+
odom_topic: /odom
195+
default_bt_xml_filename: "navigate_w_replanning_and_recovery.xml"
196+
plugin_lib_names:
197+
- nav2_back_up_action_bt_node # other plugin
198+
- nav2_wait_action_bt_node # our new plugin
199+
182200
4- Run Your Custom plugin
183201
-------------------------
184202

0 commit comments

Comments
 (0)