93 void addAction(
CAction &action );
108 void addActionsMemoryReference(
const CActionCollectionPtr &action );
113 void addObservationsMemoryReference(
const CSensoryFramePtr &observations );
118 void addObservationMemoryReference(
const CObservationPtr &observation );
123 void addGenericObject(
const mrpt::utils::CSerializablePtr &
obj );
131 bool loadFromRawLogFile(
const std::string &fileName,
bool non_obs_objects_are_legal =
false );
137 bool saveToRawLogFile(
const std::string &fileName )
const;
145 TEntryType getType(
size_t index )
const;
150 void remove(
size_t index );
155 void remove(
size_t first_index,
size_t last_index );
162 CActionCollectionPtr getAsAction(
size_t index )
const;
169 CSensoryFramePtr getAsObservations(
size_t index )
const;
175 mrpt::utils::CSerializablePtr getAsGeneric(
size_t index )
const;
183 CObservationPtr getAsObservation(
size_t index )
const;
207 inline iterator& operator --() { m_it--;
return *
this; }
212 return etObservation;
214 return etSensoryFrame;
216 return etActionCollection;
236 const mrpt::utils::CSerializablePtr
operator *()
const {
return *m_it; }
246 return etObservation;
248 return etSensoryFrame;
250 return etActionCollection;
268 void findObservationsByClassInRange(
273 size_t guess_start_position = 0
291 static bool readActionObservationPair(
293 CActionCollectionPtr &action,
294 CSensoryFramePtr &observations,
295 size_t & rawlogEntry );
309 static bool getActionObservationPairOrObservation(
311 CActionCollectionPtr &action,
312 CSensoryFramePtr &observations,
313 CObservationPtr &observation,
314 size_t & rawlogEntry );
323 bool getActionObservationPair(
324 CActionCollectionPtr &action,
325 CSensoryFramePtr &observations,
326 size_t &rawlogEntry )
const;
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1...
virtual ~const_iterator()
bool operator==(const TPoint2D &p1, const TPoint2D &p2)
Exact comparison between 2D points.
TListObjects m_seqOfActObs
The list where the objects really are in.
const_iterator end() const
The virtual base class which provides a unified interface for all persistent objects in MRPT...
iterator operator++(int)
A thread-safe (ts) container which minimally emulates a std::map<>'s [] and find() methods but which ...
iterator erase(const iterator &it)
A normal iterator, plus the extra method "getType" to determine the type of each entry in the sequenc...
bool operator!=(const TPoint2D &p1, const TPoint2D &p2)
Exact comparison between 2D points.
std::multimap< mrpt::system::TTimeStamp, CObservationPtr > TListTimeAndObservations
For usage with CRawlog classes.
const_iterator(const TListObjects::const_iterator &it)
TListObjects::const_iterator m_it
const Scalar * const_iterator
TEntryType getType() const
GLsizei GLsizei GLuint * obj
void clear()
Clear the contents of this container.
Declares a class for storing a collection of robot actions.
This class implements a config file-like interface over a memory-stored string list.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
This class stores a rawlog (robotic datasets) in one of two possible formats:
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
GLsizei const GLchar ** string
A normal iterator, plus the extra method "getType" to determine the type of each entry in the sequenc...
Declares a class for storing a robot action.
TEntryType getType() const
#define CLASS_ID(class_name)
Access to runtime class ID for a defined class name.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::pair< mrpt::system::TTimeStamp, CObservationPtr > TTimeObservationPair
For usage with CRawlog classes.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Declares a class that represents any robot's observation.
TEntryType
The type of each entry in a rawlog.
TListObjects::iterator m_it
A structure that holds runtime class type information.
iterator(const TListObjects::iterator &it)
std::vector< mrpt::utils::CSerializablePtr > TListObjects
static iterator erase(TListObjects &lst, const iterator &it)
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
CObservationComment m_commentTexts
Comments of the rawlog.
std::vector< T1 > operator*(const std::vector< T1 > &a, const std::vector< T2 > &b)
a*b (element-wise multiplication)
const_iterator begin() const