#include <occupancy_map.h>
Public Member Functions | |
void | lockRead () |
lock the underlying octree. it will not be read or written by the monitor until unlockTree() is called | |
void | lockWrite () |
lock the underlying octree. it will not be read or written by the monitor until unlockTree() is called | |
OccMapTree (double resolution) | |
OccMapTree (const std::string &filename) | |
void | setUpdateCallback (const boost::function< void()> &update_callback) |
Set the callback to trigger when updates are received. | |
void | triggerUpdateCallback (void) |
void | unlockRead () |
unlock the underlying octree. | |
void | unlockWrite () |
unlock the underlying octree. | |
Private Attributes | |
boost::shared_mutex | tree_mutex_ |
boost::function< void()> | update_callback_ |
Definition at line 50 of file occupancy_map.h.
occupancy_map_monitor::OccMapTree::OccMapTree | ( | double | resolution | ) | [inline] |
Definition at line 54 of file occupancy_map.h.
occupancy_map_monitor::OccMapTree::OccMapTree | ( | const std::string & | filename | ) | [inline] |
Definition at line 58 of file occupancy_map.h.
void occupancy_map_monitor::OccMapTree::lockRead | ( | ) | [inline] |
lock the underlying octree. it will not be read or written by the monitor until unlockTree() is called
Definition at line 64 of file occupancy_map.h.
void occupancy_map_monitor::OccMapTree::lockWrite | ( | ) | [inline] |
lock the underlying octree. it will not be read or written by the monitor until unlockTree() is called
Definition at line 77 of file occupancy_map.h.
void occupancy_map_monitor::OccMapTree::setUpdateCallback | ( | const boost::function< void()> & | update_callback | ) | [inline] |
Set the callback to trigger when updates are received.
Definition at line 95 of file occupancy_map.h.
void occupancy_map_monitor::OccMapTree::triggerUpdateCallback | ( | void | ) | [inline] |
Definition at line 88 of file occupancy_map.h.
void occupancy_map_monitor::OccMapTree::unlockRead | ( | ) | [inline] |
unlock the underlying octree.
Definition at line 70 of file occupancy_map.h.
void occupancy_map_monitor::OccMapTree::unlockWrite | ( | ) | [inline] |
unlock the underlying octree.
Definition at line 83 of file occupancy_map.h.
boost::shared_mutex occupancy_map_monitor::OccMapTree::tree_mutex_ [private] |
Definition at line 101 of file occupancy_map.h.
boost::function<void()> occupancy_map_monitor::OccMapTree::update_callback_ [private] |
Definition at line 102 of file occupancy_map.h.