#include <costmap_adapter.h>
Public Member Functions | |
costmap_2d::Costmap2DROS * | getCostmap2DROS () const |
nav_core2::Costmap::mutex_t * | getMutex () override |
unsigned char | getValue (const unsigned int x, const unsigned int y) const override |
void | initialize (costmap_2d::Costmap2DROS *costmap_ros, bool needs_destruction=false) |
Initialize from an existing Costmap2DROS object. | |
void | initialize (const ros::NodeHandle &parent, const std::string &name, TFListenerPtr tf) override |
void | reset () override |
void | setInfo (const nav_grid::NavGridInfo &new_info) override |
void | setValue (const unsigned int x, const unsigned int y, const unsigned char &value) override |
void | update () override |
void | updateInfo (const nav_grid::NavGridInfo &new_info) override |
virtual | ~CostmapAdapter () |
Deconstructor for possibly freeing the costmap_ros_ object. | |
Protected Attributes | |
costmap_2d::Costmap2D * | costmap_ |
costmap_2d::Costmap2DROS * | costmap_ros_ |
bool | needs_destruction_ |
Definition at line 47 of file costmap_adapter.h.
nav_core_adapter::CostmapAdapter::~CostmapAdapter | ( | ) | [virtual] |
Deconstructor for possibly freeing the costmap_ros_ object.
Definition at line 58 of file costmap_adapter.cpp.
costmap_2d::Costmap2DROS* nav_core_adapter::CostmapAdapter::getCostmap2DROS | ( | ) | const [inline] |
Definition at line 75 of file costmap_adapter.h.
nav_core2::Costmap::mutex_t * nav_core_adapter::CostmapAdapter::getMutex | ( | ) | [override, virtual] |
Implements nav_core2::Costmap.
Definition at line 79 of file costmap_adapter.cpp.
unsigned char nav_core_adapter::CostmapAdapter::getValue | ( | const unsigned int | x, |
const unsigned int | y | ||
) | const [override] |
Definition at line 101 of file costmap_adapter.cpp.
void nav_core_adapter::CostmapAdapter::initialize | ( | costmap_2d::Costmap2DROS * | costmap_ros, |
bool | needs_destruction = false |
||
) |
Initialize from an existing Costmap2DROS object.
costmap_ros | A Costmap2DROS object |
needs_destruction | Whether to free the costmap_ros object when this class is destroyed |
Definition at line 66 of file costmap_adapter.cpp.
void nav_core_adapter::CostmapAdapter::initialize | ( | const ros::NodeHandle & | parent, |
const std::string & | name, | ||
TFListenerPtr | tf | ||
) | [override, virtual] |
Reimplemented from nav_core2::Costmap.
Definition at line 74 of file costmap_adapter.cpp.
void nav_core_adapter::CostmapAdapter::reset | ( | ) | [override] |
Definition at line 84 of file costmap_adapter.cpp.
void nav_core_adapter::CostmapAdapter::setInfo | ( | const nav_grid::NavGridInfo & | new_info | ) | [override] |
Definition at line 107 of file costmap_adapter.cpp.
void nav_core_adapter::CostmapAdapter::setValue | ( | const unsigned int | x, |
const unsigned int | y, | ||
const unsigned char & | value | ||
) | [override] |
Definition at line 96 of file costmap_adapter.cpp.
void nav_core_adapter::CostmapAdapter::update | ( | ) | [override, virtual] |
Reimplemented from nav_core2::Costmap.
Definition at line 89 of file costmap_adapter.cpp.
void nav_core_adapter::CostmapAdapter::updateInfo | ( | const nav_grid::NavGridInfo & | new_info | ) | [override] |
Definition at line 112 of file costmap_adapter.cpp.
Definition at line 79 of file costmap_adapter.h.
Definition at line 78 of file costmap_adapter.h.
bool nav_core_adapter::CostmapAdapter::needs_destruction_ [protected] |
Definition at line 80 of file costmap_adapter.h.