Image Component Library (ICL)
PointCloudGrabber.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLGeom/src/ICLGeom/PointCloudGrabber.h **
10 ** Module : ICLGeom **
11 ** Authors: Christof Elbrechter, Patrick Nobou **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/CompatMacros.h>
34 #include <ICLUtils/Configurable.h>
36 #include <ICLGeom/Camera.h>
37 #include <ICLMath/FixedMatrix.h>
38 
39 #include <map>
40 
41 namespace icl{
42  namespace geom{
43 
47  virtual void grab(PointCloudObjectBase &dst) = 0;
48 
50  virtual ~PointCloudGrabber(){}
51 
53  virtual const core::Img32f *getDepthImage() const { return 0; }
54 
56  virtual const core::Img8u *getColorImage() const { return 0; }
57 
59  virtual Camera getDepthCamera() const {
60  throw utils::ICLException("PointCloudGrabber::getDepthCamera() is not implemented by current backend");
61  }
62 
63  virtual Camera getColorCamera() const {
64  throw utils::ICLException("PointCloudGrabber::getColorCamera() is not implemented by current backend");
65  }
66 
68  throw utils::ICLException("PointCloudGrabber::setCameraWorldFrame() is not implemented by current backend");
69  }
70 
71 
73 
74  virtual void reinit(const std::string &description) {
75  throw utils::ICLException("reinit is not implemented for this PointCloudGrabber backend type");
76  }
77  };
78  }
79 }
80 
Powerful and highly flexible matrix class implementation.
Definition: FixedMatrix.h:172
undocument this line if you encounter any issues!
Definition: Any.h:37
Base class for point cloud data types.
Definition: PointCloudObjectBase.h:98
virtual Camera getDepthCamera() const
returns current depth camera (CAN be implemented by implementation
Definition: PointCloudGrabber.h:59
virtual ~PointCloudGrabber()
virtual, but empty destructor
Definition: PointCloudGrabber.h:50
virtual Camera getColorCamera() const
Definition: PointCloudGrabber.h:63
Camera class.
Definition: Camera.h:132
virtual const core::Img8u * getColorImage() const
returns the last grabbed point cloud's underlying depth image (if available)
Definition: PointCloudGrabber.h:56
virtual void grab(PointCloudObjectBase &dst)=0
fills the given point cloud with grabbed information
virtual void setCameraWorldFrame(const math::FixedMatrix< float, 4, 4 > &T)
Definition: PointCloudGrabber.h:67
Interface for classes that can be configured from configuration-files and GUI-Components.
Definition: Configurable.h:194
Base class for Exception handling in the ICL.
Definition: Exception.h:42
virtual void reinit(const std::string &description)
re-initializes the current device
Definition: PointCloudGrabber.h:74
Generic interface for PointCloud sources.
Definition: PointCloudGrabber.h:45
virtual const core::Img32f * getDepthImage() const
returns the last grabbed point cloud's underlying depth image (if available)
Definition: PointCloudGrabber.h:53