WideAngleCameraSensor.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 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
24#include "gazebo/msgs/MessageTypes.hh"
28#include "gazebo/util/system.hh"
29
30namespace gazebo
31{
32 namespace sensors
33 {
34 // Forward declare private data class
35 class WideAngleCameraSensorPrivate;
36
39
44 class GZ_SENSORS_VISIBLE WideAngleCameraSensor : public CameraSensor
45 {
48
50 public: virtual ~WideAngleCameraSensor();
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
sensors
Definition SensorManager.hh:35
Forward declarations for transport.
Basic camera sensor.
Definition CameraSensor.hh:44
Camera sensor with variable mapping function.
Definition WideAngleCameraSensor.hh:45
void Fini() override
Finalize the camera.
void Init() override
Initialize the camera.
void OnCtrlMessage(ConstCameraLensPtr &_msg)
Handle incoming control message.
bool UpdateImpl(const bool _force) override
This gets overwritten by derived sensor types.
void Load(const std::string &_worldName) override
Load the sensor with default parameters.
virtual ~WideAngleCameraSensor()
Destructor.
Forward declarations for the common classes.
Definition Animation.hh:27