40 #include <boost/utility.hpp>
42 #include <pcl/pcl_exports.h>
44 #include <DepthSense.hxx>
67 using Ptr = std::shared_ptr<DepthSenseDeviceManager>;
75 std::lock_guard<std::mutex> lock (mutex_);
86 return (context_.getDevices ().size ());
106 releaseDevice (
const std::string& sn);
110 reconfigureDevice (
const std::string& sn);
114 startDevice (
const std::string& sn);
118 stopDevice (
const std::string& sn);
130 isCaptured (
const std::string& sn)
const
132 return (captured_devices_.count (sn) != 0);
135 DepthSense::Context context_;
137 static std::mutex mutex_;
140 std::thread depth_sense_thread_;
142 struct CapturedDevice
144 DepthSenseGrabberImpl* grabber;
145 DepthSense::DepthNode depth_node;
146 DepthSense::ColorNode color_node;
149 std::map<std::string, CapturedDevice> captured_devices_;