17#ifndef _GAZEBO_LOGICAL_CAMERASENSOR_HH_
18#define _GAZEBO_LOGICAL_CAMERASENSOR_HH_
32 class LogicalCameraSensorPrivate;
51 public:
virtual void Load(
const std::string &_worldName,
52 sdf::ElementPtr _sdf);
55 public:
virtual void Load(
const std::string &_worldName);
58 public:
virtual void Init();
61 public:
virtual std::string
Topic()
const;
66 public:
double Near()
const;
71 public:
double Far()
const;
87 public: msgs::LogicalCameraImage
Image()
const;
96 protected:
virtual void Fini();
100 private: std::unique_ptr<LogicalCameraSensorPrivate> dataPtr;
sensors
Definition SensorManager.hh:35
A camera sensor that reports locations of objects instead of rendering a scene.
Definition LogicalCameraSensor.hh:43
msgs::LogicalCameraImage Image() const
Get the latest image.
virtual void Fini()
Finalize the sensor.
double AspectRatio() const
Get the aspect ratio, which is the width divided by height of the near or far planes.
virtual void Init()
Initialize the sensor.
virtual void Load(const std::string &_worldName, sdf::ElementPtr _sdf)
Load the sensor with SDF parameters.
virtual void Load(const std::string &_worldName)
Load the sensor with default parameters.
double Near() const
Get the near distance.
virtual bool IsActive() const
Returns true if sensor generation is active.
virtual std::string Topic() const
Returns the topic name as set in SDF.
virtual bool UpdateImpl(const bool _force)
This gets overwritten by derived sensor types.
virtual ~LogicalCameraSensor()
Destructor.
ignition::math::Angle HorizontalFOV() const
Get the horizontal field of view.
double Far() const
Get the far distance.
LogicalCameraSensor()
Constructor.
Base class for sensors.
Definition Sensor.hh:53
Forward declarations for the common classes.
Definition Animation.hh:27