24 #ifndef __INTERFACES_PANTILTINTERFACE_H_
25 #define __INTERFACES_PANTILTINTERFACE_H_
27 #include <interface/interface.h>
28 #include <interface/message.h>
29 #include <interface/field_iterator.h>
52 int64_t timestamp_sec;
53 int64_t timestamp_usec;
78 } PanTiltInterface_data_t;
81 PanTiltInterface_data_t *data;
91 int64_t timestamp_sec;
92 int64_t timestamp_usec;
96 StopMessage_data_t *data;
113 int64_t timestamp_sec;
114 int64_t timestamp_usec;
115 } FlushMessage_data_t;
118 FlushMessage_data_t *data;
135 int64_t timestamp_sec;
136 int64_t timestamp_usec;
137 } CalibrateMessage_data_t;
140 CalibrateMessage_data_t *data;
157 int64_t timestamp_sec;
158 int64_t timestamp_usec;
159 } ParkMessage_data_t;
162 ParkMessage_data_t *data;
179 int64_t timestamp_sec;
180 int64_t timestamp_usec;
183 } GotoMessage_data_t;
186 GotoMessage_data_t *data;
189 GotoMessage(
const float ini_pan,
const float ini_tilt);
196 void set_pan(
const float new_pan);
199 void set_tilt(
const float new_tilt);
210 int64_t timestamp_sec;
211 int64_t timestamp_usec;
216 } TimedGotoMessage_data_t;
219 TimedGotoMessage_data_t *data;
222 TimedGotoMessage(
const float ini_time_sec,
const float ini_pan,
const float ini_tilt);
232 void set_pan(
const float new_pan);
235 void set_tilt(
const float new_tilt);
246 int64_t timestamp_sec;
247 int64_t timestamp_usec;
249 } SetEnabledMessage_data_t;
252 SetEnabledMessage_data_t *data;
273 int64_t timestamp_sec;
274 int64_t timestamp_usec;
277 } SetVelocityMessage_data_t;
280 SetVelocityMessage_data_t *data;
304 int64_t timestamp_sec;
305 int64_t timestamp_usec;
310 } SetMarginMessage_data_t;
313 SetMarginMessage_data_t *data;
338 uint32_t
flags()
const;
339 void set_flags(
const uint32_t new_flags);
342 void set_pan(
const float new_pan);
345 void set_tilt(
const float new_tilt);
347 uint32_t
msgid()
const;
348 void set_msgid(
const uint32_t new_msgid);
395 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;