-
Notifications
You must be signed in to change notification settings - Fork 266
Added documentation for asymmetric_inflation_layer #913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mbloechli
wants to merge
8
commits into
ros-navigation:master
Choose a base branch
from
mbloechli:feat/asymmetric_inflation_layer
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f0a4b3a
Added documentation for asymmetric_inflation_layer
mbloechli 7e018b0
added image to layer description
mbloechli 48a9b42
added description to migration page
mbloechli 7617a0a
added description to plugins page
mbloechli c72dcad
linting
mbloechli 0cbc913
removed figure showing standard inflation, updated asymmetric layer p…
mbloechli 353a47c
removed figure showing standard inflation, updated asymmetric layer p…
mbloechli fe59707
removed inflation_threshold and asymmetric_factor parameters and spli…
mbloechli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 126 additions & 0 deletions
126
configuration/packages/costmap-plugins/asymmetric_inflation.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,126 @@ | ||
| .. asymmetric_inflation: | ||
|
|
||
| Asymmetric Inflation Layer Parameters | ||
| ====================================== | ||
|
|
||
| This layer implements an asymmetric variant of the inflation layer, by scaling inflation costs based on the planned path. | ||
|
|
||
| .. figure:: images/asymmetric_layer_active.png | ||
| :align: center | ||
| :alt: Costmap with asymmetric inflation layer | ||
|
|
||
| ``<asymmetric inflation layer>`` is the corresponding plugin name selected for this type. | ||
|
|
||
|
|
||
| :``<asymmetric inflation layer>``.enabled: | ||
|
|
||
| ==== ======= | ||
| Type Default | ||
| ---- ------- | ||
| bool True | ||
| ==== ======= | ||
|
|
||
| Description | ||
| Whether it is enabled. | ||
|
|
||
| :``<asymmetric inflation layer>``.inflation_radius: | ||
|
|
||
| ====== ======= | ||
| Type Default | ||
| ------ ------- | ||
| double 2.0 | ||
| ====== ======= | ||
|
|
||
| Description | ||
| Radius to inflate costmap around lethal obstacles. | ||
|
|
||
| :``<asymmetric inflation layer>``.cost_scaling_factor_left: | ||
|
|
||
| ====== ======= | ||
| Type Default | ||
| ------ ------- | ||
| double 4.0 | ||
| ====== ======= | ||
|
|
||
| Description | ||
| Decay factor across inflation radius for obstacles on the left side of the path. | ||
|
|
||
| :``<asymmetric inflation layer>``.cost_scaling_factor_right: | ||
|
|
||
| ====== ======= | ||
| Type Default | ||
| ------ ------- | ||
| double 4.0 | ||
| ====== ======= | ||
|
|
||
| Description | ||
| Decay factor across inflation radius for obstacles on the right side of the path. | ||
|
|
||
|
|
||
| :``<asymmetric inflation layer>``.inflate_around_unknown: | ||
|
|
||
| ==== ======= | ||
| Type Default | ||
| ---- ------- | ||
| bool False | ||
| ==== ======= | ||
|
|
||
| Description | ||
| Whether to treat unknown cells as lethal for inflation purposes. | ||
|
|
||
| :``<asymmetric inflation layer>``.plan_topic: | ||
|
|
||
| ====== ======= | ||
| Type Default | ||
| ------ ------- | ||
| string "plan" | ||
| ====== ======= | ||
|
|
||
| Description | ||
| Topic on which to receive the global path (``nav_msgs/msg/Path``). | ||
|
|
||
| :``<asymmetric inflation layer>``.goal_distance_threshold: | ||
|
|
||
| ====== ======= | ||
| Type Default | ||
| ------ ------- | ||
| double 1.5 | ||
| ====== ======= | ||
|
|
||
| Description | ||
| Distance to the goal (m) below which asymmetric inflation is disabled. | ||
|
|
||
| This prevents oscillations when the robot is approaching the target pose. | ||
|
|
||
|
|
||
| Example | ||
| ---------- | ||
|
|
||
| .. code-block:: yaml | ||
|
|
||
| global_costmap: | ||
| ros__parameters: | ||
| update_frequency: 10.0 | ||
| publish_frequency: 10.0 | ||
| global_frame: map | ||
| robot_base_frame: base_link | ||
| footprint: "[ [0.525, 0.325], [0.525, -0.325], [-0.525, -0.325], [-0.525, 0.325] ]" | ||
| width: 10 | ||
| height: 10 | ||
| origin_x: -5.0 | ||
| origin_y: -5.0 | ||
| resolution: 0.05 | ||
| track_unknown_space: false | ||
| plugins: ["static_layer", "asymmetric_inflation_layer"] | ||
| static_layer: | ||
| plugin: "nav2_costmap_2d::StaticLayer" | ||
| map_subscribe_transient_local: True | ||
| asymmetric_inflation_layer: | ||
| plugin: "nav2_costmap_2d::AsymmetricInflationLayer" | ||
| enabled: True | ||
| inflation_radius: 3.0 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Q: Should L/R have different radius parameter options as well? |
||
| cost_scaling_factor_left: 1.0 | ||
| cost_scaling_factor_right: 4.0 | ||
| inflate_around_unknown: False | ||
| plan_topic: "plan" | ||
| goal_distance_threshold: 1.5 | ||
Binary file added
BIN
+83 KB
configuration/packages/costmap-plugins/images/asymmetric_layer_active.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
SteveMacenski marked this conversation as resolved.
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.