17 #ifndef _GAZEBO_MULTICAMERASENSOR_HH_
18 #define _GAZEBO_MULTICAMERASENSOR_HH_
24 #include "gazebo/msgs/MessageTypes.hh"
49 public:
virtual void Load(
const std::string &_worldName);
52 public:
virtual void Init();
55 public:
virtual std::string GetTopic()
const;
59 public:
unsigned int GetCameraCount()
const;
71 public:
unsigned int GetImageWidth(
unsigned int _index)
const;
77 public:
unsigned int GetImageHeight(
unsigned int _index)
const;
83 public:
const unsigned char *GetImageData(
unsigned int _index);
89 public:
bool SaveFrame(
const std::vector<std::string> &_filenames);
92 public:
virtual bool IsActive();
95 protected:
virtual bool UpdateImpl(
bool _force);
98 protected:
virtual void Fini();
101 private:
void Render();
104 private: std::vector<rendering::CameraPtr> cameras;
107 private:
mutable boost::mutex cameraMutex;
113 private: msgs::ImagesStamped msg;
116 private:
bool rendered;
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
Multiple camera sensor.
Definition: MultiCameraSensor.hh:40
Base class for sensors.
Definition: Sensor.hh:69
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:66