17 #ifndef _GAZEBO_CAMERASENSOR_HH_
18 #define _GAZEBO_CAMERASENSOR_HH_
23 #include "gazebo/msgs/MessageTypes.hh"
50 public:
virtual void Load(
const std::string &_worldName,
51 sdf::ElementPtr _sdf);
55 public:
virtual void Load(
const std::string &_worldName);
58 public:
virtual void Init();
63 public:
virtual std::string GetTopic()
const;
66 protected:
virtual bool UpdateImpl(
bool _force);
69 protected:
virtual void Fini();
74 {
return this->camera;}
78 public:
unsigned int GetImageWidth()
const;
82 public:
unsigned int GetImageHeight()
const;
86 public:
const unsigned char *GetImageData();
91 public:
bool SaveFrame(
const std::string &_filename);
94 public:
virtual bool IsActive();
97 private:
void Render();
106 private:
bool rendered;
Basic camera sensor.
Definition: CameraSensor.hh:39
rendering::CameraPtr GetCamera() const
Returns a pointer to the rendering::Camera.
Definition: CameraSensor.hh:73
Forward declarations for transport.
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:87
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:69
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:66