59 TListObjects m_seqOfActObs;
64 void getCommentText(
std::
string &
t) const;
65 std::
string getCommentText() const;
66 void setCommentText( const
std::
string &
t);
67 void getCommentTextAsConfigFile(
mrpt::utils::CConfigFileMemory &memCfg ) const;
90 void clearWithoutDelete();
95 void addAction(
CAction &action );
110 void addActionsMemoryReference(
const CActionCollectionPtr &action );
115 void addObservationsMemoryReference(
const CSensoryFramePtr &observations );
120 void addObservationMemoryReference(
const CObservationPtr &observation );
127 bool loadFromRawLogFile(
const std::string &fileName );
133 bool saveToRawLogFile(
const std::string &fileName )
const;
141 TEntryType getType(
size_t index )
const;
146 void remove(
size_t index );
151 void remove(
size_t first_index,
size_t last_index );
158 CActionCollectionPtr getAsAction(
size_t index )
const;
165 CSensoryFramePtr getAsObservations(
size_t index )
const;
179 CObservationPtr getAsObservation(
size_t index )
const;
201 inline iterator& operator ++() { m_it++;
return *
this; }
203 inline iterator& operator --() { m_it--;
return *
this; }
208 return etObservation;
210 return etSensoryFrame;
212 return etActionCollection;
242 return etObservation;
244 return etSensoryFrame;
246 return etActionCollection;
264 void findObservationsByClassInRange(
268 TListTimeAndObservations &out_found,
269 size_t guess_start_position = 0
287 static bool readActionObservationPair(
289 CActionCollectionPtr &action,
290 CSensoryFramePtr &observations,
291 size_t & rawlogEntry );
305 static bool getActionObservationPairOrObservation(
307 CActionCollectionPtr &action,
308 CSensoryFramePtr &observations,
309 CObservationPtr &observation,
310 size_t & rawlogEntry );
319 bool getActionObservationPair(
320 CActionCollectionPtr &action,
321 CSensoryFramePtr &observations,
322 size_t &rawlogEntry )
const;
334 static std::string detectImagesDirectory(
const std::string &rawlogFilename);
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...
virtual ~const_iterator()
The virtual base class which provides a unified interface for all persistent objects in MRPT...
EIGEN_STRONG_INLINE const AdjointReturnType t() const
Transpose.
iterator erase(const iterator &it)
A normal iterator, plus the extra method "getType" to determine the type of each entry in the sequenc...
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
The type of each entry in a rawlog.
Declares a class for storing a collection of robot actions.
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...
class BASE_IMPEXP CSerializable
bool operator==(const CArray< T, N > &x, const CArray< T, N > &y)
This class stores a rawlog (robotic datasets) in one of two possible formats:
TEntryType getType() const
Declares a class for storing a "sensory frame", a set of "observations" taken by the robot approximat...
A normal iterator, plus the extra method "getType" to determine the type of each entry in the sequenc...
struct BASE_IMPEXP CSerializablePtr
Declares a class for storing a robot action.
#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...
size_t size(const MATRIXLIKE &m, int dim)
Declares a class that represents any robot's observation.
TListObjects::iterator m_it
const_iterator end() const
TEntryType getType() const
const_iterator begin() const
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_)
std::vector< T1 > operator*(const std::vector< T1 > &a, const std::vector< T2 > &b)
a*b (element-wise multiplication)