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  message & sampleRate;
62  message & bandwidthCutoff;
63  }
64 };
65 
66 class RangeType {
67 public:
69 
70  float range;
71  float resolution;
72 
73  template<class Archive>
74  void serialize(Archive& message,
75  const VersionType version)
76  {
77  message & range;
78  message & resolution;
79  }
80 };
81 
82 class Details {
83 public:
85 
86  std::string name;
87  std::string device;
88  std::string units;
89  std::vector<RateType> rates;
90  std::vector<RangeType> ranges;
91 
92  template<class Archive>
93  void serialize(Archive& message,
94  const VersionType version)
95  {
96  message & name;
97  message & device;
98  message & units;
99  message & rates;
100  message & ranges;
101  }
102 };
103 
104 } // namespace imu
105 
106 class ImuInfo {
107 public:
110 
111  //
112  // IMU details per sensor
113 
115  std::vector<imu::Details> details;
116 
117  //
118  // Constructors
119 
121  ImuInfo() {};
122 
123  //
124  // Serialization routine
125 
126  template<class Archive>
127  void serialize(Archive& message,
128  const VersionType version)
129  {
130  message & maxSamplesPerMessage;
131  message & details;
132  }
133 };
134 
135 }}}}; // namespaces
136 
137 #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:199
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:38


multisense_lib
Author(s):
autogenerated on Sat Apr 6 2019 02:16:46