#include <occupancy_map.h>
Public Types | |
typedef boost::shared_lock < boost::shared_mutex > | ReadLock |
typedef boost::unique_lock < boost::shared_mutex > | WriteLock |
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) | |
ReadLock | reading () |
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. | |
WriteLock | writing () |
Private Attributes | |
boost::shared_mutex | tree_mutex_ |
boost::function< void()> | update_callback_ |
Definition at line 49 of file occupancy_map.h.
typedef boost::shared_lock<boost::shared_mutex> occupancy_map_monitor::OccMapTree::ReadLock |
Definition at line 86 of file occupancy_map.h.
typedef boost::unique_lock<boost::shared_mutex> occupancy_map_monitor::OccMapTree::WriteLock |
Definition at line 87 of file occupancy_map.h.
occupancy_map_monitor::OccMapTree::OccMapTree | ( | double | resolution | ) | [inline] |
Definition at line 52 of file occupancy_map.h.
occupancy_map_monitor::OccMapTree::OccMapTree | ( | const std::string & | filename | ) | [inline] |
Definition at line 56 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 62 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 75 of file occupancy_map.h.
ReadLock occupancy_map_monitor::OccMapTree::reading | ( | ) | [inline] |
Definition at line 89 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 106 of file occupancy_map.h.
void occupancy_map_monitor::OccMapTree::triggerUpdateCallback | ( | void | ) | [inline] |
Definition at line 99 of file occupancy_map.h.
void occupancy_map_monitor::OccMapTree::unlockRead | ( | ) | [inline] |
unlock the underlying octree.
Definition at line 68 of file occupancy_map.h.
void occupancy_map_monitor::OccMapTree::unlockWrite | ( | ) | [inline] |
unlock the underlying octree.
Definition at line 81 of file occupancy_map.h.
WriteLock occupancy_map_monitor::OccMapTree::writing | ( | ) | [inline] |
Definition at line 94 of file occupancy_map.h.
boost::shared_mutex occupancy_map_monitor::OccMapTree::tree_mutex_ [private] |
Definition at line 112 of file occupancy_map.h.
boost::function<void()> occupancy_map_monitor::OccMapTree::update_callback_ [private] |
Definition at line 113 of file occupancy_map.h.