SysExternalCalibrationMessage.h
Go to the documentation of this file.
00001 
00039 #ifndef LibMultiSense_SysExternalCalibrationMessage
00040 #define LibMultiSense_SysExternalCalibrationMessage
00041 
00042 #include <algorithm>
00043 #include <string>
00044 #include "Protocol.h"
00045 #include "../utility/BufferStream.hh"
00046 
00047 namespace crl {
00048 namespace multisense {
00049 namespace details {
00050 namespace wire {
00051 
00052 class SysExternalCalibration {
00053 public:
00054     static CRL_CONSTEXPR IdType      ID      = ID_DATA_SYS_EXTERNAL_CAL;
00055     static CRL_CONSTEXPR VersionType VERSION = 1;
00056 
00057     float calibration[6];
00058 
00059     //
00060     // Constructors
00061     //
00062     SysExternalCalibration(utility::BufferStreamReader&r, VersionType v) {serialize(r,v);};
00063     SysExternalCalibration() {memset(calibration, 0, sizeof(calibration));};
00064 
00065     //
00066     // Serialization routine
00067 
00068     template<class Archive>
00069         void serialize(Archive&          message,
00070                        const VersionType version)
00071     {
00072         SER_ARRAY_1(calibration, 6);
00073     }
00074 
00075 };
00076 
00077 }}}}; // namespaces
00078 
00079 #endif


multisense_lib
Author(s):
autogenerated on Mon Oct 9 2017 03:06:21