25 using namespace
mrpt::utils;
61 TListObjects m_seqOfActObs;
66 void getCommentText(
std::
string &
t) const;
67 std::
string getCommentText() const;
68 void setCommentText( const
std::
string &
t);
92 void clearWithoutDelete();
97 void addAction(
CAction &action );
112 void addActionsMemoryReference(
const CActionCollectionPtr &action );
117 void addObservationsMemoryReference(
const CSensoryFramePtr &observations );
122 void addObservationMemoryReference(
const CObservationPtr &observation );
129 bool loadFromRawLogFile(
const std::string &fileName );
135 bool saveToRawLogFile(
const std::string &fileName )
const;
143 TEntryType getType(
size_t index )
const;
148 void remove(
size_t index );
153 void remove(
size_t first_index,
size_t last_index );
160 CActionCollectionPtr getAsAction(
size_t index )
const;
167 CSensoryFramePtr getAsObservations(
size_t index )
const;
181 CObservationPtr getAsObservation(
size_t index )
const;
203 inline iterator& operator ++() { m_it++;
return *
this; }
205 inline iterator& operator --() { m_it--;
return *
this; }
210 return etObservation;
212 return etSensoryFrame;
214 return etActionCollection;
244 return etObservation;
246 return etSensoryFrame;
248 return etActionCollection;
266 void findObservationsByClassInRange(
270 TListTimeAndObservations &out_found,
271 size_t guess_start_position = 0
289 static bool readActionObservationPair(
291 CActionCollectionPtr &action,
292 CSensoryFramePtr &observations,
293 size_t & rawlogEntry );
307 static bool getActionObservationPairOrObservation(
309 CActionCollectionPtr &action,
310 CSensoryFramePtr &observations,
311 CObservationPtr &observation,
312 size_t & rawlogEntry );
321 bool getActionObservationPair(
322 CActionCollectionPtr &action,
323 CSensoryFramePtr &observations,
324 size_t &rawlogEntry )
const;
336 static std::string detectImagesDirectory(
const std::string &rawlogFilename);
const_iterator(const TListObjects::const_iterator &it)
bool operator!=(const CArray< T, N > &x, const CArray< T, N > &y)
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1...
The virtual base class which provides a unified interface for all persistent objects in MRPT...
EIGEN_STRONG_INLINE const AdjointReturnType t() const
Transpose.
TEntryType getType() const
std::vector< CSerializablePtr > TListObjects
TListObjects::const_iterator m_it
const Scalar * const_iterator
std::multimap< mrpt::system::TTimeStamp, CObservationPtr > TListTimeAndObservations
For usage with CRawlog classes.
const_iterator end() const
Declares a class for storing a collection of robot actions.
std::pair< mrpt::system::TTimeStamp, CObservationPtr > TTimeObservationPair
For usage with CRawlog classes.
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...
TEntryType
The type of each entry in a rawlog.
Declares a class that represents any robot's observation.
bool operator==(const CArray< T, N > &x, const CArray< T, N > &y)
TEntryType getType() const
iterator(const TListObjects::iterator &it)
struct BASE_IMPEXP CSerializablePtr
iterator erase(const iterator &it)
#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.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
A normal iterator, plus the extra method "getType" to determine the type of each entry in the sequenc...
size_t size(const MATRIXLIKE &m, int dim)
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
const_iterator begin() const
virtual ~const_iterator()
TListObjects::iterator m_it
A normal iterator, plus the extra method "getType" to determine the type of each entry in the sequenc...
A structure that holds runtime class type information.
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This class stores a rawlog (robotic datasets) in one of two possible formats:
static iterator erase(TListObjects &lst, const iterator &it)
std::vector< T1 > operator*(const std::vector< T1 > &a, const std::vector< T2 > &b)
a*b (element-wise multiplication)
Declares a class for storing a robot action.