27 : cameraLeft(), cameraRight(), rightCameraPose(), cameraPoseOnRobot()
31 CObservationStereoImagesFeatures::CObservationStereoImagesFeatures(
66 "%u %.2f %.2f %.2f %.2f\n", it->ID, it->pixels.first.x,
67 it->pixels.first.y, it->pixels.second.x, it->pixels.second.y);
88 for (
unsigned int i = 0; i <
theFeatures.size(); ++i)
116 for (
unsigned int i = 0; i <
theFeatures.size(); ++i)
134 std::ostream& o)
const 138 o <<
"Homogeneous matrix for the sensor's 3D pose, relative to robot " 143 o <<
"Homogeneous matrix for the RIGHT camera's 3D pose, relative to LEFT " 144 "camera reference system:\n";
147 o <<
"Intrinsic parameters matrix for the LEFT camera:" << endl;
149 o << aux.inMatlabFormat() << endl << aux << endl;
151 o <<
"Distortion parameters vector for the LEFT camera:" << endl <<
"[ ";
152 for (
unsigned int i = 0; i < 5; ++i) o <<
cameraLeft.
dist[i] <<
" ";
155 o <<
"Intrinsic parameters matrix for the RIGHT camera:" << endl;
157 o << aux.inMatlabFormat() << endl << aux << endl;
159 o <<
"Distortion parameters vector for the RIGHT camera:" << endl <<
"[ ";
169 " Number of features in images: %u\n",
void close()
Close the stream.
void saveFeaturesToTextFile(const std::string &filename)
A method for storing the set of observed features in a text file in the format: ID ul vl ur vr be...
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
Declares a class derived from "CObservation" that encapsules a pair of cameras and a set of matched i...
~CObservationStereoImagesFeatures()
Destructor.
std::vector< TStereoImageFeatures > theFeatures
Vectors of image feature pairs (with ID).
IMPLEMENTS_SERIALIZABLE(CObservationStereoImagesFeatures, CObservation, mrpt::obs) CObservationStereoImagesFeatures
mrpt::math::CMatrixDouble44 getHomogeneousMatrixVal() const
Returns the corresponding 4x4 homogeneous transformation matrix for the point(translation) or pose (t...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
This base provides a set of functions for maths stuff.
This CStream derived class allow using a file as a write-only, binary stream.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This namespace contains representation of robot actions and observations.
uint32_t ncols
Camera resolution.
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
void writeToStream(mrpt::utils::CStream &out, int *getVersion) const override
Introduces a pure virtual method responsible for writing to a CStream.
A class used to store a 3D pose as a translation (x,y,z) and a quaternion (qr,qx,qy,qz).
GLsizei const GLchar ** string
CObservationStereoImagesFeatures()
Default Constructor.
mrpt::poses::CPose3DQuat cameraPoseOnRobot
The pose of the LEFT camera, relative to the robot.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
mrpt::math::CMatrixDouble33 intrinsicParams
Matrix of intrinsic parameters (containing the focal length and principal point coordinates) ...
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
std::string sensorLabel
An arbitrary label that can be used to identify the sensor.
mrpt::system::TTimeStamp timestamp
The associated UTC time-stamp.
mrpt::poses::CPose3DQuat rightCameraPose
The pose of the right camera, relative to the left one: Note that for the Bumblebee stereo camera and...
mrpt::math::CArrayDouble< 5 > dist
[k1 k2 t1 t2 k3] -> k_i: parameters of radial distortion, t_i: parameters of tangential distortion (d...
mrpt::utils::TCamera cameraRight
mrpt::utils::TCamera cameraLeft
Declares a class that represents any robot's observation.
GLenum GLsizei GLenum format
void readFromStream(mrpt::utils::CStream &in, int version) override
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly...
unsigned __int32 uint32_t
Structure to hold the parameters of a pinhole camera model.
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...