DepthCameraPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef _GAZEBO_RENDERING_DEPTHCAMERA_PRIVATE_HH_
19 #define _GAZEBO_RENDERING_DEPTHCAMERA_PRIVATE_HH_
20 
21 #include <string>
22 
23 #include "gazebo/common/Event.hh"
24 
26 
27 namespace Ogre
28 {
29  class Material;
30  class RenderTarget;
31  class Texture;
32  class Viewport;
33 }
34 
35 namespace gazebo
36 {
37  namespace rendering
38  {
42  {
44  public: float *depthBuffer;
45 
47  public: Ogre::Material *depthMaterial;
48 
50  public: bool outputPoints;
51 
53  public: float *pcdBuffer;
54 
56  public: Ogre::Viewport *pcdViewport;
57 
59  public: Ogre::Material *pcdMaterial;
60 
62  public: Ogre::Texture *pcdTexture;
63 
65  public: Ogre::RenderTarget *pcdTarget;
66 
68  public: event::EventT<void(const float *, unsigned int, unsigned int,
69  unsigned int, const std::string &)> newRGBPointCloud;
70 
72  public: event::EventT<void(const float *, unsigned int, unsigned int,
73  unsigned int, const std::string &)> newDepthFrame;
74  };
75  }
76 }
77 #endif
Ogre::Texture * pcdTexture
Point cloud texture.
Definition: DepthCameraPrivate.hh:62
float * pcdBuffer
Point cloud data buffer.
Definition: DepthCameraPrivate.hh:53
Ogre::Material * depthMaterial
The depth material.
Definition: DepthCameraPrivate.hh:47
event::EventT< void(const float *, unsigned int, unsigned int, unsigned int, const std::string &)> newDepthFrame
Event used to signal depth data.
Definition: DepthCameraPrivate.hh:73
float * depthBuffer
The depth buffer.
Definition: DepthCameraPrivate.hh:44
Definition: DepthCameraPrivate.hh:41
Ogre::RenderTarget * pcdTarget
Point cloud texture.
Definition: DepthCameraPrivate.hh:65
event::EventT< void(const float *, unsigned int, unsigned int, unsigned int, const std::string &)> newRGBPointCloud
Event used to signal rgb point cloud data.
Definition: DepthCameraPrivate.hh:69
Ogre::Viewport * pcdViewport
Point cloud view port.
Definition: DepthCameraPrivate.hh:56
bool outputPoints
True to generate point clouds.
Definition: DepthCameraPrivate.hh:50
Ogre::Material * pcdMaterial
Point cloud material.
Definition: DepthCameraPrivate.hh:59
A class for event processing.
Definition: Event.hh:181