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;