LibMultiSense
LibMultiSense Documentation
LidarSetMotorMessage.hh
Go to the documentation of this file.
1 
40 #ifndef LibMultiSense_LidarSetMotorMessage
41 #define LibMultiSense_LidarSetMotorMessage
42 
43 #include "utility/Portability.hh"
44 
45 namespace crl {
46 namespace multisense {
47 namespace details {
48 namespace wire {
49 
51 public:
54 
55  //
56  // Desired output RPM
57 
58  float rpm;
59 
60  //
61  // Contructors
62 
64  LidarSetMotor() : rpm(0.0) {};
65  LidarSetMotor(float f) : rpm(f) {};
66 
67  //
68  // Serialization routine
69 
70  template<class Archive>
71  void serialize(Archive& message,
72  const VersionType version)
73  {
74  (void) version;
75  message & rpm;
76  }
77 };
78 
79 }}}} // namespaces
80 
81 #endif
crl::multisense::details::wire::LidarSetMotor::ID
static CRL_CONSTEXPR IdType ID
Definition: LidarSetMotorMessage.hh:52
crl::multisense::details::wire::LidarSetMotor::rpm
float rpm
Definition: LidarSetMotorMessage.hh:58
Portability.hh
CRL_CONSTEXPR
#define CRL_CONSTEXPR
Definition: Portability.hh:49
crl::multisense::details::wire::LidarSetMotor::serialize
void serialize(Archive &message, const VersionType version)
Definition: LidarSetMotorMessage.hh:71
crl::multisense::details::wire::LidarSetMotor::VERSION
static CRL_CONSTEXPR VersionType VERSION
Definition: LidarSetMotorMessage.hh:53
crl::multisense::details::wire::LidarSetMotor::LidarSetMotor
LidarSetMotor(float f)
Definition: LidarSetMotorMessage.hh:65
crl
Definition: BufferStream.hh:51
crl::multisense::details::wire::LidarSetMotor::LidarSetMotor
LidarSetMotor(utility::BufferStreamReader &r, VersionType v)
Definition: LidarSetMotorMessage.hh:63
crl::multisense::details::wire::VersionType
uint16_t VersionType
Definition: Protocol.hh:137
crl::multisense::details::wire::LidarSetMotor
Definition: LidarSetMotorMessage.hh:50
crl::multisense::details::utility::BufferStreamReader
Definition: BufferStream.hh:192
multisense
Definition: MultiSenseChannel.hh:44
crl::multisense::details::wire::LidarSetMotor::LidarSetMotor
LidarSetMotor()
Definition: LidarSetMotorMessage.hh:64
crl::multisense::details::wire::IdType
uint16_t IdType
Definition: Protocol.hh:136
crl::multisense::details::wire::ID_CMD_LIDAR_SET_MOTOR
static CRL_CONSTEXPR IdType ID_CMD_LIDAR_SET_MOTOR
Definition: Protocol.hh:165