ImuInfoMessage.h
Go to the documentation of this file.
1 
37 #ifndef LibMultiSense_ImuInfoMessage
38 #define LibMultiSense_ImuInfoMessage
39 
40 #include <typeinfo>
41 
43 
44 namespace crl {
45 namespace multisense {
46 namespace details {
47 namespace wire {
48 namespace imu {
49 
50 class RateType {
51 public:
53 
54  float sampleRate;
56 
57  template<class Archive>
58  void serialize(Archive& message,
59  const VersionType version)
60  {
61  (void) version;
62  message & sampleRate;
63  message & bandwidthCutoff;
64  }
65 };
66 
67 class RangeType {
68 public:
70 
71  float range;
72  float resolution;
73 
74  template<class Archive>
75  void serialize(Archive& message,
76  const VersionType version)
77  {
78  (void) version;
79  message & range;
80  message & resolution;
81  }
82 };
83 
84 class Details {
85 public:
87 
88  std::string name;
89  std::string device;
90  std::string units;
91  std::vector<RateType> rates;
92  std::vector<RangeType> ranges;
93 
94  template<class Archive>
95  void serialize(Archive& message,
96  const VersionType version)
97  {
98  (void) version;
99  message & name;
100  message & device;
101  message & units;
102  message & rates;
103  message & ranges;
104  }
105 };
106 
107 } // namespace imu
108 
109 class ImuInfo {
110 public:
113 
114  //
115  // IMU details per sensor
116 
118  std::vector<imu::Details> details;
119 
120  //
121  // Constructors
122 
124  ImuInfo() {};
125 
126  //
127  // Serialization routine
128 
129  template<class Archive>
130  void serialize(Archive& message,
131  const VersionType version)
132  {
133  (void) version;
134  message & maxSamplesPerMessage;
135  message & details;
136  }
137 };
138 
139 }}}} // namespaces
140 
141 #endif
void serialize(Archive &message, const VersionType version)
ImuInfo(utility::BufferStreamReader &r, VersionType v)
void serialize(Archive &message, const VersionType version)
static CRL_CONSTEXPR IdType ID_DATA_IMU_INFO
Definition: Protocol.h:210
static CRL_CONSTEXPR VersionType VERSION
void serialize(Archive &message, const VersionType version)
Definition: channel.cc:56
void serialize(Archive &message, const VersionType version)
std::vector< imu::Details > details
#define CRL_CONSTEXPR
Definition: Portability.hh:51


multisense_lib
Author(s):
autogenerated on Sun Mar 14 2021 02:34:50