Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GAZEBO_ROS_CAMERA_HH
00023 #define GAZEBO_ROS_CAMERA_HH
00024
00025 #include <string>
00026
00027
00028 #include <gazebo/plugins/CameraPlugin.hh>
00029
00030 #include <gazebo_plugins/gazebo_ros_camera_utils.h>
00031
00032 namespace gazebo
00033 {
00034 class GazeboRosCamera : public CameraPlugin, GazeboRosCameraUtils
00035 {
00038 public: GazeboRosCamera();
00039
00041 public: ~GazeboRosCamera();
00042
00045 public: void Load(sensors::SensorPtr _parent, sdf::ElementPtr _sdf);
00046
00048 protected: virtual void OnNewFrame(const unsigned char *_image,
00049 unsigned int _width, unsigned int _height,
00050 unsigned int _depth, const std::string &_format);
00051 };
00052 }
00053 #endif
00054