A recovery behavior that reverts the navigation stack's costmaps to the static map outside of a user-specified region. More...
#include <clear_costmap_recovery.h>
Public Member Functions | |
ClearCostmapRecovery () | |
Constructor, make sure to call initialize in addition to actually initialize the object. | |
void | initialize (std::string name, tf::TransformListener *tf, costmap_2d::Costmap2DROS *global_costmap, costmap_2d::Costmap2DROS *local_costmap) |
Initialization function for the ClearCostmapRecovery recovery behavior. | |
void | runBehavior () |
Run the ClearCostmapRecovery recovery behavior. Reverts the costmap to the static map outside of a user-specified window and clears unknown space around the robot. | |
Private Attributes | |
costmap_2d::Costmap2DROS * | global_costmap_ |
bool | initialized_ |
costmap_2d::Costmap2DROS * | local_costmap_ |
std::string | name_ |
double | reset_distance_ |
tf::TransformListener * | tf_ |
A recovery behavior that reverts the navigation stack's costmaps to the static map outside of a user-specified region.
Definition at line 45 of file clear_costmap_recovery.h.
clear_costmap_recovery::ClearCostmapRecovery::ClearCostmapRecovery | ( | ) |
Constructor, make sure to call initialize in addition to actually initialize the object.
@return |
Definition at line 40 of file clear_costmap_recovery.cpp.
void clear_costmap_recovery::ClearCostmapRecovery::initialize | ( | std::string | name, | |
tf::TransformListener * | tf, | |||
costmap_2d::Costmap2DROS * | global_costmap, | |||
costmap_2d::Costmap2DROS * | local_costmap | |||
) |
Initialization function for the ClearCostmapRecovery recovery behavior.
tf | A pointer to a transform listener | |
global_costmap | A pointer to the global_costmap used by the navigation stack | |
local_costmap | A pointer to the local_costmap used by the navigation stack |
Definition at line 43 of file clear_costmap_recovery.cpp.
void clear_costmap_recovery::ClearCostmapRecovery::runBehavior | ( | ) |
Run the ClearCostmapRecovery recovery behavior. Reverts the costmap to the static map outside of a user-specified window and clears unknown space around the robot.
Definition at line 63 of file clear_costmap_recovery.cpp.
costmap_2d::Costmap2DROS* clear_costmap_recovery::ClearCostmapRecovery::global_costmap_ [private] |
Definition at line 71 of file clear_costmap_recovery.h.
bool clear_costmap_recovery::ClearCostmapRecovery::initialized_ [private] |
Definition at line 74 of file clear_costmap_recovery.h.
costmap_2d::Costmap2DROS * clear_costmap_recovery::ClearCostmapRecovery::local_costmap_ [private] |
Definition at line 71 of file clear_costmap_recovery.h.
std::string clear_costmap_recovery::ClearCostmapRecovery::name_ [private] |
Definition at line 72 of file clear_costmap_recovery.h.
double clear_costmap_recovery::ClearCostmapRecovery::reset_distance_ [private] |
Definition at line 75 of file clear_costmap_recovery.h.
tf::TransformListener* clear_costmap_recovery::ClearCostmapRecovery::tf_ [private] |
Definition at line 73 of file clear_costmap_recovery.h.