Ignition Sensors

API Reference

5.0.0
RgbdCameraSensor.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 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 #ifndef IGNITION_SENSORS_RGBDCAMERASENSOR_HH_
18 #define IGNITION_SENSORS_RGBDCAMERASENSOR_HH_
19 
20 #include <memory>
21 
22 #include <sdf/sdf.hh>
23 
24 #include <ignition/common/SuppressWarning.hh>
25 #include <ignition/common/Time.hh>
26 
28 #include "ignition/sensors/config.hh"
29 #include "ignition/sensors/rgbd_camera/Export.hh"
30 #include "ignition/sensors/Export.hh"
31 
32 namespace ignition
33 {
34  namespace sensors
35  {
36  // Inline bracket to help doxygen filtering.
37  inline namespace IGNITION_SENSORS_VERSION_NAMESPACE {
38  // forward declarations
39  class RgbdCameraSensorPrivate;
40 
52  class IGNITION_SENSORS_RGBD_CAMERA_VISIBLE RgbdCameraSensor
53  : public CameraSensor
54  {
56  public: RgbdCameraSensor();
57 
59  public: virtual ~RgbdCameraSensor();
60 
64  public: virtual bool Load(const sdf::Sensor &_sdf) override;
65 
68  public: virtual bool Init() override;
69 
73  public: virtual bool IGN_DEPRECATED(4) Update(
74  const ignition::common::Time &_now) override;
75 
79  public: virtual bool Update(
80  const std::chrono::steady_clock::duration &_now) override;
81 
84  public: virtual void SetScene(
85  ignition::rendering::ScenePtr _scene) override;
86 
89  public: virtual unsigned int ImageWidth() const override;
90 
93  public: virtual unsigned int ImageHeight() const override;
94 
97  private: bool CreateCameras();
98 
99  IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
103  IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
104  };
105  }
106  }
107 }
108 
109 #endif
Camera Sensor Class.
Definition: CameraSensor.hh:73
RGBD camera sensor class.
Definition: RgbdCameraSensor.hh:52
Definition: AirPressureSensor.hh:32