A class for storing, saving and loading a reactive navigation log record for the CReactiveNavigationSystem class.
- See also
- CReactiveNavigationSystem, CHolonomicLogFileRecord
Definition at line 30 of file CLogFileRecord.h.
#include <mrpt/nav/reactive/CLogFileRecord.h>
|
struct | TInfoPerPTG |
| The structure used to store all relevant information about each transformation into TP-Space. More...
|
|
|
|
void | writeToStream (mrpt::utils::CStream &out, int *getVersion) const |
| Introduces a pure virtual method responsible for writing to a CStream. More...
|
|
void | readFromStream (mrpt::utils::CStream &in, int version) |
| Introduces a pure virtual method responsible for loading from a CStream This can not be used directly be users, instead use "stream >> object;" for reading it from a stream or "stream >> object_ptr;" if the class is unknown apriori. More...
|
|
A typedef for the associated smart pointer
Definition at line 32 of file CLogFileRecord.h.
mrpt::nav::CLogFileRecord::CLogFileRecord |
( |
| ) |
|
Constructor, builds an empty record.
virtual mrpt::nav::CLogFileRecord::~CLogFileRecord |
( |
| ) |
|
|
virtual |
Destructor, free all objects.
CObject* mrpt::utils::CObject::clone |
( |
| ) |
const |
|
inlineinherited |
Cloning interface for smart pointers.
Definition at line 139 of file CObject.h.
static CLogFileRecordPtr mrpt::nav::CLogFileRecord::Create |
( |
| ) |
|
|
static |
Returns a copy of the object, indepently of its class, as a smart pointer (the newly created object will exist as long as any copy of this smart pointer).
Definition at line 136 of file CObject.h.
void mrpt::nav::CLogFileRecord::freeInfoPerPTGs |
( |
| ) |
|
|
private |
Free all objects in infoPerPTGs structures (used internally).
void mrpt::nav::CLogFileRecord::operator delete |
( |
void * |
ptr | ) |
|
throw | ( | |
| ) | | |
|
inline |
void mrpt::nav::CLogFileRecord::operator delete |
( |
void * |
memory, |
|
|
void * |
ptr |
|
) |
| |
throw | ( | |
| ) | | |
|
inline |
void mrpt::nav::CLogFileRecord::operator delete |
( |
void * |
ptr, |
|
|
const std::nothrow_t & |
|
|
) |
| |
throw | ( | |
| ) | | |
|
inline |
void mrpt::nav::CLogFileRecord::operator delete[] |
( |
void * |
ptr | ) |
|
throw | ( | |
| ) | | |
|
inline |
static void* mrpt::nav::CLogFileRecord::operator new |
( |
size_t |
size, |
|
|
void * |
ptr |
|
) |
| |
|
inlinestatic |
void* mrpt::nav::CLogFileRecord::operator new |
( |
size_t |
size | ) |
|
|
inline |
void* mrpt::nav::CLogFileRecord::operator new |
( |
size_t |
size, |
|
|
const std::nothrow_t & |
|
|
) |
| |
throw | ( | |
| ) | | |
|
inline |
void* mrpt::nav::CLogFileRecord::operator new[] |
( |
size_t |
size | ) |
|
|
inline |
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly be users, instead use "stream >> object;" for reading it from a stream or "stream >> object_ptr;" if the class is unknown apriori.
- Parameters
-
in | The input binary stream where the object data must read from. |
version | The version of the object stored in the stream: use this version number in your code to know how to read the incoming data. |
- Exceptions
-
std::exception | On any error, see CStream::ReadBuffer |
- See also
- CStream
Implements mrpt::utils::CSerializable.
virtual mxArray* mrpt::utils::CSerializable::writeToMatlab |
( |
| ) |
const |
|
inlinevirtualinherited |
Introduces a pure virtual method responsible for writing to a mxArray
Matlab object, typically a MATLAB struct
whose contents are documented in each derived class.
- Returns
- A new
mxArray
(caller is responsible of memory freeing) or NULL is class does not support conversion to MATLAB.
Definition at line 79 of file CSerializable.h.
void mrpt::nav::CLogFileRecord::writeToStream |
( |
mrpt::utils::CStream & |
out, |
|
|
int * |
getVersion |
|
) |
| const |
|
protectedvirtual |
Introduces a pure virtual method responsible for writing to a CStream.
This can not be used directly be users, instead use "stream << object;" for writing it to a stream.
- Parameters
-
out | The output binary stream where object must be dumped. |
getVersion | If NULL, the object must be dumped. If not, only the version of the object dump must be returned in this pointer. This enables the versioning of objects dumping and backward compatibility with previously stored data. |
- Exceptions
-
std::exception | On any error, see CStream::WriteBuffer |
- See also
- CStream
Implements mrpt::utils::CSerializable.
float mrpt::nav::CLogFileRecord::actual_v |
float mrpt::nav::CLogFileRecord::actual_w |
The actual robot velocities, as read from sensors, in "m/sec" and "rad/sec".
Definition at line 73 of file CLogFileRecord.h.
float mrpt::nav::CLogFileRecord::estimatedExecutionPeriod |
float mrpt::nav::CLogFileRecord::executionTime |
The total computation time, excluding sensing.
Definition at line 66 of file CLogFileRecord.h.
The info for each applied PTG: must contain "nPTGs * nSecDistances" elements.
Definition at line 63 of file CLogFileRecord.h.
int32_t mrpt::nav::CLogFileRecord::navigatorBehavior |
uint32_t mrpt::nav::CLogFileRecord::nPTGs |
int32_t mrpt::nav::CLogFileRecord::nSelectedPTG |
The robot pose (from raw odometry or a localization system).
Definition at line 69 of file CLogFileRecord.h.
The timestamp of when this log was processed by the reactive algorithm (It can be INVALID_TIMESTAMP for navigation logs in MRPT <0.9.5)
Definition at line 58 of file CLogFileRecord.h.
float mrpt::nav::CLogFileRecord::v |
float mrpt::nav::CLogFileRecord::w |
The final motion command sent to robot, in "m/sec" and "rad/sec".
Definition at line 72 of file CLogFileRecord.h.
The relative location of target point in WS.
Definition at line 70 of file CLogFileRecord.h.