ImuConfigMessage.h
Go to the documentation of this file.
1 
37 #ifndef LibMultiSense_ImuConfigMessage
38 #define LibMultiSense_ImuConfigMessage
39 
41 
42 namespace crl {
43 namespace multisense {
44 namespace details {
45 namespace wire {
46 namespace imu {
47 
48 class Config {
49 public:
51  static CRL_CONSTEXPR uint32_t FLAGS_ENABLED = (1<<0);
52 
53  std::string name;
54  uint32_t flags;
55  uint32_t rateTableIndex;
56  uint32_t rangeTableIndex;
57 
58  //
59  // Serialization routine
60 
61  template<class Archive>
62  void serialize(Archive& message,
63  const VersionType version)
64  {
65  message & name;
66  message & flags;
67  message & rateTableIndex;
68  message & rangeTableIndex;
69  }
70 };
71 
72 } // namespace imu
73 
74 class ImuConfig {
75 public:
78 
79  uint8_t storeSettingsInFlash; // boolean
80  uint32_t samplesPerMessage; // 0 to ignore
81  std::vector<imu::Config> configs;
82 
83  //
84  // Constructors
85 
87  ImuConfig() : storeSettingsInFlash(0), samplesPerMessage(0) {};
88 
89  //
90  // Serialization routine
91 
92  template<class Archive>
93  void serialize(Archive& message,
94  const VersionType version)
95  {
96  message & storeSettingsInFlash;
97  message & samplesPerMessage;
98  message & configs;
99  }
100 };
101 
102 }}}}; // namespaces
103 
104 #endif
void serialize(Archive &message, const VersionType version)
ImuConfig(utility::BufferStreamReader &r, VersionType v)
Definition: channel.cc:56
static CRL_CONSTEXPR IdType ID_DATA_IMU_CONFIG
Definition: Protocol.h:200
static CRL_CONSTEXPR uint32_t FLAGS_ENABLED
static CRL_CONSTEXPR VersionType VERSION
void serialize(Archive &message, const VersionType version)
#define CRL_CONSTEXPR
Definition: Portability.hh:38


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