Declares a class derived from "CObservation" that encapsules a 3D range scan measurement (e.g. More...
#include <mrpt/slam/CObservation3DRangeScan.h>


Public Member Functions | |
| CObservation3DRangeScan () | |
| Default constructor. | |
| virtual | ~CObservation3DRangeScan () |
| Destructor. | |
| bool | points3D_isExternallyStored () const |
| std::string | points3D_getExternalStorageFile () const |
| void | points3D_getExternalStorageFileAbsolutePath (std::string &out_path) const |
| std::string | points3D_getExternalStorageFileAbsolutePath () const |
| void | points3D_convertToExternalStorage (const std::string &fileName, const std::string &use_this_base_dir) |
| Users won't normally want to call this, it's only used from internal MRPT programs. | |
| bool | rangeImage_isExternallyStored () const |
| std::string | rangeImage_getExternalStorageFile () const |
| void | rangeImage_getExternalStorageFileAbsolutePath (std::string &out_path) const |
| std::string | rangeImage_getExternalStorageFileAbsolutePath () const |
| void | rangeImage_convertToExternalStorage (const std::string &fileName, const std::string &use_this_base_dir) |
| Users won't normally want to call this, it's only used from internal MRPT programs. | |
| void | getSensorPose (CPose3D &out_sensorPose) const |
| A general method to retrieve the sensor pose on the robot. | |
| void | setSensorPose (const CPose3D &newSensorPose) |
| A general method to change the sensor pose on the robot. | |
| void | swap (CObservation3DRangeScan &o) |
| Very efficient method to swap the contents of two observations. | |
| void | getZoneAsObs (CObservation3DRangeScan &obs, const unsigned int &r1, const unsigned int &r2, const unsigned int &c1, const unsigned int &c2) |
Delayed-load manual control methods. | |
| virtual void | load () const |
| Makes sure all images and other fields which may be externally stored are loaded in memory. | |
| virtual void | unload () |
| Unload all images, for the case they being delayed-load images stored in external files (othewise, has no effect). | |
Static Public Member Functions | |
| static double | recoverCameraCalibrationParameters (const CObservation3DRangeScan &in_obs, mrpt::utils::TCamera &out_camParams, const double camera_offset=0.01) |
| A Levenberg-Marquart-based optimizer to recover the calibration parameters of a 3D camera given a range (depth) image and the corresponding 3D point cloud. | |
Public Attributes | |
| bool | hasPoints3D |
| true means the field points3D contains valid data. | |
| vector_float | points3D_x |
| If hasPoints3D=true, the X coordinates of the 3D point cloud detected by the camera. | |
| vector_float | points3D_y |
| If hasPoints3D=true, the Y coordinates of the 3D point cloud detected by the camera. | |
| vector_float | points3D_z |
| If hasPoints3D=true, the Z coordinates of the 3D point cloud detected by the camera. | |
| bool | hasRangeImage |
| true means the field rangeImage contains valid data | |
| mrpt::math::CMatrix | rangeImage |
| If hasRangeImage=true, a matrix of floats with the range data as captured by the camera (in meters). | |
| bool | hasIntensityImage |
| true means the field intensityImage contains valid data | |
| mrpt::utils::CImage | intensityImage |
| If hasIntensityImage=true, a gray-level intensity image of the same size than "rangeImage". | |
| bool | hasConfidenceImage |
| true means the field confidenceImage contains valid data | |
| mrpt::utils::CImage | confidenceImage |
| If hasConfidenceImage=true, an image with the "confidence" value [range 0-255] as estimated by the capture drivers. | |
| mrpt::utils::TCamera | cameraParams |
| Projection parameters of the camera. | |
| float | maxRange |
| The maximum range allowed by the device, in meters (e.g. 8.0m, 5.0m,...). | |
| CPose3D | sensorPose |
| The 6D pose of the sensor on the robot. | |
| float | stdError |
| The "sigma" error of the device in meters, used while inserting the scan in an occupancy grid. | |
Protected Attributes | |
| bool | m_points3D_external_stored |
| If set to true, m_points3D_external_file is valid. | |
| std::string | m_points3D_external_file |
| 3D points are in CImage::IMAGES_PATH_BASE+<this_file_name> | |
| bool | m_rangeImage_external_stored |
| If set to true, m_rangeImage_external_file is valid. | |
| std::string | m_rangeImage_external_file |
| rangeImage is in CImage::IMAGES_PATH_BASE+<this_file_name> | |
Declares a class derived from "CObservation" that encapsules a 3D range scan measurement (e.g.
from a time of flight range camera). This kind of observations can carry one or more of these data fields:
The coordinates of the 3D point cloud are in meters with respect to the front face of the camera (i.e. a small offset ~1cm in front of the physical focal point), with the +X axis pointing forward, +Y pointing left-hand and +Z pointing up.
The 2D images and matrices are stored as common images, with an up->down rows order and left->right, as usual. Optionally, the intensity and confidence channels can be set to delayed-load images for off-rawlog storage so it saves memory by having loaded in memory just the needed images. See the methods load() and unload(). Due to the intensive storage requirements of this kind of observations, this observation is the only one in MRPT for which it's recommended to always call "load()" and "unload()" before and after using the observation, *ONLY* when the observation was read from a rawlog dataset, in order to make sure that all the externally stored data fields are loaded and ready in memory.
A class that grabs observations of this type is mrpt::hwdrivers::CSwissRanger3DCamera
Definition at line 72 of file CObservation3DRangeScan.h.
| mrpt::slam::CObservation3DRangeScan::CObservation3DRangeScan | ( | ) |
Default constructor.
| virtual mrpt::slam::CObservation3DRangeScan::~CObservation3DRangeScan | ( | ) | [virtual] |
Destructor.
| void mrpt::slam::CObservation3DRangeScan::getSensorPose | ( | CPose3D & | out_sensorPose | ) | const [inline, virtual] |
A general method to retrieve the sensor pose on the robot.
Note that most sensors will return a full (6D) CPose3D, but see the derived classes for more details or special cases.
Implements mrpt::slam::CObservation.
Definition at line 153 of file CObservation3DRangeScan.h.
| void mrpt::slam::CObservation3DRangeScan::getZoneAsObs | ( | CObservation3DRangeScan & | obs, | |
| const unsigned int & | r1, | |||
| const unsigned int & | r2, | |||
| const unsigned int & | c1, | |||
| const unsigned int & | c2 | |||
| ) |
| virtual void mrpt::slam::CObservation3DRangeScan::load | ( | ) | const [virtual] |
Makes sure all images and other fields which may be externally stored are loaded in memory.
Note that for all CImages, calling load() is not required since the images will be automatically loaded upon first access, so load() shouldn't be needed to be called in normal cases by the user. If all the data were alredy loaded or this object has no externally stored data fields, calling this method has no effects.
Reimplemented from mrpt::slam::CObservation.
| void mrpt::slam::CObservation3DRangeScan::points3D_convertToExternalStorage | ( | const std::string & | fileName, | |
| const std::string & | use_this_base_dir | |||
| ) |
Users won't normally want to call this, it's only used from internal MRPT programs.
| std::string mrpt::slam::CObservation3DRangeScan::points3D_getExternalStorageFile | ( | ) | const [inline] |
Definition at line 110 of file CObservation3DRangeScan.h.
| void mrpt::slam::CObservation3DRangeScan::points3D_getExternalStorageFileAbsolutePath | ( | std::string & | out_path | ) | const |
| std::string mrpt::slam::CObservation3DRangeScan::points3D_getExternalStorageFileAbsolutePath | ( | ) | const [inline] |
Definition at line 112 of file CObservation3DRangeScan.h.
| bool mrpt::slam::CObservation3DRangeScan::points3D_isExternallyStored | ( | ) | const [inline] |
Definition at line 109 of file CObservation3DRangeScan.h.
| void mrpt::slam::CObservation3DRangeScan::rangeImage_convertToExternalStorage | ( | const std::string & | fileName, | |
| const std::string & | use_this_base_dir | |||
| ) |
Users won't normally want to call this, it's only used from internal MRPT programs.
| std::string mrpt::slam::CObservation3DRangeScan::rangeImage_getExternalStorageFile | ( | ) | const [inline] |
Definition at line 125 of file CObservation3DRangeScan.h.
| void mrpt::slam::CObservation3DRangeScan::rangeImage_getExternalStorageFileAbsolutePath | ( | std::string & | out_path | ) | const |
| std::string mrpt::slam::CObservation3DRangeScan::rangeImage_getExternalStorageFileAbsolutePath | ( | ) | const [inline] |
Definition at line 127 of file CObservation3DRangeScan.h.
| bool mrpt::slam::CObservation3DRangeScan::rangeImage_isExternallyStored | ( | ) | const [inline] |
Definition at line 124 of file CObservation3DRangeScan.h.
| static double mrpt::slam::CObservation3DRangeScan::recoverCameraCalibrationParameters | ( | const CObservation3DRangeScan & | in_obs, | |
| mrpt::utils::TCamera & | out_camParams, | |||
| const double | camera_offset = 0.01 | |||
| ) | [static] |
A Levenberg-Marquart-based optimizer to recover the calibration parameters of a 3D camera given a range (depth) image and the corresponding 3D point cloud.
| camera_offset | The offset (in meters) in the +X direction of the point cloud. It's 1cm for SwissRanger SR4000. |
| void mrpt::slam::CObservation3DRangeScan::setSensorPose | ( | const CPose3D & | newSensorPose | ) | [inline, virtual] |
A general method to change the sensor pose on the robot.
Note that most sensors will use the full (6D) CPose3D, but see the derived classes for more details or special cases.
Implements mrpt::slam::CObservation.
Definition at line 159 of file CObservation3DRangeScan.h.
| void mrpt::slam::CObservation3DRangeScan::swap | ( | CObservation3DRangeScan & | o | ) |
Very efficient method to swap the contents of two observations.
| virtual void mrpt::slam::CObservation3DRangeScan::unload | ( | ) | [virtual] |
Unload all images, for the case they being delayed-load images stored in external files (othewise, has no effect).
Reimplemented from mrpt::slam::CObservation.
Projection parameters of the camera.
Definition at line 141 of file CObservation3DRangeScan.h.
If hasConfidenceImage=true, an image with the "confidence" value [range 0-255] as estimated by the capture drivers.
Definition at line 139 of file CObservation3DRangeScan.h.
true means the field confidenceImage contains valid data
Definition at line 138 of file CObservation3DRangeScan.h.
true means the field intensityImage contains valid data
Definition at line 135 of file CObservation3DRangeScan.h.
true means the field points3D contains valid data.
Definition at line 103 of file CObservation3DRangeScan.h.
true means the field rangeImage contains valid data
Definition at line 120 of file CObservation3DRangeScan.h.
If hasIntensityImage=true, a gray-level intensity image of the same size than "rangeImage".
Definition at line 136 of file CObservation3DRangeScan.h.
std::string mrpt::slam::CObservation3DRangeScan::m_points3D_external_file [protected] |
3D points are in CImage::IMAGES_PATH_BASE+<this_file_name>
Definition at line 79 of file CObservation3DRangeScan.h.
bool mrpt::slam::CObservation3DRangeScan::m_points3D_external_stored [protected] |
If set to true, m_points3D_external_file is valid.
Definition at line 78 of file CObservation3DRangeScan.h.
std::string mrpt::slam::CObservation3DRangeScan::m_rangeImage_external_file [protected] |
rangeImage is in CImage::IMAGES_PATH_BASE+<this_file_name>
Definition at line 82 of file CObservation3DRangeScan.h.
bool mrpt::slam::CObservation3DRangeScan::m_rangeImage_external_stored [protected] |
If set to true, m_rangeImage_external_file is valid.
Definition at line 81 of file CObservation3DRangeScan.h.
The maximum range allowed by the device, in meters (e.g. 8.0m, 5.0m,...).
Definition at line 144 of file CObservation3DRangeScan.h.
If hasPoints3D=true, the X coordinates of the 3D point cloud detected by the camera.
Definition at line 104 of file CObservation3DRangeScan.h.
If hasPoints3D=true, the Y coordinates of the 3D point cloud detected by the camera.
Definition at line 105 of file CObservation3DRangeScan.h.
If hasPoints3D=true, the Z coordinates of the 3D point cloud detected by the camera.
Definition at line 106 of file CObservation3DRangeScan.h.
If hasRangeImage=true, a matrix of floats with the range data as captured by the camera (in meters).
Definition at line 121 of file CObservation3DRangeScan.h.
The 6D pose of the sensor on the robot.
Definition at line 145 of file CObservation3DRangeScan.h.
The "sigma" error of the device in meters, used while inserting the scan in an occupancy grid.
Definition at line 146 of file CObservation3DRangeScan.h.
| Page generated by Doxygen 1.7.1 for MRPT 0.9.1 SVN:exported at Fri Aug 6 10:31:35 UTC 2010 |