CamControlMessage.h
Go to the documentation of this file.
1 
40 #ifndef LibMultiSense_CamControlMessage
41 #define LibMultiSense_CamControlMessage
42 
44 
45 namespace crl {
46 namespace multisense {
47 namespace details {
48 namespace wire {
49 
50 class CamControl {
51 public:
54 
55  //
56  // Parameters representing the current camera configuration
57 
59  float gain;
60 
61  uint32_t exposure;
62  uint8_t autoExposure;
63  uint32_t autoExposureMax;
66 
72 
73  //
74  // Additions in version 2
75 
76  float stereoPostFilterStrength; // [0.0, 1.0]
77 
78  //
79  // Additions in version 3
80 
81  bool hdrEnabled;
82 
83  //
84  // Constructors
85 
87  CamControl() {};
88 
89  //
90  // Serialization routine
91 
92  template<class Archive>
93  void serialize(Archive& message,
94  const VersionType version)
95  {
96  message & framesPerSecond;
97  message & gain;
98 
99  message & exposure;
100  message & autoExposure;
101  message & autoExposureMax;
102  message & autoExposureDecay;
103  message & autoExposureThresh;
104 
105  message & whiteBalanceRed;
106  message & whiteBalanceBlue;
107  message & autoWhiteBalance;
108  message & autoWhiteBalanceDecay;
109  message & autoWhiteBalanceThresh;
110 
111  if (version >= 2)
112  message & stereoPostFilterStrength;
113  else
114  stereoPostFilterStrength = 0.5f;
115 
116  if (version >= 3)
117  message & hdrEnabled;
118  else
119  hdrEnabled = false;
120  }
121 };
122 
123 }}}}; // namespaces
124 
125 #endif
static CRL_CONSTEXPR IdType ID_CMD_CAM_CONTROL
Definition: Protocol.h:150
CamControl(utility::BufferStreamReader &r, VersionType v)
Definition: channel.cc:56
void serialize(Archive &message, const VersionType version)
static CRL_CONSTEXPR VersionType VERSION
#define CRL_CONSTEXPR
Definition: Portability.hh:38


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