Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
nav_grid_pub_sub::NavGridSubscriber Class Reference

#include <nav_grid_subscriber.h>

Public Types

using NewDataCallback = std::function< void(const nav_core2::UIntBounds &)>
 

Public Member Functions

void activate ()
 
void deactivate ()
 
bool hasData () const
 
void init (ros::NodeHandle &nh, NewDataCallback callback, const std::string &topic="map", bool nav_grid=true, bool subscribe_to_updates=true)
 
 NavGridSubscriber (nav_grid::NavGrid< unsigned char > &data)
 
void setCostInterpretation (const std::vector< unsigned char > &cost_interpretation_table)
 

Protected Member Functions

void incomingNav (const nav_2d_msgs::NavGridOfCharsConstPtr &new_map)
 
void incomingNavUpdate (const nav_2d_msgs::NavGridOfCharsUpdateConstPtr &update)
 
void incomingOcc (const nav_msgs::OccupancyGridConstPtr &new_map)
 
void incomingOccUpdate (const map_msgs::OccupancyGridUpdateConstPtr &update)
 

Protected Attributes

NewDataCallback callback_
 
std::vector< unsigned char > cost_interpretation_table_
 
nav_grid::NavGrid< unsigned char > & data_
 
bool map_received_
 
bool nav_grid_
 
ros::NodeHandle nh_
 
ros::Subscriber sub_
 
bool subscribe_to_updates_
 
std::string topic_
 
ros::Subscriber update_sub_
 

Detailed Description

Definition at line 50 of file nav_grid_subscriber.h.

Member Typedef Documentation

Definition at line 53 of file nav_grid_subscriber.h.

Constructor & Destructor Documentation

nav_grid_pub_sub::NavGridSubscriber::NavGridSubscriber ( nav_grid::NavGrid< unsigned char > &  data)
inlineexplicit

Definition at line 55 of file nav_grid_subscriber.h.

Member Function Documentation

void nav_grid_pub_sub::NavGridSubscriber::activate ( )

Definition at line 56 of file nav_grid_subscriber.cpp.

void nav_grid_pub_sub::NavGridSubscriber::deactivate ( )

Definition at line 78 of file nav_grid_subscriber.cpp.

bool nav_grid_pub_sub::NavGridSubscriber::hasData ( ) const
inline

Definition at line 60 of file nav_grid_subscriber.h.

void nav_grid_pub_sub::NavGridSubscriber::incomingNav ( const nav_2d_msgs::NavGridOfCharsConstPtr &  new_map)
protected

Definition at line 84 of file nav_grid_subscriber.cpp.

void nav_grid_pub_sub::NavGridSubscriber::incomingNavUpdate ( const nav_2d_msgs::NavGridOfCharsUpdateConstPtr &  update)
protected

Definition at line 102 of file nav_grid_subscriber.cpp.

void nav_grid_pub_sub::NavGridSubscriber::incomingOcc ( const nav_msgs::OccupancyGridConstPtr &  new_map)
protected

Definition at line 114 of file nav_grid_subscriber.cpp.

void nav_grid_pub_sub::NavGridSubscriber::incomingOccUpdate ( const map_msgs::OccupancyGridUpdateConstPtr &  update)
protected

Definition at line 133 of file nav_grid_subscriber.cpp.

void nav_grid_pub_sub::NavGridSubscriber::init ( ros::NodeHandle nh,
NewDataCallback  callback,
const std::string &  topic = "map",
bool  nav_grid = true,
bool  subscribe_to_updates = true 
)

Definition at line 45 of file nav_grid_subscriber.cpp.

void nav_grid_pub_sub::NavGridSubscriber::setCostInterpretation ( const std::vector< unsigned char > &  cost_interpretation_table)
inline

Definition at line 62 of file nav_grid_subscriber.h.

Member Data Documentation

NewDataCallback nav_grid_pub_sub::NavGridSubscriber::callback_
protected

Definition at line 74 of file nav_grid_subscriber.h.

std::vector<unsigned char> nav_grid_pub_sub::NavGridSubscriber::cost_interpretation_table_
protected

Definition at line 76 of file nav_grid_subscriber.h.

nav_grid::NavGrid<unsigned char>& nav_grid_pub_sub::NavGridSubscriber::data_
protected

Definition at line 73 of file nav_grid_subscriber.h.

bool nav_grid_pub_sub::NavGridSubscriber::map_received_
protected

Definition at line 79 of file nav_grid_subscriber.h.

bool nav_grid_pub_sub::NavGridSubscriber::nav_grid_
protected

Definition at line 83 of file nav_grid_subscriber.h.

ros::NodeHandle nav_grid_pub_sub::NavGridSubscriber::nh_
protected

Definition at line 81 of file nav_grid_subscriber.h.

ros::Subscriber nav_grid_pub_sub::NavGridSubscriber::sub_
protected

Definition at line 78 of file nav_grid_subscriber.h.

bool nav_grid_pub_sub::NavGridSubscriber::subscribe_to_updates_
protected

Definition at line 83 of file nav_grid_subscriber.h.

std::string nav_grid_pub_sub::NavGridSubscriber::topic_
protected

Definition at line 82 of file nav_grid_subscriber.h.

ros::Subscriber nav_grid_pub_sub::NavGridSubscriber::update_sub_
protected

Definition at line 78 of file nav_grid_subscriber.h.


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


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