Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Namespaces | Macros | Functions | Variables
CSerializable_unittest.cpp File Reference
#include <mrpt/obs.h>
#include <mrpt/io/CMemoryStream.h>
#include <gtest/gtest.h>
#include <CTraitsTest.h>
#include <sstream>
#include <mrpt/serialization/CSerializable.h>
#include <mrpt/serialization/CArchive.h>
Include dependency graph for serialization/src/CSerializable_unittest.cpp:

Go to the source code of this file.

Classes

class  MyNS::Foo
 

Namespaces

 MyNS
 [example-define-class]
 

Macros

#define MRPT_NO_WARN_BIG_HDR
 
#define TEST_CLASS_MOVE_COPY_CTORS(_classname)   template class mrpt::CTraitsTest<_classname>
 

Functions

 TEST_CLASS_MOVE_COPY_CTORS (CObservation2DRangeScan)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservation3DRangeScan)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationRGBD360)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationBearingRange)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationBatteryState)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationWirelessPower)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationRFID)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationBeaconRanges)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationComment)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationGasSensors)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationGPS)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationReflectivity)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationIMU)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationOdometry)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationRange)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationImage)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationStereoImages)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationCANBusJ1939)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationRawDAQ)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservation6DFeatures)
 
 TEST_CLASS_MOVE_COPY_CTORS (CObservationVelodyneScan)
 
 TEST_CLASS_MOVE_COPY_CTORS (CActionRobotMovement2D)
 
 TEST_CLASS_MOVE_COPY_CTORS (CActionRobotMovement3D)
 
 TEST (Observations, WriteReadToMem)
 
 TEST (Observations, WriteReadToOctectVectors)
 
template<class T >
void run_copy_tests ()
 
 TEST (Observations, CopyCtorAssignOp)
 
 IMPLEMENTS_SERIALIZABLE (Foo, CSerializable, MyNS)
 
 TEST (Serialization, CustomClassSerialize)
 

Variables

const mrpt::rtti::TRuntimeClassIdlstClasses []
 

Macro Definition Documentation

◆ MRPT_NO_WARN_BIG_HDR

#define MRPT_NO_WARN_BIG_HDR

◆ TEST_CLASS_MOVE_COPY_CTORS

#define TEST_CLASS_MOVE_COPY_CTORS (   _classname)    template class mrpt::CTraitsTest<_classname>

Function Documentation

◆ IMPLEMENTS_SERIALIZABLE()

IMPLEMENTS_SERIALIZABLE ( Foo  ,
CSerializable  ,
MyNS   
)

◆ run_copy_tests()

template<class T >
void run_copy_tests ( )

◆ TEST() [1/4]

TEST ( Observations  ,
CopyCtorAssignOp   
)

◆ TEST() [2/4]

TEST ( Observations  ,
WriteReadToMem   
)

Definition at line 74 of file serialization/src/CSerializable_unittest.cpp.

◆ TEST() [3/4]

TEST ( Observations  ,
WriteReadToOctectVectors   
)

◆ TEST() [4/4]

TEST ( Serialization  ,
CustomClassSerialize   
)

◆ TEST_CLASS_MOVE_COPY_CTORS() [1/23]

