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 private:
void Render();
129 private: std::unique_ptr<CameraSensorPrivate> dataPtr;
transport::PublisherPtr imagePub
Publisher of image messages.
Definition: CameraSensor.hh:125
Basic camera sensor.
Definition: CameraSensor.hh:42
Forward declarations for transport.
#define GAZEBO_DEPRECATED(version)
Definition: CommonTypes.hh:48
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:88
rendering::CameraPtr camera
Pointer to the camera.
Definition: CameraSensor.hh:122
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Base class for sensors.
Definition: Sensor.hh:50
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:59