Go to the documentation of this file.
34 CSimpleMap::CSimpleMap(
const CSimpleMap& o) : m_posesObsPairs(o.m_posesObsPairs)
43 if (
this == &o)
return *
this;
126 pair.first = in_posePDF;
206 pair.first = in_posePDF;
232 for (i = 0; i <
n; i++)
243 for (i = 0; i <
n; i++)
264 it->first->changeCoordinatesReference(newOrigin);
#define IMPLEMENTS_MRPT_OBJECT_ALT_NAME(class_name, base, NameSpace, alt_name)
This must be inserted in all CObject classes implementation files.
std::pair< mrpt::poses::CPose3DPDF::Ptr, mrpt::obs::CSensoryFrame::Ptr > TPosePDFSensFramePair
const auto fn_pair_make_unique
bool empty() const
Returns size()!=0.
std::shared_ptr< CSensoryFrame > Ptr
virtual CObject * clone() const =0
Returns a deep copy (clone) of the object, indepently of its class.
Declares a class that represents a Probability Density Function (PDF) of a 3D pose (6D actually).
CSimpleMap & operator=(const CSimpleMap &o)
Copy.
bool loadFromFile(const std::string &filName)
Load the contents of this object from a .simplemap binary file (possibly compressed with gzip)
#define THROW_EXCEPTION(msg)
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
This namespace contains representation of robot actions and observations.
Virtual base class for "archives": classes abstracting I/O streams.
void serializeFrom(mrpt::serialization::CArchive &in, uint8_t serial_version) override
Pure virtual method for reading (deserializing) from an abstract archive.
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
void WriteAs(const TYPE_FROM_ACTUAL &value)
Saves data to a file and transparently compress the data using the given compression level.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
size_t size() const
Returns the count of pairs (pose,sensory data)
void set(size_t index, const mrpt::poses::CPose3DPDF::Ptr &in_posePDF, const mrpt::obs::CSensoryFrame::Ptr &in_SF)
Changes the i'th pair, first one is index '0'.
The virtual base class which provides a unified interface for all persistent objects in MRPT.
void get(size_t index, mrpt::poses::CPose3DPDF::Ptr &out_posePDF, mrpt::obs::CSensoryFrame::Ptr &out_SF) const
Access to the i'th pair, first one is index '0'.
uint8_t serializeGetVersion() const override
Must return the current versioning number of the object.
Declares a class that represents a probability density function (pdf) of a 2D pose (x,...
CArchiveStreamBase< STREAM > archiveFrom(STREAM &s)
Helper function to create a templatized wrapper CArchive object for a: MRPT's CStream,...
void insertToPos(size_t index, const mrpt::poses::CPose3DPDF::Ptr &in_posePDF, const mrpt::obs::CSensoryFrame::Ptr &in_SF)
Insert a new pair to the sequence, making a copy of the smart pointer (it's not made unique) to.
This class stores a sequence of <Probabilistic Pose,SensoryFrame> pairs, thus a "metric map" can be t...
std::shared_ptr< CPose3DPDF > Ptr
GLsizei const GLchar ** string
void insert(const mrpt::poses::CPose3DPDF *in_posePDF, const mrpt::obs::CSensoryFrame &in_SF)
Add a new pair to the sequence.
TPosePDFSensFramePairList m_posesObsPairs
The stored data.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
void changeCoordinatesOrigin(const mrpt::poses::CPose3D &newOrigin)
Change the coordinate origin of all stored poses, for consistency with future new poses to enter in t...
void clear()
Remove all stored pairs.
void serializeTo(mrpt::serialization::CArchive &out) const override
Pure virtual method for writing (serializing) to an abstract archive.
std::shared_ptr< CPosePDF > Ptr
bool saveToFile(const std::string &filName) const
Save this object to a .simplemap binary file (compressed with gzip)
unsigned __int32 uint32_t
void remove(size_t index)
Deletes the i'th pair, first one is index '0'.
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 | |