Go to the documentation of this file.
35 arch[
"pose_pdf"] = pdf1;
43 std::cout << arch << std::endl;
59 arch2[
"pose_pdf"].readTo(pdf2);
61 arch2[
"pose"].readTo(p2);
63 std::cout <<
"read pose:" << p2.
asString() << std::endl;
74 catch (
const std::exception& e)
81 printf(
"Untyped exception!");
86 #if 0 // code disabled, only present as an example for the docs:
89 #include <json/json.h>
95 std::make_unique<CSchemeArchive<Json::Value>>(
val));
103 std::stringstream ss;
105 std::cout <<
val << std::endl;
Virtual base class for "schematic archives" (JSON, XML,...)
void WriteAndReadExample()
[example]
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle.
void asString(std::string &s) const
Returns a human-readable textual representation of the object (eg: "[x y yaw]", yaw in degrees)
constexpr double DEG2RAD(const double x)
Degrees to radians
Declares a class that represents a Probability Density function (PDF) of a 2D pose .
CSchemeArchiveBase archiveJSON()
Returns an archive for reading/writing in JSON format.
std::string exception_to_str(const std::exception &e)
Builds a nice textual representation of a nested exception, which if generated using MRPT macros (THR...
CMatrixFixed< double, 3, 3 > CMatrixDouble33
Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Fri May 15 23:51:15 UTC 2020 | |