Main MRPT website > C++ reference for MRPT 1.9.9
CObservationCANBusJ1939.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef CObservationCANBusJ1939_H
10 #define CObservationCANBusJ1939_H
11 
13 #include <mrpt/obs/CObservation.h>
14 
15 namespace mrpt
16 {
17 namespace obs
18 {
19 /** This class stores a message from a CAN BUS with the protocol J1939
20  *
21  * \sa CObservation
22  * \ingroup mrpt_obs_grp
23  */
25 {
27 
28  public:
29  /** Constructor.
30  */
32  : m_pgn(0),
33  m_src_address(0),
34  m_priority(0),
35  m_pdu_format(0),
36  m_pdu_spec(0),
37  m_data_length(0)
38  {
39  }
40 
41  /** Destructor
42  */
44  /** The Parameter Group Number within this frame */
46 
47  /** The address of the source node within this frame */
49 
50  /** The priority */
52 
53  /** PDU Format */
55 
56  /** PDU Specific */
58 
59  /** Data length */
61 
62  /** The data within this frame (0-8 bytes) */
63  std::vector<uint8_t> m_data;
64 
65  /** The ASCII frame */
66  std::vector<char> m_raw_frame;
67 
68  /** Not used */
69  void getSensorPose(mrpt::poses::CPose3D&) const override {}
70  void setSensorPose(const mrpt::poses::CPose3D&) override {}
71  // See base class docs
72  void getDescriptionAsText(std::ostream& o) const override;
73 
74 }; // End of class def.
75 
76 } // End of namespace
77 } // End of namespace
78 
79 #endif
mrpt::obs::CObservationCANBusJ1939::getSensorPose
void getSensorPose(mrpt::poses::CPose3D &) const override
Not used.
Definition: CObservationCANBusJ1939.h:69
mrpt::obs::CObservationCANBusJ1939::m_data
std::vector< uint8_t > m_data
The data within this frame (0-8 bytes)
Definition: CObservationCANBusJ1939.h:63
uint16_t
unsigned __int16 uint16_t
Definition: rptypes.h:44
mrpt::obs::CObservationCANBusJ1939::m_priority
uint8_t m_priority
The priority.
Definition: CObservationCANBusJ1939.h:51
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
uint8_t
unsigned char uint8_t
Definition: rptypes.h:41
mrpt::obs::CObservationCANBusJ1939::CObservationCANBusJ1939
CObservationCANBusJ1939()
Constructor.
Definition: CObservationCANBusJ1939.h:31
mrpt::obs::CObservationCANBusJ1939::setSensorPose
void setSensorPose(const mrpt::poses::CPose3D &) override
A general method to change the sensor pose on the robot.
Definition: CObservationCANBusJ1939.h:70
mrpt::poses::CPose3D
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Definition: CPose3D.h:88
mrpt::obs::CObservationCANBusJ1939::m_data_length
uint8_t m_data_length
Data length
Definition: CObservationCANBusJ1939.h:60
mrpt::obs::CObservationCANBusJ1939
This class stores a message from a CAN BUS with the protocol J1939.
Definition: CObservationCANBusJ1939.h:24
mrpt::obs::CObservationCANBusJ1939::m_src_address
uint8_t m_src_address
The address of the source node within this frame.
Definition: CObservationCANBusJ1939.h:48
mrpt::obs::CObservationCANBusJ1939::m_raw_frame
std::vector< char > m_raw_frame
The ASCII frame.
Definition: CObservationCANBusJ1939.h:66
CObservation.h
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition: CSerializable.h:102
mrpt::obs::CObservationCANBusJ1939::getDescriptionAsText
void getDescriptionAsText(std::ostream &o) const override
Build a detailed, multi-line textual description of the observation contents and dump it to the outpu...
Definition: CObservationCANBusJ1939.cpp:79
mrpt::obs::CObservation
Declares a class that represents any robot's observation.
Definition: CObservation.h:43
mrpt::obs::CObservationCANBusJ1939::~CObservationCANBusJ1939
virtual ~CObservationCANBusJ1939()
Destructor.
Definition: CObservationCANBusJ1939.h:43
mrpt::obs::CObservationCANBusJ1939::m_pgn
uint16_t m_pgn
The Parameter Group Number within this frame.
Definition: CObservationCANBusJ1939.h:45
CSerializable.h
mrpt::obs::CObservationCANBusJ1939::m_pdu_spec
uint8_t m_pdu_spec
PDU Specific.
Definition: CObservationCANBusJ1939.h:57
mrpt::obs::CObservationCANBusJ1939::m_pdu_format
uint8_t m_pdu_format
PDU Format.
Definition: CObservationCANBusJ1939.h:54



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST