This class stores a message from a CAN BUS with the protocol J1939.
- See also
- CObservation
Definition at line 26 of file CObservationCANBusJ1939.h.
#include <mrpt/slam/CObservationCANBusJ1939.h>
|
| void | swap (CObservation &o) |
| | Swap with another observation, ONLY the data defined here in the base class CObservation. It's protected since it'll be only called from child classes that should know what else to swap appart from these common data. 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...
|
| |
| mrpt::slam::CObservationCANBusJ1939::CObservationCANBusJ1939 |
( |
| ) |
|
|
inline |
| virtual mrpt::slam::CObservationCANBusJ1939::~CObservationCANBusJ1939 |
( |
| ) |
|
|
inlinevirtual |
| CObject* mrpt::utils::CObject::clone |
( |
| ) |
const |
|
inlineinherited |
Cloning interface for smart pointers.
Definition at line 139 of file CObject.h.
| static CObservationCANBusJ1939Ptr mrpt::slam::CObservationCANBusJ1939::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::slam::CObservationCANBusJ1939::getSensorPose |
( |
CPose3D & |
| ) |
const |
|
inlinevirtual |
A general method to retrieve the sensor pose on the robot.
Note that most sensors will return a full (6D) CPose3D, but see the derived classes for more details or special cases.
- See also
- setSensorPose
template<class METRICMAP >
| bool mrpt::slam::CObservation::insertObservationInto |
( |
METRICMAP * |
theMap, |
|
|
const CPose3D * |
robotPose = NULL |
|
) |
| const |
|
inlineinherited |
This method is equivalent to:
- Parameters
-
| theMap | The map where this observation is to be inserted: the map will be updated. |
| robotPose | The pose of the robot base for this observation, relative to the target metric map. Set to NULL (default) to use (0,0,0deg) |
- Returns
- Returns true if the map has been updated, or false if this observations has nothing to do with a metric map (for example, a sound observation).
- See also
- CMetricMap, CMetricMap::insertObservation
Definition at line 93 of file CObservation.h.
| virtual void mrpt::slam::CObservation::load |
( |
| ) |
const |
|
inlinevirtualinherited |
Makes sure all images and other fields which may be externally stored are loaded in memory.
Note that for all CImages, calling load() is not required since the images will be automatically loaded upon first access, so load() shouldn't be needed to be called in normal cases by the user. If all the data were alredy loaded or this object has no externally stored data fields, calling this method has no effects.
- See also
- unload
Reimplemented in mrpt::slam::CObservation3DRangeScan.
Definition at line 130 of file CObservation.h.
| void mrpt::slam::CObservationCANBusJ1939::operator delete |
( |
void * |
memory, |
|
|
void * |
ptr |
|
) |
| |
| throw | ( | |
| ) | | |
|
inline |
| void mrpt::slam::CObservationCANBusJ1939::operator delete |
( |
void * |
ptr | ) |
|
| throw | ( | |
| ) | | |
|
inline |
| void mrpt::slam::CObservationCANBusJ1939::operator delete |
( |
void * |
ptr, |
|
|
const std::nothrow_t & |
|
|
) |
| |
| throw | ( | |
| ) | | |
|
inline |
| void mrpt::slam::CObservationCANBusJ1939::operator delete[] |
( |
void * |
ptr | ) |
|
| throw | ( | |
| ) | | |
|
inline |
| void* mrpt::slam::CObservationCANBusJ1939::operator new |
( |
size_t |
size, |
|
|
const std::nothrow_t & |
|
|
) |
| |
| throw | ( | |
| ) | | |
|
inline |
| static void* mrpt::slam::CObservationCANBusJ1939::operator new |
( |
size_t |
size, |
|
|
void * |
ptr |
|
) |
| |
|
inlinestatic |
| void* mrpt::slam::CObservationCANBusJ1939::operator new |
( |
size_t |
size | ) |
|
|
inline |
| void* mrpt::slam::CObservationCANBusJ1939::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
-
- See also
- CStream
Implements mrpt::utils::CSerializable.
| void mrpt::slam::CObservationCANBusJ1939::setSensorPose |
( |
const CPose3D & |
newSensorPose | ) |
|
|
inlinevirtual |
A general method to change the sensor pose on the robot.
Note that most sensors will use the full (6D) CPose3D, but see the derived classes for more details or special cases.
- See also
- getSensorPose
Swap with another observation, ONLY the data defined here in the base class CObservation. It's protected since it'll be only called from child classes that should know what else to swap appart from these common data.
| virtual void mrpt::slam::CObservation::unload |
( |
| ) |
|
|
inlinevirtualinherited |
| void mrpt::slam::CObservationCANBusJ1939::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
-
- See also
- CStream
Implements mrpt::utils::CSerializable.
| std::vector<uint8_t> mrpt::slam::CObservationCANBusJ1939::m_data |
| uint8_t mrpt::slam::CObservationCANBusJ1939::m_data_length |
| uint8_t mrpt::slam::CObservationCANBusJ1939::m_pdu_format |
| uint8_t mrpt::slam::CObservationCANBusJ1939::m_pdu_spec |
| uint16_t mrpt::slam::CObservationCANBusJ1939::m_pgn |
| uint8_t mrpt::slam::CObservationCANBusJ1939::m_priority |
| std::vector<char> mrpt::slam::CObservationCANBusJ1939::m_raw_frame |
| uint8_t mrpt::slam::CObservationCANBusJ1939::m_src_address |
| std::string mrpt::slam::CObservation::sensorLabel |
|
inherited |
An arbitrary label that can be used to identify the sensor.
Definition at line 71 of file CObservation.h.