StereoCamera Class Reference
Stereo camera sensor. More...
#include <StereoCamera.hh>
Inheritance diagram for StereoCamera:

Public Member Functions | |
| StereoCamera (World *world) | |
| Constructor. | |
| virtual | ~StereoCamera () |
| Destructor. | |
| int | Init (int width, int height, double hfov, double baseline, double nearClip, double farClip, const char *method) |
| Initialize the sensor. | |
| int | Fini () |
| Finalize the sensor. | |
| void | Update () |
| Update the sensor information. | |
| void | SetPose (GzPose pose) |
| Set the pose of the camera (global cs). | |
| GzPose | GetPose () |
| Get the camera pose (global cs). | |
| double | GetFOV () const |
| Get the camera FOV (horizontal). | |
| void | GetSize (int *w, int *h) |
| Get the image/disparity dimensions. | |
| void | EnableImage (int camera, bool enable) |
| Enable image rendering. | |
| void | EnableDisparity (int camera, bool enable) |
| Enable disparity rendering. | |
| const unsigned char * | GetImageData (int camera) const |
| Get a pointer to the image data. | |
| const float * | GetDisparityData (int camera) const |
| Get a pointer to the disparity data. | |
| void | SetSavePath (const char *pathname) |
| Set the path for saved frames. | |
| void | EnableSaveFrame (bool enable) |
| Enable or disable saving. | |
Detailed Description
Stereo camera sensor.Generates images and disparity images for a pair of cameras. The disparity images a masked to simulated occlusion and camera field of view. The simulated cameras have parallel axis geometry, although this could easily be extended.
Constructor & Destructor Documentation
|
|
Constructor.
|
|
|
Destructor.
|
Member Function Documentation
|
||||||||||||||||||||||||||||||||
|
Initialize the sensor.
|
|
|
Finalize the sensor.
|
|
|
Update the sensor information.
|
|
|
Set the pose of the camera (global cs).
|
|
|
Get the camera pose (global cs).
|
|
|
Get the camera FOV (horizontal).
|
|
||||||||||||
|
Get the image/disparity dimensions.
|
|
||||||||||||
|
Enable image rendering.
|
|
||||||||||||
|
Enable disparity rendering.
|
|
|
Get a pointer to the image data.
|
|
|
Get a pointer to the disparity data.
|
|
|
Set the path for saved frames.
|
|
|
Enable or disable saving.
|
The documentation for this class was generated from the following files:
