Skip to content

Commit 81f19e4

Browse files
adding get pose from path (#574)
1 parent df3439a commit 81f19e4

File tree

4 files changed

+64
-1
lines changed

4 files changed

+64
-1
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
.. _bt_getposefrompath_action:
2+
3+
GetPoseFromPath
4+
===============
5+
6+
Gets a pose from a particular index on the path. Use ``-1`` to get the last pose, ``-2`` for second to last, and so on.
7+
8+
Input Ports
9+
***********
10+
11+
:path:
12+
13+
============= =======
14+
Type Default
15+
------------- -------
16+
nav_msgs/Path N/A
17+
============= =======
18+
19+
Description
20+
Path to extract pose from
21+
22+
:index:
23+
24+
====== =======
25+
Type Default
26+
------ -------
27+
int 0
28+
====== =======
29+
30+
Description
31+
Index from path to use. Use ``-1`` to get the last pose, ``-2`` for second to last, and so on.
32+
33+
Output Ports
34+
------------
35+
36+
:pose:
37+
38+
========================= =======
39+
Type Default
40+
------------------------- -------
41+
geometry_msgs/PoseStamped N/A
42+
========================= =======
43+
44+
Description
45+
Pose from path, with the Path's set header.
46+
47+
Example
48+
-------
49+
50+
.. code-block:: xml
51+
52+
<GetPoseFromPath path="{path}" index="-1" pose="{goal}"/>

configuration/packages/configuring-bt-xml.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Action Plugins
5050
bt-plugins/actions/CancelDriveOnHeading.rst
5151
bt-plugins/actions/CancelAssistedTeleop.rst
5252
bt-plugins/actions/Smooth.rst
53+
bt-plugins/actions/GetPoseFromPath.rst
5354

5455
Condition Plugins
5556
*****************

migration/Jazzy.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,11 @@ Here we can see the working demo of the plugin:
2323

2424
.. image:: images/docking_panel.gif
2525

26-
.. attention:: If the docking server is unavailable, then the combo box of the dock type will be empty.
26+
.. attention:: If the docking server is unavailable, then the combo box of the dock type will be empty.
27+
28+
New BT Nodes
29+
************
30+
31+
Below is a list of new BT Nodes added:
32+
33+
- ``GetPoseFromPath``: An action to get a particular pose from an input path.

plugins/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ Behavior Tree Nodes
410410
+--------------------------------------------+---------------------+------------------------------------------+
411411
| `Compute Complete Coverage Path Action`_ | Steve Macenski | Calls coverage planner server |
412412
+--------------------------------------------+---------------------+------------------------------------------+
413+
| `Get Pose From Path Action`_ | Marc Morcos | Extracts a pose from a path |
414+
+--------------------------------------------+---------------------+------------------------------------------+
413415

414416
.. _Back Up Action: https://github.com/ros-planning/navigation2/tree/main/nav2_behavior_tree/plugins/action/back_up_action.cpp
415417
.. _Drive On Heading Action: https://github.com/ros-planning/navigation2/tree/main/nav2_behavior_tree/plugins/action/drive_on_heading_action.cpp
@@ -442,6 +444,7 @@ Behavior Tree Nodes
442444
.. _Cancel Assisted Teleop Action: https://github.com/ros-planning/navigation2/tree/main/nav2_behavior_tree/plugins/action/assisted_teleop_cancel_node.cpp
443445
.. _Cancel Complete Coverage Action: https://github.com/open-navigation/opennav_coverage/blob/main/opennav_coverage_bt/src/cancel_complete_coverage_path.cpp
444446
.. _Compute Complete Coverage Path Action: https://github.com/open-navigation/opennav_coverage/blob/main/opennav_coverage_bt/src/compute_complete_coverage_path.cpp
447+
.. _Get Pose From Path Action: https://github.com/ros-navigation/navigation2/blob/main/nav2_behavior_tree/plugins/action/get_pose_from_path_action.cpp
445448

446449

447450
+------------------------------------+--------------------+------------------------+

0 commit comments

Comments
 (0)