Go to the documentation of this file.
35 rightCamera.saveToConfigFile(section +
string(
"_RIGHT"), cfg);
38 section +
string(
"_LEFT2RIGHT_POSE"),
"pose_quaternion",
39 rightCameraPose.asString());
55 leftCamera.loadFromConfigFile(section +
string(
"_LEFT"), cfg);
56 rightCamera.loadFromConfigFile(section +
string(
"_RIGHT"), cfg);
57 rightCameraPose.fromString(
59 section +
string(
"_LEFT2RIGHT_POSE"),
"pose_quaternion",
""));
67 out << leftCamera << rightCamera << rightCameraPose;
87 "backwards compatibility de-serialization not implemented "
90 in >> leftCamera >> rightCamera >> rightCameraPose;
101 saveToConfigFile(
"", cfg);
uint8_t serializeGetVersion() const override
Must return the current versioning number of the object.
void serializeFrom(mrpt::serialization::CArchive &in, uint8_t serial_version) override
Pure virtual method for reading (deserializing) from an abstract archive.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define THROW_EXCEPTION(msg)
std::string read_string(const std::string §ion, const std::string &name, const std::string &defaultValue, bool failIfNotFound=false) const
Virtual base class for "archives": classes abstracting I/O streams.
void loadFromConfigFile(const std::string §ion, const mrpt::config::CConfigFileBase &cfg)
Load all the params from a config source, in the same format that used in saveToConfigFile().
Structure to hold the parameters of a pinhole stereo camera model.
This class allows loading and storing values and vectors of different types from a configuration text...
mrpt::config::CConfigFileBase CConfigFileBase
void getContent(std::string &str) const
Return the current contents of the virtual "config file".
void serializeTo(mrpt::serialization::CArchive &out) const override
Pure virtual method for writing (serializing) to an abstract archive.
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
This base provides a set of functions for maths stuff.
GLsizei const GLchar ** string
This class implements a config file-like interface over a memory-stored string list.
std::string dumpAsText() const
Dumps all the parameters as a multi-line string, with the same format than saveToConfigFile.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
void saveToConfigFile(const std::string §ion, mrpt::config::CConfigFileBase &cfg) const
Save all params to a plain text config file in this format:
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |