Public Types | Public Member Functions | Private Attributes
occupancy_map_monitor::OccMapTree Class Reference

#include <occupancy_map.h>

Inheritance diagram for occupancy_map_monitor::OccMapTree:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

Definition at line 49 of file occupancy_map.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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.

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.

Definition at line 99 of file occupancy_map.h.

unlock the underlying octree.

Definition at line 68 of file occupancy_map.h.

unlock the underlying octree.

Definition at line 81 of file occupancy_map.h.

Definition at line 94 of file occupancy_map.h.


Member Data Documentation

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.


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


perception
Author(s): Ioan Sucan , Jon Binney , Suat Gedikli
autogenerated on Wed Jan 17 2018 03:32:02