44 n = m_raw_frame.size();
82 m_raw_frame.resize(
n);
87 m_raw_frame[i] = char(aux);
105 o <<
"Priority: " <<
format(
"0x%02X",m_priority) <<
" [Dec: " << int(m_priority) <<
"]" << endl;
106 o <<
"Parameter Group Number (PGN): " <<
format(
"0x%04X",m_pgn) <<
" [Dec: " << int(m_pgn) <<
"]" << endl;
107 o <<
"PDU Format: " <<
format(
"0x%02X",m_pdu_format) <<
" [Dec: " << int(m_pdu_format) <<
"]" << endl;
108 o <<
"PDU Spec: " <<
format(
"0x%02X",m_pdu_spec) <<
" [Dec: " << int(m_pdu_spec) <<
"]" << endl;
109 o <<
"Source address: " <<
format(
"0x%02X",m_src_address) <<
" [Dec: " << int(m_src_address) <<
"]" << endl;
110 o <<
"Data length: " <<
format(
"0x%02X",m_data_length) <<
" [Dec: " << int(m_data_length) <<
"]" << endl;
112 for(
uint8_t k = 0; k < m_data.size(); ++k)
113 o <<
format(
"0x%02X",m_data[k]) <<
" ";
115 for(
uint8_t k = 0; k < m_data.size(); ++k)
116 o <<
int(m_data[k]) <<
" ";
120 for(
uint8_t k = 0; k < m_raw_frame.size(); ++k)
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
This class stores a message from a CAN BUS with the protocol J1939.
IMPLEMENTS_SERIALIZABLE(CLogFileRecord_FullEval, CHolonomicLogFileRecord, mrpt::nav) IMPLEMENTS_SERIALIZABLE(CHolonomicFullEval
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
void getDescriptionAsText(std::ostream &o) const MRPT_OVERRIDE
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This namespace contains representation of robot actions and observations.
std::string BASE_IMPEXP format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Declares a class that represents any robot's observation.
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
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...
unsigned __int32 uint32_t
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...