#include <UnderwaterCameraROSPlugin.hh>
Public Member Functions | |
void | Load (sensors::SensorPtr _sensor, sdf::ElementPtr _sdf) |
Load plugin and its configuration from sdf. More... | |
virtual void | OnNewDepthFrame (const float *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format) |
virtual void | OnNewImageFrame (const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format) |
virtual void | OnNewRGBPointCloud (const float *_pcd, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format) |
Update the controller. More... | |
UnderwaterCameraROSPlugin () | |
Class constructor. More... | |
virtual | ~UnderwaterCameraROSPlugin () |
Class destructor. More... | |
Public Member Functions inherited from gazebo::GazeboRosCameraUtils | |
GazeboRosCameraUtils () | |
void | Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf, const std::string &_camera_name_suffix="") |
void | Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf, const std::string &_camera_name_suffix, double _hack_baseline) |
event::ConnectionPtr | OnLoad (const boost::function< void()> &) |
~GazeboRosCameraUtils () | |
Protected Member Functions | |
virtual void | SimulateUnderwater (const cv::Mat &_inputImage, const cv::Mat &_inputDepth, cv::Mat &_outputImage) |
Add underwater light damping to image. More... | |
Protected Member Functions inherited from gazebo::GazeboRosCameraUtils | |
void | CameraQueueThread () |
virtual bool | CanTriggerCamera () |
void | ImageConnect () |
void | ImageDisconnect () |
void | PublishCameraInfo () |
void | PublishCameraInfo (ros::Publisher camera_info_publisher) |
void | PublishCameraInfo (common::Time &last_update_time) |
void | PutCameraData (const unsigned char *_src) |
void | PutCameraData (const unsigned char *_src, common::Time &last_update_time) |
virtual void | TriggerCamera () |
Definition at line 29 of file UnderwaterCameraROSPlugin.hh.
gazebo::UnderwaterCameraROSPlugin::UnderwaterCameraROSPlugin | ( | ) |
Class constructor.
Definition at line 21 of file UnderwaterCameraROSPlugin.cc.
|
virtual |
Class destructor.
Definition at line 26 of file UnderwaterCameraROSPlugin.cc.
void gazebo::UnderwaterCameraROSPlugin::Load | ( | sensors::SensorPtr | _sensor, |
sdf::ElementPtr | _sdf | ||
) |
Load plugin and its configuration from sdf.
Definition at line 36 of file UnderwaterCameraROSPlugin.cc.
|
virtual |
Definition at line 121 of file UnderwaterCameraROSPlugin.cc.
|
virtual |
Definition at line 136 of file UnderwaterCameraROSPlugin.cc.
|
virtual |
Update the controller.
Definition at line 130 of file UnderwaterCameraROSPlugin.cc.
|
protectedvirtual |
Add underwater light damping to image.
Definition at line 176 of file UnderwaterCameraROSPlugin.cc.
|
protected |
Attenuation constants per channel (RGB)
Definition at line 69 of file UnderwaterCameraROSPlugin.hh.
|
protected |
Background constants per channel (RGB)
Definition at line 72 of file UnderwaterCameraROSPlugin.hh.
|
protected |
Depth to range lookup table (LUT)
Definition at line 66 of file UnderwaterCameraROSPlugin.hh.
|
protected |
Temporarily store pointer to previous depth image.
Definition at line 60 of file UnderwaterCameraROSPlugin.hh.
|
protected |
Latest simulated image.
Definition at line 63 of file UnderwaterCameraROSPlugin.hh.