TEST_CLASS_MOVE_COPY_CTORS ( CActionRobotMovement2D  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [2/23]

TEST_CLASS_MOVE_COPY_CTORS ( CActionRobotMovement3D  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [3/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservation2DRangeScan  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [4/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservation3DRangeScan  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [5/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservation6DFeatures  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [6/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationBatteryState  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [7/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationBeaconRanges  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [8/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationBearingRange  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [9/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationCANBusJ1939  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [10/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationComment  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [11/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationGasSensors  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [12/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationGPS  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [13/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationImage  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [14/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationIMU  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [15/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationOdometry  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [16/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationRange  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [17/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationRawDAQ  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [18/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationReflectivity  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [19/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationRFID  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [20/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationRGBD360  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [21/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationStereoImages  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [22/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationVelodyneScan  )

◆ TEST_CLASS_MOVE_COPY_CTORS() [23/23]

TEST_CLASS_MOVE_COPY_CTORS ( CObservationWirelessPower  )

Variable Documentation

◆ lstClasses

const mrpt::rtti::TRuntimeClassId* lstClasses[]
mrpt::obs::CObservationBatteryState
This represents a measurement of the batteries on the robot.
Definition: CObservationBatteryState.h:33
mrpt::obs::CObservationWirelessPower
This represents a measurement of the wireless strength perceived by the robot.
Definition: CObservationWirelessPower.h:29
mrpt::obs::CObservationRawDAQ
Store raw data from a Data Acquisition (DAQ) device, such that input or output analog and digital cha...
Definition: CObservationRawDAQ.h:32
mrpt::obs::CObservation2DRangeScan
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
Definition: CObservation2DRangeScan.h:56
mrpt::obs::CObservationReflectivity
Declares a class derived from "CObservation" that encapsules a single short-range reflectivity measur...
Definition: CObservationReflectivity.h:27
mrpt::obs::CActionRobotMovement3D
Represents a probabilistic 3D (6D) movement.
Definition: CActionRobotMovement3D.h:29
mrpt::obs::CObservationComment
This "observation" is actually a placeholder for a text block with comments or additional parameters ...
Definition: CObservationComment.h:27
mrpt::obs::CActionRobotMovement2D
Represents a probabilistic 2D movement of the robot mobile base.
Definition: CActionRobotMovement2D.h:32
mrpt::obs::CObservationIMU
This class stores measurements from an Inertial Measurement Unit (IMU) (attitude estimation,...
Definition: CObservationIMU.h:108
mrpt::obs::CObservationOdometry
An observation of the current (cumulative) odometry for a wheeled robot.
Definition: CObservationOdometry.h:32
mrpt::obs::CObservationBeaconRanges
Declares a class derived from "CObservation" that represents one (or more) range measurements to labe...
Definition: CObservationBeaconRanges.h:27
mrpt::obs::CObservation3DRangeScan
Declares a class derived from "CObservation" that encapsules a 3D range scan measurement,...
Definition: CObservation3DRangeScan.h:224
mrpt::obs::CObservation6DFeatures
An observation of one or more "features" or "objects", possibly identified with a unique ID,...
Definition: CObservation6DFeatures.h:28
mrpt::obs::CObservationBearingRange
This observation represents a number of range-bearing value pairs, each one for a detected landmark,...
Definition: CObservationBearingRange.h:31
mrpt::obs::CObservationCANBusJ1939
This class stores a message from a CAN BUS with the protocol J1939.
Definition: CObservationCANBusJ1939.h:24
mrpt::obs::CObservationRange
Declares a class derived from "CObservation" that encapsules a single range measurement,...
Definition: CObservationRange.h:30
mrpt::obs::CObservationGasSensors
Declares a class derived from "CObservation" that represents a set of readings from gas sensors.
Definition: CObservationGasSensors.h:27
CLASS_ID
#define CLASS_ID(T)
Access to runtime class ID for a defined class name.
Definition: CObject.h:85
mrpt::obs::CObservationGPS
This class stores messages from GNSS or GNSS+IMU devices, from consumer-grade inexpensive GPS receive...
Definition: CObservationGPS.h:70
mrpt::obs::CObservationRFID
This represents one or more RFID tags observed by a receiver.
Definition: CObservationRFID.h:27
mrpt::obs::CObservationRGBD360
Declares a class derived from "CObservation" that encapsules an omnidirectional RGBD measurement from...
Definition: CObservationRGBD360.h:84
mrpt::obs::CObservationImage
Declares a class derived from "CObservation" that encapsules an image from a camera,...
Definition: CObservationImage.h:35
mrpt::obs::CObservationStereoImages
Observation class for either a pair of left+right or left+disparity images from a stereo camera.
Definition: CObservationStereoImages.h:41
mrpt::obs::CObservationVelodyneScan
A CObservation-derived class for RAW DATA (and optionally, point cloud) of scans from 3D Velodyne LID...
Definition: CObservationVelodyneScan.h:75



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