Go to the documentation of this file.
10 #define COBSERVATION_H
24 #define INVALID_BEACON_ID (-1)
27 #define INVALID_LANDMARK_ID (-1)
98 template <
class METRICMAP>
103 return theMap->insertObservation(
this, robotPose);
std::string sensorLabel
An arbitrary label that can be used to identify the sensor.
virtual void load() const
Makes sure all images and other fields which may be externally stored are loaded in memory.
mrpt::system::TTimeStamp now()
A shortcut for system::getCurrentTime.
virtual void setSensorPose(const mrpt::poses::CPose3D &newSensorPose)=0
A general method to change the sensor pose on the robot.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CObservation()=default
Constructor: It sets the initial timestamp to current time.
mrpt::system::TTimeStamp timestamp
The associated UTC time-stamp.
virtual void unload()
Unload all images, for the case they being delayed-load images stored in external files (othewise,...
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
The virtual base class which provides a unified interface for all persistent objects in MRPT.
Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).
#define DEFINE_VIRTUAL_SERIALIZABLE(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
Declares a class that represents any robot's observation.
void swap(CObservation &o)
Swap with another observation, ONLY the data defined here in the base class CObservation.
GLsizei const GLchar ** string
mrpt::system::TTimeStamp getTimeStamp() const
Returns CObservation::timestamp for all kind of observations.
virtual mrpt::system::TTimeStamp getOriginalReceivedTimeStamp() const
By default, returns CObservation::timestamp but in sensors capable of satellite (or otherwise) accura...
virtual void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const =0
A general method to retrieve the sensor pose on the robot.
bool insertObservationInto(METRICMAP *theMap, const mrpt::poses::CPose3D *robotPose=nullptr) const
This method is equivalent to:
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 | |