9#ifndef CObservationCANBusJ1939_H
10#define CObservationCANBusJ1939_H
35 m_pgn(0), m_src_address(0), m_priority(0), m_pdu_format(0), m_pdu_spec(0), m_data_length(0)
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
#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 message from a CAN BUS with the protocol J1939.
void setSensorPose(const mrpt::poses::CPose3D &) MRPT_OVERRIDE
A general method to change the sensor pose on the robot.
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...
uint8_t m_src_address
The address of the source node within this frame.
void getSensorPose(mrpt::poses::CPose3D &) const MRPT_OVERRIDE
Not used.
uint16_t m_pgn
The Parameter Group Number within this frame.
std::vector< uint8_t > m_data
The data within this frame (0-8 bytes)
uint8_t m_pdu_format
PDU Format.
uint8_t m_pdu_spec
PDU Specific.
CObservationCANBusJ1939()
Constructor.
uint8_t m_priority
The priority.
std::vector< char > m_raw_frame
The ASCII frame.
virtual ~CObservationCANBusJ1939()
Destructor.
uint8_t m_data_length
Data length
Declares a class that represents any robot's observation.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.