Go to the documentation of this file.
17 #ifndef GAZEBO_PLUGINS_CAMERAPLUGIN_HH_
18 #define GAZEBO_PLUGINS_CAMERAPLUGIN_HH_
38 public:
virtual void OnNewFrame(
const unsigned char *_image,
39 unsigned int _width,
unsigned int _height,
40 unsigned int _depth,
const std::string &_format);
42 protected:
unsigned int width, height, depth;
std::shared_ptr< CameraSensor > CameraSensorPtr
Definition: SensorTypes.hh:72
std::shared_ptr< Sensor > SensorPtr
Definition: SensorTypes.hh:64
Forward declarations for the common classes.
Definition: Animation.hh:26
virtual ~CameraPlugin()
Destructor.
Definition: CameraPlugin.hh:29
virtual void Load(sensors::SensorPtr _sensor, sdf::ElementPtr _sdf)
Load function.
rendering::CameraPtr camera
Definition: CameraPlugin.hh:46
virtual void OnNewFrame(const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format)
unsigned int depth
Definition: CameraPlugin.hh:42
unsigned int height
Definition: CameraPlugin.hh:42
A plugin with access to physics::Sensor. See reference.
Definition: Plugin.hh:332
std::string format
Definition: CameraPlugin.hh:43
unsigned int width
Definition: CameraPlugin.hh:42
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:134
boost::shared_ptr< Camera > CameraPtr
Definition: RenderTypes.hh:90
sensors::CameraSensorPtr parentSensor
Definition: CameraPlugin.hh:45