36 CSimpleMap::CSimpleMap(
const CSimpleMap& o) : m_posesObsPairs(o.m_posesObsPairs)
51 if (
this == &o)
return *
this;
167 pair.first = in_posePDF;
247 pair.first = in_posePDF;
269 for (i = 0; i <
n; i++)
287 for (i = 0; i <
n; i++)
298 for (i = 0; i <
n; i++)
319 it->first->changeCoordinatesReference(newOrigin);
bool empty() const
Returns size()!=0.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
This class stores a sequence of <Probabilistic Pose,SensoryFrame> pairs, thus a "metric map" can be t...
The virtual base class which provides a unified interface for all persistent objects in MRPT...
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
#define THROW_EXCEPTION(msg)
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...
virtual CObject * clone() const =0
Returns a deep copy (clone) of the object, indepently of its class.
void writeToStream(mrpt::utils::CStream &out, int *getVersion) const override
Introduces a pure virtual method responsible for writing to a CStream.
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) ...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
std::shared_ptr< CPosePDF > Ptr
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
std::shared_ptr< CPose3DPDF > Ptr
This namespace contains representation of robot actions and observations.
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
std::shared_ptr< CSensoryFrame > Ptr
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'.
size_t size() const
Returns the count of pairs (pose,sensory data)
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'.
GLsizei const GLchar ** string
Declares a class that represents a probability density function (pdf) of a 2D pose (x...
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
#define CFileGZOutputStream
Saves data to a file and transparently compress the data using the given compression level...
virtual ~CSimpleMap()
Destructor:
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
std::pair< mrpt::poses::CPose3DPDF::Ptr, mrpt::obs::CSensoryFrame::Ptr > TPosePDFSensFramePair
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...
void insert(const mrpt::poses::CPose3DPDF *in_posePDF, const mrpt::obs::CSensoryFrame &in_SF)
Add a new pair to the sequence.
unsigned __int32 uint32_t
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...
TPosePDFSensFramePairList m_posesObsPairs
The stored data.
Declares a class that represents a Probability Density Function (PDF) of a 3D pose (6D actually)...
bool saveToFile(const std::string &filName) const
Save this object to a .simplemap binary file (compressed with gzip)
void clear()
Remove all stored pairs.
void remove(size_t index)
Deletes the i'th pair, first one is index '0'.