##

WideAngleCameraSensor.hh
Go to the documentation of this file.
/*
* Copyright (C) 2015 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef _GAZEBO_SENSORS_WIDEANGLECAMERASENSOR_HH_
#define _GAZEBO_SENSORS_WIDEANGLECAMERASENSOR_HH_
#include <memory>
#include <string>
#include "gazebo/sensors/Sensor.hh"
#include "gazebo/msgs/MessageTypes.hh"
#include "gazebo/transport/TransportTypes.hh"
#include "gazebo/rendering/RenderTypes.hh"
#include "gazebo/sensors/CameraSensor.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace sensors
{
// Forward declare private data class
class WideAngleCameraSensorPrivate;
class GZ_SENSORS_VISIBLE WideAngleCameraSensor : public CameraSensor
{
public: WideAngleCameraSensor();
public: virtual ~WideAngleCameraSensor();
// Documentation inherited
public: void Load(const std::string &_worldName) override;
// Documentation inherited
public: void Init() override;
// Documentation inherited
protected: void Fini() override;
// Documentation inherited
protected: bool UpdateImpl(const bool _force) override;
protected: void OnCtrlMessage(ConstCameraLensPtr &_msg);
private: std::unique_ptr<WideAngleCameraSensorPrivate> dataPtr;
};
}
}
#endif
gazebo::sensors::WideAngleCameraSensor
Camera sensor with variable mapping function.
Definition: WideAngleCameraSensor.hh:44
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
sensors
sensors
Definition: SensorManager.hh:35
TransportTypes.hh
Forward declarations for transport.
system.hh
CameraSensor.hh
gazebo::sensors::WideAngleCameraSensor::WideAngleCameraSensor
WideAngleCameraSensor()
Constructor.
Sensor.hh
RenderTypes.hh
gazebo::sensors::WideAngleCameraSensor::OnCtrlMessage
void OnCtrlMessage(ConstCameraLensPtr &_msg)
Handle incoming control message.
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gazebo::sensors::WideAngleCameraSensor::~WideAngleCameraSensor
virtual ~WideAngleCameraSensor()
Destructor.
gazebo::sensors::WideAngleCameraSensor::Init
void Init() override
Initialize the camera.
gazebo::sensors::WideAngleCameraSensor::Fini
void Fini() override
Finalize the camera.
gazebo::sensors::WideAngleCameraSensor::UpdateImpl
bool UpdateImpl(const bool _force) override
This gets overwritten by derived sensor types.
gazebo::sensors::WideAngleCameraSensor::Load
void Load(const std::string &_worldName) override
Load the sensor with default parameters.
gazebo::sensors::CameraSensor
Basic camera sensor.
Definition: CameraSensor.hh:43