Public Member Functions | Protected Attributes | List of all members
nav_core2::BasicCostmap Class Reference

#include <basic_costmap.h>

Inheritance diagram for nav_core2::BasicCostmap:
Inheritance graph
[legend]

Public Member Functions

unsigned int getIndex (const unsigned int x, const unsigned int y) const
 
mutex_tgetMutex () override
 Accessor for boost mutex. More...
 
unsigned char getValue (const unsigned int x, const unsigned int y) const 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
 
- Public Member Functions inherited from nav_core2::Costmap
virtual bool canTrackChanges ()
 Flag to indicate whether this costmap is able to track how much has changed. More...
 
virtual UIntBounds getChangeBounds (const std::string &ns)
 If canTrackChanges, get the bounding box for how much of the costmap has changed. More...
 
unsigned char getCost (const unsigned int x, const unsigned int y)
 
unsigned char getCost (const nav_grid::Index &index)
 
virtual void initialize (const ros::NodeHandle &parent, const std::string &name, TFListenerPtr tf)
 Initialization function for the Costmap. More...
 
void setCost (const unsigned int x, const unsigned int y, const unsigned char cost)
 
void setCost (const nav_grid::Index &index, const unsigned char cost)
 
virtual void update ()
 Update the values in the costmap. More...
 
virtual ~Costmap ()
 Virtual Destructor. More...
 
- Public Member Functions inherited from nav_grid::NavGrid< unsigned char >
std::string getFrameId () const
 
unsigned int getHeight () const
 
NavGridInfo getInfo () const
 
double getOriginX () const
 
double getOriginY () const
 
double getResolution () const
 
getValue (const Index &index)
 
getValue (const Index &index)
 
unsigned int getWidth () const
 
 NavGrid (const T default_value=T{})
 
operator() (const Index &index) const
 
operator() (const unsigned int x, const unsigned int y) const
 
operator() (const Index &index) const
 
operator() (const unsigned int x, const unsigned int y) const
 
void setDefaultValue (const T new_value)
 
void setValue (const Index &index, const T &value)
 
void setValue (const Index &index, const T &value)
 
virtual void setValue (const unsigned int x, const unsigned int y, const T &value)=0
 
virtual void updateInfo (const NavGridInfo &new_info)
 

Protected Attributes

std::vector< unsigned char > data_
 
mutex_t my_mutex_
 
- Protected Attributes inherited from nav_grid::NavGrid< unsigned char >
default_value_
 
NavGridInfo info_
 

Additional Inherited Members

- Public Types inherited from nav_core2::Costmap
using mutex_t = boost::recursive_mutex
 
using Ptr = std::shared_ptr< Costmap >
 
- Static Public Attributes inherited from nav_core2::Costmap
static const unsigned char FREE_SPACE = 0
 
static const unsigned char INSCRIBED_INFLATED_OBSTACLE = 253
 
static const unsigned char LETHAL_OBSTACLE = 254
 
static const unsigned char NO_INFORMATION = 255
 

Detailed Description

Definition at line 44 of file basic_costmap.h.

Member Function Documentation

unsigned int nav_core2::BasicCostmap::getIndex ( const unsigned int  x,
const unsigned int  y 
) const

Definition at line 45 of file basic_costmap.cpp.

mutex_t* nav_core2::BasicCostmap::getMutex ( )
inlineoverridevirtual

Accessor for boost mutex.

Implements nav_core2::Costmap.

Definition at line 48 of file basic_costmap.h.

unsigned char nav_core2::BasicCostmap::getValue ( const unsigned int  x,
const unsigned int  y 
) const
overridevirtual

Implements nav_grid::NavGrid< unsigned char >.

Definition at line 50 of file basic_costmap.cpp.

void nav_core2::BasicCostmap::reset ( )
overridevirtual

Implements nav_grid::NavGrid< unsigned char >.

Definition at line 40 of file basic_costmap.cpp.

void nav_core2::BasicCostmap::setInfo ( const nav_grid::NavGridInfo new_info)
inlineoverridevirtual

Implements nav_grid::NavGrid< unsigned char >.

Definition at line 54 of file basic_costmap.h.

void nav_core2::BasicCostmap::setValue ( const unsigned int  x,
const unsigned int  y,
const unsigned char &  value 
)
override

Definition at line 55 of file basic_costmap.cpp.

Member Data Documentation

std::vector<unsigned char> nav_core2::BasicCostmap::data_
protected

Definition at line 64 of file basic_costmap.h.

mutex_t nav_core2::BasicCostmap::my_mutex_
protected

Definition at line 63 of file basic_costmap.h.


The documentation for this class was generated from the following files:


nav_core2
Author(s):
autogenerated on Wed Jun 26 2019 20:06:06