WideAngleCameraSensor.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 #ifndef _GAZEBO_SENSORS_WIDEANGLECAMERASENSOR_HH_
18 #define _GAZEBO_SENSORS_WIDEANGLECAMERASENSOR_HH_
19 
20 #include <memory>
21 #include <string>
22 
23 #include "gazebo/sensors/Sensor.hh"
24 #include "gazebo/msgs/MessageTypes.hh"
28 #include "gazebo/util/system.hh"
29 
30 namespace gazebo
31 {
32  namespace sensors
33  {
34  // Forward declare private data class
35  class WideAngleCameraSensorPrivate;
36 
39 
45  {
47  public: WideAngleCameraSensor();
48 
50  public: virtual ~WideAngleCameraSensor() = default;
51 
52  // Documentation inherited
53  public: void Load(const std::string &_worldName) override;
54 
55  // Documentation inherited
56  public: void Init() override;
57 
58  // Documentation inherited
59  protected: void Fini() override;
60 
61  // Documentation inherited
62  protected: bool UpdateImpl(const bool _force) override;
63 
66  protected: void OnCtrlMessage(ConstCameraLensPtr &_msg);
67 
70  private: std::unique_ptr<WideAngleCameraSensorPrivate> dataPtr;
71  };
73  }
74 }
75 #endif
Basic camera sensor.
Definition: CameraSensor.hh:42
Forward declarations for the common classes.
Definition: Animation.hh:33
Forward declarations for transport.
Camera sensor with variable mapping function.
Definition: WideAngleCameraSensor.hh:44
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:59