Declares a class derived from "CObservation" that encapsules a 3D range scan measurement, as from a time-of-flight range camera or any other RGBD sensor.
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 depth camera origin of coordinates (in SwissRanger, the front face of the camera: 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. By convention, a 3D point with its coordinates set to (0,0,0), will be considered as invalid. The field CObservation3DRangeScan::relativePoseIntensityWRTDepth describes the change of coordinates from the depth camera to the intensity (RGB or grayscale) camera. In a SwissRanger camera both cameras coincide, so this pose is just a rotation (0,0,0,-90deg,0,-90deg). But in Microsoft Kinect there is also an offset, as shown in this figure:
In any case, check the field relativePoseIntensityWRTDepth, or the method doDepthAndIntensityCamerasCoincide() to determine if both frames of reference coincide, since even for Kinect cameras both can coincide if the images have been rectified.
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.
Classes that grab observations of this type are:
There are two sets of calibration parameters (see mrpt::vision::checkerBoardStereoCalibration() or the ready-to-use GUI program kinect-calibrate):
In some cameras, like SwissRanger, both are the same. It is possible in Kinect to rectify the range images such both cameras seem to coincide and then both sets of camera parameters will be identical.
Range data can be interpreted in two different ways depending on the 3D camera (this field is already set to the correct setting when grabbing observations from an mrpt::hwdrivers sensor):
The "intensity" channel may come from different channels in sesnsors as Kinect. Look at field intensityImageChannel to find out if the image was grabbed from the visible (RGB) or IR channels.
3D point clouds can be generated at any moment after grabbing with CObservation3DRangeScan::project3DPointsFromDepthImage() and CObservation3DRangeScan::project3DPointsFromDepthImageInto(), provided the correct calibration parameters.
Example of how to assign labels to pixels (for object segmentation, semantic information, etc.):
Definition at line 112 of file obs/CObservation3DRangeScan.h.
#include <mrpt/obs/CObservation3DRangeScan.h>
Classes | |
struct | TCached3DProjTables |
Look-up-table struct for project3DPointsFromDepthImageInto() More... | |
struct | TPixelLabelInfo |
struct | TPixelLabelInfoBase |
Virtual interface to all pixel-label information structs. More... | |
Public Member Functions | |
CObservation3DRangeScan () | |
Default constructor. More... | |
virtual | ~CObservation3DRangeScan () |
Destructor. More... | |
template<class POINTMAP > | |
void | project3DPointsFromDepthImageInto (POINTMAP &dest_pointcloud, const bool takeIntoAccountSensorPoseOnRobot, const mrpt::poses::CPose3D *robotPoseInTheWorld=NULL, const bool PROJ3D_USE_LUT=true) |
Project the RGB+D images into a 3D point cloud (with color if the target map supports it) and optionally at a given 3D pose. More... | |
void | project3DPointsFromDepthImage (const bool PROJ3D_USE_LUT=true) |
This method is equivalent to project3DPointsFromDepthImageInto() storing the projected 3D points (without color, in local coordinates) in this same class. More... | |
void | convertTo2DScan (mrpt::obs::CObservation2DRangeScan &out_scan2d, const std::string &sensorLabel, const double angle_sup=mrpt::utils::DEG2RAD(5), const double angle_inf=mrpt::utils::DEG2RAD(5), const double oversampling_ratio=1.2) |
Convert this 3D observation into an "equivalent 2D fake laser scan", with a configurable vertical FOV. More... | |
void | resizePoints3DVectors (const size_t nPoints) |
Use this method instead of resizing all three points3D_x, points3D_y & points3D_z to allow the usage of the internal memory pool. More... | |
void | getDescriptionAsText (std::ostream &o) const MRPT_OVERRIDE |
Build a detailed, multi-line textual description of the observation contents and dump it to the output stream. More... | |
void | swap (CObservation3DRangeScan &o) |
Very efficient method to swap the contents of two observations. More... | |
void | getZoneAsObs (CObservation3DRangeScan &obs, const unsigned int &r1, const unsigned int &r2, const unsigned int &c1, const unsigned int &c2) |
template<class METRICMAP > | |
bool | insertObservationInto (METRICMAP *theMap, const mrpt::poses::CPose3D *robotPose=NULL) const |
This method is equivalent to: More... | |
void | getSensorPose (mrpt::math::TPose3D &out_sensorPose) const |
A general method to retrieve the sensor pose on the robot. More... | |
void | setSensorPose (const mrpt::math::TPose3D &newSensorPose) |
A general method to change the sensor pose on the robot. More... | |
Delayed-load manual control methods. | |
virtual void | load () const MRPT_OVERRIDE |
Makes sure all images and other fields which may be externally stored are loaded in memory. More... | |
virtual void | unload () MRPT_OVERRIDE |
Unload all images, for the case they being delayed-load images stored in external files (othewise, has no effect). More... | |
3D points external storage functions | |
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. More... | |
Range Matrix external storage functions | |
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. More... | |
void | rangeImage_forceResetExternalStorage () |
Forces marking this observation as non-externally stored - it doesn't anything else apart from reseting the corresponding flag (Users won't normally want to call this, it's only used from internal MRPT programs) More... | |
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. More... | |
Public Attributes | |
bool | hasPoints3D |
true means the field points3D contains valid data. More... | |
std::vector< float > | points3D_x |
std::vector< float > | points3D_y |
std::vector< float > | points3D_z |
If hasPoints3D=true, the (X,Y,Z) coordinates of the 3D point cloud detected by the camera. More... | |
std::vector< uint16_t > | points3D_idxs_x |
std::vector< uint16_t > | points3D_idxs_y |
//!< If hasPoints3D=true, the (x,y) pixel coordinates for each (X,Y,Z) point in points3D_x, points3D_y, points3D_z More... | |
Confidence "channel" | |
bool | hasConfidenceImage |
true means the field confidenceImage contains valid data More... | |
mrpt::utils::CImage | confidenceImage |
If hasConfidenceImage=true, an image with the "confidence" value [range 0-255] as estimated by the capture drivers. More... | |
Static Public Attributes | |
static TCached3DProjTables | m_3dproj_lut |
3D point cloud projection look-up-table More... | |
RTTI stuff <br> | |
static const mrpt::utils::TRuntimeClassId | classCObservation |
Protected Member Functions | |
void | swap (CObservation &o) |
Swap with another observation, ONLY the data defined here in the base class CObservation. It's protected since it'll be only called from child classes that should know what else to swap appart from these common data. More... | |
CSerializable virtual methods | |
void | writeToStream (mrpt::utils::CStream &out, int *getVersion) const MRPT_OVERRIDE |
void | readFromStream (mrpt::utils::CStream &in, int version) MRPT_OVERRIDE |
Protected Attributes | |
bool | m_points3D_external_stored |
If set to true, m_points3D_external_file is valid. More... | |
std::string | m_points3D_external_file |
3D points are in CImage::IMAGES_PATH_BASE+<this_file_name> More... | |
bool | m_rangeImage_external_stored |
If set to true, m_rangeImage_external_file is valid. More... | |
std::string | m_rangeImage_external_file |
rangeImage is in CImage::IMAGES_PATH_BASE+<this_file_name> More... | |
Intensity (RGB) channels | |
enum | TIntensityChannelID { CH_VISIBLE = 0 , CH_IR = 1 } |
Enum type for intensityImageChannel. More... | |
bool | hasIntensityImage |
true means the field intensityImage contains valid data More... | |
mrpt::utils::CImage | intensityImage |
If hasIntensityImage=true, a color or gray-level intensity image of the same size than "rangeImage". More... | |
TIntensityChannelID | intensityImageChannel |
The source of the intensityImage; typically the visible channel. More... | |
RTTI stuff <br> | |
typedef CObservation3DRangeScanPtr | SmartPtr |
static mrpt::utils::CLASSINIT | _init_CObservation3DRangeScan |
static mrpt::utils::TRuntimeClassId | classCObservation3DRangeScan |
static const mrpt::utils::TRuntimeClassId * | classinfo |
static const mrpt::utils::TRuntimeClassId * | _GetBaseClass () |
virtual const mrpt::utils::TRuntimeClassId * | GetRuntimeClass () const MRPT_OVERRIDE |
virtual mrpt::utils::CObject * | duplicate () const MRPT_OVERRIDE |
static mrpt::utils::CObject * | CreateObject () |
static CObservation3DRangeScanPtr | Create () |
Pixel-wise classification labels (for semantic labeling, etc.) | |
typedef stlplus::smart_ptr< TPixelLabelInfoBase > | TPixelLabelInfoPtr |
Used in CObservation3DRangeScan::pixelLabels. More... | |
TPixelLabelInfoPtr | pixelLabels |
All information about pixel labeling is stored in this (smart pointer to) structure; refer to TPixelLabelInfo for details on the contents User is responsible of creating a new object of the desired data type. More... | |
bool | hasPixelLabels () const |
Returns true if the field CObservation3DRangeScan::pixelLabels contains a non-NULL smart pointer. More... | |
Range (depth) image | |
bool | hasRangeImage |
true means the field rangeImage contains valid data More... | |
mrpt::math::CMatrix | rangeImage |
If hasRangeImage=true, a matrix of floats with the range data as captured by the camera (in meters) More... | |
bool | range_is_depth |
true: Kinect-like ranges: entries of rangeImage are distances along the +X axis; false: Ranges in rangeImage are actual distances in 3D. More... | |
void | rangeImage_setSize (const int HEIGHT, const int WIDTH) |
Similar to calling "rangeImage.setSize(H,W)" but this method provides memory pooling to speed-up the memory allocation. More... | |
Sensor parameters | |
mrpt::utils::TCamera | cameraParams |
Projection parameters of the depth camera. More... | |
mrpt::utils::TCamera | cameraParamsIntensity |
Projection parameters of the intensity (graylevel or RGB) camera. More... | |
mrpt::poses::CPose3D | relativePoseIntensityWRTDepth |
Relative pose of the intensity camera wrt the depth camera (which is the coordinates origin for this observation). More... | |
float | maxRange |
The maximum range allowed by the device, in meters (e.g. 8.0m, 5.0m,...) More... | |
mrpt::poses::CPose3D | sensorPose |
The 6D pose of the sensor on the robot. More... | |
float | stdError |
The "sigma" error of the device in meters, used while inserting the scan in an occupancy grid. More... | |
bool | doDepthAndIntensityCamerasCoincide () const |
Return true if relativePoseIntensityWRTDepth equals the pure rotation (0,0,0,-90deg,0,-90deg) (with a small comparison epsilon) More... | |
void | getSensorPose (mrpt::poses::CPose3D &out_sensorPose) const MRPT_OVERRIDE |
A general method to retrieve the sensor pose on the robot. More... | |
void | setSensorPose (const mrpt::poses::CPose3D &newSensorPose) MRPT_OVERRIDE |
A general method to change the sensor pose on the robot. More... | |
Data common to any observation | |
mrpt::system::TTimeStamp | timestamp |
The associated UTC time-stamp. Where available, this should contain the accurate satellite-based timestamp of the sensor reading. More... | |
std::string | sensorLabel |
An arbitrary label that can be used to identify the sensor. More... | |
mrpt::system::TTimeStamp | getTimeStamp () const |
Returns CObservation::timestamp for all kind of observations. More... | |
virtual mrpt::system::TTimeStamp | getOriginalReceivedTimeStamp () const |
By default, returns CObservation::timestamp but in sensors capable of satellite (or otherwise) accurate UTC timing of readings, this contains the computer-based timestamp of reception, which may be slightly different than timestamp. More... | |
A typedef for the associated smart pointer
Definition at line 115 of file obs/CObservation3DRangeScan.h.
typedef stlplus::smart_ptr<TPixelLabelInfoBase> mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoPtr |
Used in CObservation3DRangeScan::pixelLabels.
Definition at line 367 of file obs/CObservation3DRangeScan.h.
Enum type for intensityImageChannel.
Enumerator | |
---|---|
CH_VISIBLE | Grayscale or RGB visible channel of the camera sensor. |
CH_IR | Infrarred (IR) channel. |
Definition at line 280 of file obs/CObservation3DRangeScan.h.
mrpt::obs::CObservation3DRangeScan::CObservation3DRangeScan | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
staticprotected |
void mrpt::obs::CObservation3DRangeScan::convertTo2DScan | ( | mrpt::obs::CObservation2DRangeScan & | out_scan2d, |
const std::string & | sensorLabel, | ||
const double | angle_sup = mrpt::utils::DEG2RAD(5) , |
||
const double | angle_inf = mrpt::utils::DEG2RAD(5) , |
||
const double | oversampling_ratio = 1.2 |
||
) |
Convert this 3D observation into an "equivalent 2D fake laser scan", with a configurable vertical FOV.
The result is a 2D laser scan with more "rays" (N) than columns has the 3D observation (W), exactly: N = W * oversampling_ratio. This oversampling is required since laser scans sample the space at evenly-separated angles, while a range camera follows a tangent-like distribution. By oversampling we make sure we don't leave "gaps" unseen by the virtual "2D laser".
All obstacles within a frustum are considered and the minimum distance is kept in each direction. The horizontal FOV of the frustum is automatically computed from the intrinsic parameters, but the vertical FOV must be provided by the user, and can be set to be assymetric which may be useful depending on the zone of interest where to look for obstacles.
All spatial transformations are riguorosly taken into account in this class, using the depth camera intrinsic calibration parameters.
The timestamp of the new object is copied from the 3D object. Obviously, a requisite for calling this method is the 3D observation having range data, i.e. hasRangeImage must be true. It's not needed to have RGB data nor the raw 3D point clouds for this method to work.
[out] | out_scan2d | The resulting 2D equivalent scan. |
[in] | sensorLabel | The sensor label that will have the newly created observation. |
[in] | angle_sup | (Default=5deg) The upper half-FOV angle (in radians) |
[in] | angle_sup | (Default=5deg) The lower half-FOV angle (in radians) |
[in] | oversampling_ratio | (Default=1.2=120%) How many more laser scans rays to create (read above). |
|
static |
|
static |
bool mrpt::obs::CObservation3DRangeScan::doDepthAndIntensityCamerasCoincide | ( | ) | const |
Return true if relativePoseIntensityWRTDepth equals the pure rotation (0,0,0,-90deg,0,-90deg) (with a small comparison epsilon)
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
|
virtual |
|
virtual |
Build a detailed, multi-line textual description of the observation contents and dump it to the output stream.
Reimplemented from mrpt::obs::CObservation.
|
inlinevirtualinherited |
By default, returns CObservation::timestamp but in sensors capable of satellite (or otherwise) accurate UTC timing of readings, this contains the computer-based timestamp of reception, which may be slightly different than timestamp.
Reimplemented in mrpt::obs::CObservationGPS, and mrpt::obs::CObservationVelodyneScan.
Definition at line 65 of file obs/CObservation.h.
|
virtual |
Reimplemented from mrpt::obs::CObservation.
|
inherited |
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.
|
inlinevirtual |
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::obs::CObservation.
Definition at line 490 of file obs/CObservation3DRangeScan.h.
|
inlineinherited |
Returns CObservation::timestamp for all kind of observations.
Definition at line 63 of file obs/CObservation.h.
void mrpt::obs::CObservation3DRangeScan::getZoneAsObs | ( | CObservation3DRangeScan & | obs, |
const unsigned int & | r1, | ||
const unsigned int & | r2, | ||
const unsigned int & | c1, | ||
const unsigned int & | c2 | ||
) |
|
inline |
Returns true if the field CObservation3DRangeScan::pixelLabels contains a non-NULL smart pointer.
To enhance a 3D point cloud with labeling info, just assign an appropiate object to pixelLabels
Definition at line 302 of file obs/CObservation3DRangeScan.h.
|
inlineinherited |
This method is equivalent to:
theMap | The map where this observation is to be inserted: the map will be updated. |
robotPose | The pose of the robot base for this observation, relative to the target metric map. Set to NULL (default) to use (0,0,0deg) |
Definition at line 83 of file obs/CObservation.h.
|
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::obs::CObservation.
void mrpt::obs::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.
|
inline |
Definition at line 242 of file obs/CObservation3DRangeScan.h.
|
inline |
Definition at line 244 of file obs/CObservation3DRangeScan.h.
void mrpt::obs::CObservation3DRangeScan::points3D_getExternalStorageFileAbsolutePath | ( | std::string & | out_path | ) | const |
|
inline |
Definition at line 241 of file obs/CObservation3DRangeScan.h.
|
inline |
This method is equivalent to project3DPointsFromDepthImageInto()
storing the projected 3D points (without color, in local coordinates) in this same class.
For new code it's recommended to use instead project3DPointsFromDepthImageInto()
which is much more versatile.
Definition at line 192 of file obs/CObservation3DRangeScan.h.
|
inline |
Project the RGB+D images into a 3D point cloud (with color if the target map supports it) and optionally at a given 3D pose.
The 3D point coordinates are computed from the depth image (rangeImage) and the depth camera camera parameters (cameraParams). There exist two set of formulas for projecting the i'th point, depending on the value of "range_is_depth". In all formulas below, "rangeImage" is the matrix of ranges and the pixel coordinates are (r,c).
1) [range_is_depth=true] With "range equals depth" or "Kinect-like depth mode": the range values are in fact distances along the "+X" axis, not real 3D ranges (this is the way Kinect reports ranges):
2) [range_is_depth=false] With "normal ranges": range means distance in 3D. This must be set when processing data from the SwissRange 3D camera, among others.
The color of each point is determined by projecting the 3D local point into the RGB image using cameraParamsIntensity.
By default the local coordinates of points are directly stored into the local map, but if indicated so in takeIntoAccountSensorPoseOnRobot the points are transformed with sensorPose. Furthermore, if provided, those coordinates are transformed with robotPoseInTheWorld
[in] | PROJ3D_USE_LUT | (Only when range_is_depth=true) Whether to use a Look-up-table (LUT) to speed up the conversion. It's thread safe in all situations except when you call this method from different threads and with different camera parameter matrices. In all other cases, it's a good idea to left it enabled. |
POINTMAP | Supported maps are all those covered by mrpt::utils::PointCloudAdapter (mrpt::maps::CPointsMap and derived, mrpt::opengl::CPointCloudColoured, PCL point clouds,...) |
Definition at line 180 of file obs/CObservation3DRangeScan.h.
void mrpt::obs::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.
|
inline |
Forces marking this observation as non-externally stored - it doesn't anything else apart from reseting the corresponding flag (Users won't normally want to call this, it's only used from internal MRPT programs)
Definition at line 273 of file obs/CObservation3DRangeScan.h.
|
inline |
Definition at line 264 of file obs/CObservation3DRangeScan.h.
|
inline |
Definition at line 266 of file obs/CObservation3DRangeScan.h.
void mrpt::obs::CObservation3DRangeScan::rangeImage_getExternalStorageFileAbsolutePath | ( | std::string & | out_path | ) | const |
|
inline |
Definition at line 263 of file obs/CObservation3DRangeScan.h.
void mrpt::obs::CObservation3DRangeScan::rangeImage_setSize | ( | const int | HEIGHT, |
const int | WIDTH | ||
) |
Similar to calling "rangeImage.setSize(H,W)" but this method provides memory pooling to speed-up the memory allocation.
|
protected |
|
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::obs::CObservation3DRangeScan::resizePoints3DVectors | ( | const size_t | nPoints | ) |
Use this method instead of resizing all three points3D_x, points3D_y & points3D_z to allow the usage of the internal memory pool.
Referenced by mrpt::utils::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::resize().
|
inherited |
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.
|
inlinevirtual |
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::obs::CObservation.
Definition at line 492 of file obs/CObservation3DRangeScan.h.
|
protectedinherited |
Swap with another observation, ONLY the data defined here in the base class CObservation. It's protected since it'll be only called from child classes that should know what else to swap appart from these common data.
void mrpt::obs::CObservation3DRangeScan::swap | ( | CObservation3DRangeScan & | o | ) |
Very efficient method to swap the contents of two observations.
|
virtual |
Unload all images, for the case they being delayed-load images stored in external files (othewise, has no effect).
Reimplemented from mrpt::obs::CObservation.
|
protected |
|
staticprotected |
Definition at line 115 of file obs/CObservation3DRangeScan.h.
mrpt::utils::TCamera mrpt::obs::CObservation3DRangeScan::cameraParams |
Projection parameters of the depth camera.
Definition at line 470 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
mrpt::utils::TCamera mrpt::obs::CObservation3DRangeScan::cameraParamsIntensity |
Projection parameters of the intensity (graylevel or RGB) camera.
Definition at line 471 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
|
staticinherited |
Definition at line 50 of file obs/CObservation.h.
|
static |
Definition at line 115 of file obs/CObservation3DRangeScan.h.
|
static |
Definition at line 115 of file obs/CObservation3DRangeScan.h.
mrpt::utils::CImage mrpt::obs::CObservation3DRangeScan::confidenceImage |
If hasConfidenceImage=true, an image with the "confidence" value [range 0-255] as estimated by the capture drivers.
Definition at line 294 of file obs/CObservation3DRangeScan.h.
bool mrpt::obs::CObservation3DRangeScan::hasConfidenceImage |
true means the field confidenceImage contains valid data
Definition at line 293 of file obs/CObservation3DRangeScan.h.
bool mrpt::obs::CObservation3DRangeScan::hasIntensityImage |
true means the field intensityImage contains valid data
Definition at line 286 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
bool mrpt::obs::CObservation3DRangeScan::hasPoints3D |
true means the field points3D contains valid data.
Definition at line 232 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::utils::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::resize().
bool mrpt::obs::CObservation3DRangeScan::hasRangeImage |
true means the field rangeImage contains valid data
Definition at line 254 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
mrpt::utils::CImage mrpt::obs::CObservation3DRangeScan::intensityImage |
If hasIntensityImage=true, a color or gray-level intensity image of the same size than "rangeImage".
Definition at line 287 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
TIntensityChannelID mrpt::obs::CObservation3DRangeScan::intensityImageChannel |
The source of the intensityImage; typically the visible channel.
Definition at line 288 of file obs/CObservation3DRangeScan.h.
|
static |
3D point cloud projection look-up-table
Definition at line 518 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
|
protected |
3D points are in CImage::IMAGES_PATH_BASE+<this_file_name>
Definition at line 119 of file obs/CObservation3DRangeScan.h.
|
protected |
If set to true, m_points3D_external_file is valid.
Definition at line 118 of file obs/CObservation3DRangeScan.h.
|
protected |
rangeImage is in CImage::IMAGES_PATH_BASE+<this_file_name>
Definition at line 122 of file obs/CObservation3DRangeScan.h.
|
protected |
If set to true, m_rangeImage_external_file is valid.
Definition at line 121 of file obs/CObservation3DRangeScan.h.
float mrpt::obs::CObservation3DRangeScan::maxRange |
The maximum range allowed by the device, in meters (e.g. 8.0m, 5.0m,...)
Definition at line 485 of file obs/CObservation3DRangeScan.h.
TPixelLabelInfoPtr mrpt::obs::CObservation3DRangeScan::pixelLabels |
All information about pixel labeling is stored in this (smart pointer to) structure; refer to TPixelLabelInfo for details on the contents User is responsible of creating a new object of the desired data type.
It will be automatically (de)serialized no matter its specific type.
Definition at line 464 of file obs/CObservation3DRangeScan.h.
std::vector<uint16_t> mrpt::obs::CObservation3DRangeScan::points3D_idxs_x |
Definition at line 234 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
std::vector<uint16_t> mrpt::obs::CObservation3DRangeScan::points3D_idxs_y |
//!< If hasPoints3D=true, the (x,y) pixel coordinates for each (X,Y,Z) point in points3D_x, points3D_y, points3D_z
Definition at line 234 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
std::vector<float> mrpt::obs::CObservation3DRangeScan::points3D_x |
Definition at line 233 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::maps::COctoMapBase< octomap::ColorOcTree, octomap::ColorOcTreeNode >::TInsertionOptions::dumpToTextStream(), mrpt::utils::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::getPointXYZ(), mrpt::utils::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::setPointXYZ(), and mrpt::utils::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::size().
std::vector<float> mrpt::obs::CObservation3DRangeScan::points3D_y |
Definition at line 233 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::maps::COctoMapBase< octomap::ColorOcTree, octomap::ColorOcTreeNode >::TInsertionOptions::dumpToTextStream(), mrpt::utils::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::getPointXYZ(), and mrpt::utils::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::setPointXYZ().
std::vector<float> mrpt::obs::CObservation3DRangeScan::points3D_z |
If hasPoints3D=true, the (X,Y,Z) coordinates of the 3D point cloud detected by the camera.
Definition at line 233 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::maps::COctoMapBase< octomap::ColorOcTree, octomap::ColorOcTreeNode >::TInsertionOptions::dumpToTextStream(), mrpt::utils::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::getPointXYZ(), and mrpt::utils::PointCloudAdapter< mrpt::obs::CObservation3DRangeScan >::setPointXYZ().
bool mrpt::obs::CObservation3DRangeScan::range_is_depth |
true: Kinect-like ranges: entries of rangeImage are distances along the +X axis; false: Ranges in rangeImage are actual distances in 3D.
Definition at line 256 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
mrpt::math::CMatrix mrpt::obs::CObservation3DRangeScan::rangeImage |
If hasRangeImage=true, a matrix of floats with the range data as captured by the camera (in meters)
Definition at line 255 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
mrpt::poses::CPose3D mrpt::obs::CObservation3DRangeScan::relativePoseIntensityWRTDepth |
Relative pose of the intensity camera wrt the depth camera (which is the coordinates origin for this observation).
In a SwissRanger camera, this will be (0,0,0,-90deg,0,-90deg) since both cameras coincide. In a Kinect, this will include a small lateral displacement and a rotation, according to the drawing on the top of this page.
Definition at line 478 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
|
inherited |
An arbitrary label that can be used to identify the sensor.
Definition at line 60 of file obs/CObservation.h.
mrpt::poses::CPose3D mrpt::obs::CObservation3DRangeScan::sensorPose |
The 6D pose of the sensor on the robot.
Definition at line 486 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::detail::project3DPointsFromDepthImageInto().
float mrpt::obs::CObservation3DRangeScan::stdError |
The "sigma" error of the device in meters, used while inserting the scan in an occupancy grid.
Definition at line 487 of file obs/CObservation3DRangeScan.h.
|
inherited |
The associated UTC time-stamp. Where available, this should contain the accurate satellite-based timestamp of the sensor reading.
Definition at line 59 of file obs/CObservation.h.
Page generated by Doxygen 1.9.5 for MRPT 1.4.0 SVN: at Tue Dec 27 00:53:09 UTC 2022 |