#include <nav_grid_subscriber.h>
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_ |
Definition at line 50 of file nav_grid_subscriber.h.
nav_grid_pub_sub::NavGridSubscriber::NavGridSubscriber | ( | nav_grid::NavGrid< unsigned char > & | data | ) | [inline, explicit] |
Definition at line 55 of file nav_grid_subscriber.h.
Definition at line 56 of file nav_grid_subscriber.cpp.
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.
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.
Definition at line 81 of file nav_grid_subscriber.h.
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.
Definition at line 78 of file nav_grid_subscriber.h.