Public Member Functions | Protected Member Functions | Protected Attributes
nav_grid_pub_sub::NavGridSubscriber Class Reference

#include <nav_grid_subscriber.h>

List of all members.

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.


Constructor & Destructor Documentation

nav_grid_pub_sub::NavGridSubscriber::NavGridSubscriber ( nav_grid::NavGrid< unsigned char > &  data) [inline, explicit]

Definition at line 55 of file nav_grid_subscriber.h.


Member Function Documentation

Definition at line 56 of file nav_grid_subscriber.cpp.

Definition at line 78 of file nav_grid_subscriber.cpp.

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

Definition at line 74 of file nav_grid_subscriber.h.

Definition at line 76 of file nav_grid_subscriber.h.

Definition at line 73 of file nav_grid_subscriber.h.

Definition at line 79 of file nav_grid_subscriber.h.

Definition at line 83 of file nav_grid_subscriber.h.

Definition at line 81 of file nav_grid_subscriber.h.

Definition at line 78 of file nav_grid_subscriber.h.

Definition at line 83 of file nav_grid_subscriber.h.

Definition at line 82 of file nav_grid_subscriber.h.

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:09:52