#include <RGBDCameraPlugin.hh>
|
| | RGBDCameraPlugin () |
| | Constructs the object. More...
|
| |
| virtual | ~RGBDCameraPlugin () |
| | Destroys the object. More...
|
| |
| virtual void | Load (physics::ModelPtr _model, sdf::ElementPtr _sdf) |
| | Loads the plugin. More...
|
| |
| void | onNewRGBFrame (const unsigned char *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format) |
| | Callback function for handling RGB frame updates. More...
|
| |
| void | onNewDepthFrame (const float *_image, unsigned int _width, unsigned int _height, unsigned int _depth, const std::string &_format) |
| | Callback function for handling depth frame updates. More...
|
| |
|
| static int | OgrePixelFormat (const std::string &_format) |
| | Get the OGRE image pixel format As seen in gazebo/rendering/Camera.cc. More...
|
| |
| void Load |
( |
physics::ModelPtr |
_model, |
|
|
sdf::ElementPtr |
_sdf |
|
) |
| |
|
virtual |
Loads the plugin.
- Parameters
-
| _model | The model pointer |
| _sdf | The sdf element pointer |
| int OgrePixelFormat |
( |
const std::string & |
_format | ) |
|
|
staticprivate |
Get the OGRE image pixel format As seen in gazebo/rendering/Camera.cc.
- Parameters
-
| [in] | _format | The Gazebo image format |
- Returns
- Integer representation of the Ogre image format
| void onNewDepthFrame |
( |
const float * |
_image, |
|
|
unsigned int |
_width, |
|
|
unsigned int |
_height, |
|
|
unsigned int |
_depth, |
|
|
const std::string & |
_format |
|
) |
| |
Callback function for handling depth frame updates.
- Parameters
-
| _image | Image data |
| _width | Image width |
| _height | Image height |
| _depth | Image depth |
| _format | Image format |
| void onNewRGBFrame |
( |
const unsigned char * |
_image, |
|
|
unsigned int |
_width, |
|
|
unsigned int |
_height, |
|
|
unsigned int |
_depth, |
|
|
const std::string & |
_format |
|
) |
| |
Callback function for handling RGB frame updates.
- Parameters
-
| _image | Image data |
| _width | Image width |
| _height | Image height |
| _depth | Image depth |
| _format | Image format |
Callback function for handling incoming requests.
- Parameters
-
Callback function for handling world update event.
| void saveDepthFrame |
( |
const float * |
_image, |
|
|
unsigned int |
_width, |
|
|
unsigned int |
_height, |
|
|
unsigned int |
_depth, |
|
|
const std::string & |
_format, |
|
|
const std::string & |
_filename |
|
) |
| |
|
private |
| rendering::DepthCameraPtr camera |
|
private |
Pointer to depth camera renderer.
Flag for capture request.
Class with private attributes.
| bool depth_captured {false} |
|
private |
Flag for depth successfully captured.
Multithread safe queue for depth data.
| ignition::math::Pose3d new_pose |
|
private |
| event::ConnectionPtr newDepthFrameConn |
|
private |
Pointer to depth camera callback connection.
| event::ConnectionPtr newRGBFrameConn |
|
private |
Pointer to RGB camera callback connection.
| std::string output_prefix {""} |
|
private |
Rendered output filename prefix.
| bool rgb_captured {false} |
|
private |
Flag for RGB successfully captured.
Multithread safe queue for RGB data.
Flag to stop thread execution.
Auxiliar thread for saving depth frames to disk.
Auxiliar thread for saving RGB frames to disk.
Flag for pose update request.
| event::ConnectionPtr updateConn |
|
private |
Pointer to world update callback connection.
The documentation for this class was generated from the following files: