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
95 changes: 94 additions & 1 deletion configuration/packages/configuring-mppic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ This critic incentivizes navigating spatially towards the goal when in reasonabl
Obstacles Critic
----------------

This critic incentivizes navigating away from obstacles and critical collisions using either a circular robot point-check or full SE2 footprint check.
This critic incentivizes navigating away from obstacles and critical collisions using either a circular robot point-check or full SE2 footprint check using distances from obstacles.

:critical_weight:

Expand Down Expand Up @@ -566,6 +566,91 @@ This critic incentivizes navigating away from obstacles and critical collisions
Description
Name of the inflation layer. If empty, it uses the last inflation layer in the costmap. If you have multiple inflation layers, you may want to specify the name of the layer to use.


Cost Critic
-----------

This critic incentivizes navigating away from obstacles and critical collisions using either a circular robot point-check or full SE2 footprint check using the costmap values.

:cost_weight:

============== ===========================
Type Default
-------------- ---------------------------
double 3.81
============== ===========================

Description
Weight to apply to critic.

:cost_power:

============== ===========================
Type Default
-------------- ---------------------------
int 1
============== ===========================

Description
Power order to apply to term.

:consider_footprint:

============== ===========================
Type Default
-------------- ---------------------------
bool false
============== ===========================

Description
Whether to use point cost (if robot is circular or low compute power) or compute SE2 footprint cost.

:collision_cost:

============== ===========================
Type Default
-------------- ---------------------------
double 1000000.0
============== ===========================

Description
Cost to apply to a true collision in a trajectory.

:critical_cost:

============== ===========================
Type Default
-------------- ---------------------------
double 300.0
============== ===========================

Description
Cost to apply to a pose with any point in in inflated space to prefer distance from obstacles.


:near_goal_distance:

============== ===========================
Type Default
-------------- ---------------------------
double 0.50
============== ===========================

Description
Distance (m) near goal to stop applying preferential obstacle term to allow robot to smoothly converge to goal pose in close proximity to obstacles.

:inflation_layer_name:

============== ===========================
Type Default
-------------- ---------------------------
string ""
============== ===========================

Description
Name of the inflation layer. If empty, it uses the last inflation layer in the costmap. If you have multiple inflation layers, you may want to specify the name of the layer to use.


Path Align Critic
-----------------

Expand Down Expand Up @@ -887,6 +972,14 @@ Example
near_goal_distance: 0.5
inflation_radius: 0.55 # (only in Humble)
cost_scaling_factor: 10.0 # (only in Humble)
# CostCritic:
# enabled: true
# cost_power: 1
# cost_weight: 3.81
# critical_cost: 300.0
# consider_footprint: true
# collision_cost: 1000000.0
# near_goal_distance: 1.0
PathAlignCritic:
enabled: true
cost_power: 1
Expand Down
7 changes: 7 additions & 0 deletions migration/Iron.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ MPPI's Path Align Critic and Path Handler object now have options to utilize the

See MPPI's configuration guide for complete information.

Addition of new MPPI Cost Critic
********************************

Analog to the ``ObstacleCritic``, the ``CostCritic`` is another obstacle avoiding critic alternative if the ``ObstacleCritic`` is not working well for you.
This critic uses the inflated costs in the costmap to score rather than distance to obstacles as the ``ObstaclesCritic`` does.
See the configuration guide for more information.

Move Error Code Enumerations
****************************

Expand Down