Skip to content

Commit b601dc7

Browse files
authored
Update documentation with partial paths support for ComputePathThroughPoses action (#808)
* Added partial planning parameter Signed-off-by: Abhishekh Reddy <[email protected]> * Added last_reached_index field to output ports Signed-off-by: Abhishekh Reddy <[email protected]> * Attempt to fix formatting Signed-off-by: Abhishekh Reddy <[email protected]> * Added description for partial path support in Planner Server Signed-off-by: Abhishekh Reddy <[email protected]> --------- Signed-off-by: Abhishekh Reddy <[email protected]>
1 parent 0070945 commit b601dc7

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

configuration/packages/bt-plugins/actions/ComputePathThroughPoses.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ Output Ports
8080
Description
8181
Path created by action server. Takes in a blackboard variable, e.g. "{path}".
8282

83+
:last_reached_index:
84+
85+
========================== =======
86+
Type Default
87+
-------------------------- -------
88+
int16 -1
89+
========================== =======
90+
91+
Description
92+
In the case of a partial plan, index of the last reached pose from the goals list. Otherwise -1 which also corresponds to ComputePathThroughPosesResult::ALL_GOALS if a full plan through all the goals was possible.
93+
8394
:error_code_id:
8495

8596
============== =======

configuration/packages/configuring-planner-server.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ Parameters
3939
plugin: "nav2_navfn_planner::NavfnPlanner" # In Iron and older versions, "/" was used instead of "::"
4040
..
4141
42+
:allow_partial_planning:
43+
44+
============== ========
45+
Type Default
46+
-------------- --------
47+
bool false
48+
============== ========
49+
50+
Description
51+
Allows planner server to output partial paths in the presence of obstacles when planning through poses. Otherwise planner fails and aborts the plan request in such a case by default.
52+
4253
:expected_planner_frequency:
4354

4455
============== ========
@@ -111,6 +122,7 @@ Example
111122
112123
planner_server:
113124
ros__parameters:
125+
allow_partial_planning: false
114126
expected_planner_frequency: 20.0
115127
costmap_update_timeout: 1.0
116128
introspection_mode: "disabled"

migration/Kilted.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,15 @@ Default value:
444444

445445
- open_loop: false
446446

447+
Partial paths from Planner Server
448+
---------------------------------
449+
450+
`PR #5687 <https://github.com/ros-navigation/navigation2/pull/5687>`_ adds support for outputting partial paths when planning through poses with the Planner Server. This is an
451+
alternative behavior to the existing all-or-nothing approach, where either a complete path through all poses is returned, or no path at all if any pose cannot be reached due to obstacles.
452+
While partial path output will still remain disabled by default, it can be set using the new `allow_partial_planning` dynamic parameter.
453+
454+
When this feature is used, the result from `compute_path_through_poses` action server will now indicate the last reached pose from the goals list in `last_reached_index` field.
455+
447456
Namespace added for primary controller parameters in Rotation Shim Controller
448457
-----------------------------------------------------------------------------
449458

0 commit comments

Comments
 (0)