37 #ifndef MOVEIT_OCCUPANCY_MAP_MONITOR_OCCUPANCY_MAP_ 38 #define MOVEIT_OCCUPANCY_MAP_MONITOR_OCCUPANCY_MAP_ 41 #include <boost/thread/shared_mutex.hpp> 42 #include <boost/function.hpp> 86 typedef boost::shared_lock<boost::shared_mutex>
ReadLock;
87 typedef boost::unique_lock<boost::shared_mutex>
WriteLock;
void triggerUpdateCallback(void)
std::shared_ptr< OccMapTree > OccMapTreePtr
boost::shared_lock< boost::shared_mutex > ReadLock
octomap::OcTreeNode OccMapNode
std::shared_ptr< const OccMapTree > OccMapTreeConstPtr
OccMapTree(const std::string &filename)
boost::unique_lock< boost::shared_mutex > WriteLock
boost::shared_mutex tree_mutex_
OcTree(double resolution)
void setUpdateCallback(const boost::function< void()> &update_callback)
Set the callback to trigger when updates are received.
void lockWrite()
lock the underlying octree. it will not be read or written by the monitor until unlockTree() is calle...
void lockRead()
lock the underlying octree. it will not be read or written by the monitor until unlockTree() is calle...
OccMapTree(double resolution)
void unlockRead()
unlock the underlying octree.
boost::function< void()> update_callback_
void unlockWrite()
unlock the underlying octree.