41 #include <pcl/pcl_config.h>
44 #include <pcl/common/io.h>
45 #include <pcl/PolygonMesh.h>
46 #include <pcl/io/grabber.h>
70 using Ptr = shared_ptr<DavidSDKGrabber>;
71 using ConstPtr = shared_ptr<const DavidSDKGrabber>;
98 connect (const std::
string & address = "127.0.0.1",
99 std::uint16_t port = david::DAVID_SDK_DefaultPort);
104 disconnect (const
bool stop_server);
122 isConnected () const;
141 setFileFormatToOBJ ();
146 setFileFormatToPLY ();
150 setFileFormatToSTL ();
162 setLocalPath (std::
string path);
169 setRemotePath (std::
string path);
177 setLocalAndRemotePaths (std::
string local_path,
178 std::
string remote_path);
191 calibrate (
double grid_size);
209 getFramesPerSecond () const;
212 david::Client david_;
216 std::thread grabber_thread_;
219 boost::signals2::signal<sig_cb_davidsdk_point_cloud>* point_cloud_signal_;
222 boost::signals2::signal<sig_cb_davidsdk_mesh>* mesh_signal_;
225 boost::signals2::signal<sig_cb_davidsdk_image>* image_signal_;
228 boost::signals2::signal<sig_cb_davidsdk_point_cloud_image>* point_cloud_image_signal_;
231 boost::signals2::signal<sig_cb_davidsdk_mesh_image>* mesh_image_signal_;
234 bool client_connected_;
241 std::
string local_path_;
246 std::
string remote_path_;
249 std::
string file_format_;
255 mutable std::mutex fps_mutex_;
Grabber for davidSDK structured light compliant devices.
virtual ~DavidSDKGrabber() noexcept
Destructor inherited from the Grabber interface.
DavidSDKGrabber()
Constructor.
A helper class to measure frequency of a certain event.
Grabber interface for PCL 1.x device drivers.
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
Define methods for measuring time spent in code blocks.
shared_ptr< ::pcl::PCLImage > Ptr
A point structure representing Euclidean xyz coordinates.
shared_ptr< ::pcl::PolygonMesh > Ptr