18 #ifndef _MULTICAMERASENSOR_HH_
19 #define _MULTICAMERASENSOR_HH_
25 #include "gazebo/msgs/MessageTypes.hh"
50 public:
virtual void Load(
const std::string &_worldName);
53 public:
virtual void Init();
56 public:
virtual std::string GetTopic()
const;
60 public:
unsigned int GetCameraCount()
const;
72 public:
unsigned int GetImageWidth(
unsigned int _index)
const;
78 public:
unsigned int GetImageHeight(
unsigned int _index)
const;
84 public:
const unsigned char *GetImageData(
unsigned int _index);
90 public:
bool SaveFrame(
const std::vector<std::string> &_filenames);
93 public:
virtual bool IsActive();
96 protected:
virtual bool UpdateImpl(
bool _force);
99 protected:
virtual void Fini();
102 private:
void Render();
105 private: std::vector<rendering::CameraPtr> cameras;
108 private:
mutable boost::mutex cameraMutex;
114 private: msgs::ImagesStamped msg;
117 private:
bool rendered;
Forward declarations for transport.
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:82
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:41
Base class for sensors.
Definition: Sensor.hh:67
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48