libkovan  1
The kovan standard library
xtion_depth_driver.hpp
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright 2012 KISS Institute for Practical Robotics *
3  * *
4  * This file is part of libkovan. *
5  * *
6  * libkovan is free software: you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation, either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * libkovan is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with libkovan. Check the LICENSE file in the project root. *
18  * If not, see <http://www.gnu.org/licenses/>. *
19  **************************************************************************/
20 
28 #ifndef _XTION_DEPTH_DRIVER_HPP_
29 #define _XTION_DEPTH_DRIVER_HPP_
30 
31 #include "xtion_depth_image.hpp"
32 #include "depth_driver.hpp"
33 
34 namespace depth
35 {
36  class XtionDepthDriverImpl;
37 
39  {
40  public:
41  static XtionDepthDriver &instance();
42 
46  virtual void open();
47 
51  virtual void close();
52 
57  virtual bool isOpen() const;
58 
64  virtual DepthResolution depthCameraResolution() const;
65 
71  virtual void setDepthCameraResolution(const DepthResolution resolution);
72 
78  virtual DepthImage *depthImage() const;
79 
80  virtual ~XtionDepthDriver();
81 
82  private:
83  XtionDepthDriverImpl *_impl;
84 
85  // XtionDepthDriver is a singleton
88  void operator =(const XtionDepthDriver &);
89  };
90 }
91 
92 #endif
Definition: depth_image.hpp:36
C++ interface for depth driver used by libkipr_link_depth_sensor.
Definition: xtion_depth_driver.hpp:38
enum DepthResolution_ DepthResolution
Definition: depth_driver.hpp:34
OpenNI2 implementation of the DepthImage interface.
Definition: depth_driver.hpp:36
#define EXPORT_SYM
Definition: export.h:7