17 #ifndef _GAZEBO_SENSORS_CAMERASENSOR_HH_
18 #define _GAZEBO_SENSORS_CAMERASENSOR_HH_
33 class CameraSensorPrivate;
53 public:
virtual void Load(
const std::string &_worldName,
54 sdf::ElementPtr _sdf);
58 public:
virtual void Load(
const std::string &_worldName);
61 public:
virtual void Init();
65 public:
virtual std::string Topic()
const;
84 public:
unsigned int ImageWidth()
const;
93 public:
unsigned int ImageHeight()
const;
102 public:
const unsigned char *ImageData()
const;
107 public:
bool SaveFrame(
const std::string &_filename);
110 public:
virtual bool IsActive()
const;
113 protected:
virtual bool UpdateImpl(
const bool _force);
116 protected:
virtual void Fini();
119 protected:
virtual void Render();
122 protected:
bool Rendered()
const;
126 protected:
void SetRendered(
const bool _value);
136 private: std::unique_ptr<CameraSensorPrivate> dataPtr;
Basic camera sensor.
Definition: CameraSensor.hh:42
transport::PublisherPtr imagePub
Publisher of image messages.
Definition: CameraSensor.hh:132
Forward declarations for transport.
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
#define GAZEBO_DEPRECATED(version)
Definition: CommonTypes.hh:48
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Base class for sensors.
Definition: Sensor.hh:50
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:59
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:88
rendering::CameraPtr camera
Pointer to the camera.
Definition: CameraSensor.hh:129