common_state_callbacks.h
Go to the documentation of this file.
1 
30 #ifndef BEBOP_AUTONOMY_AUTOGENERATED_common_STATE_CALLBACKS_H
31 #define BEBOP_AUTONOMY_AUTOGENERATED_common_STATE_CALLBACKS_H
32 
33 extern "C"
34 {
35  #include "libARSAL/ARSAL.h"
36  #include "libARController/ARController.h"
37 }
38 
40 #include "bebop_driver/BebopArdrone3Config.h"
41 
42 #include "bebop_msgs/CommonCommonStateAllStatesChanged.h"
43 #include "bebop_msgs/CommonCommonStateBatteryStateChanged.h"
44 #include "bebop_msgs/CommonCommonStateMassStorageStateListChanged.h"
45 #include "bebop_msgs/CommonCommonStateMassStorageInfoStateListChanged.h"
46 #include "bebop_msgs/CommonCommonStateCurrentDateChanged.h"
47 #include "bebop_msgs/CommonCommonStateCurrentTimeChanged.h"
48 #include "bebop_msgs/CommonCommonStateMassStorageInfoRemainingListChanged.h"
49 #include "bebop_msgs/CommonCommonStateWifiSignalChanged.h"
50 #include "bebop_msgs/CommonCommonStateSensorsStatesListChanged.h"
51 #include "bebop_msgs/CommonCommonStateProductModel.h"
52 #include "bebop_msgs/CommonCommonStateCountryListKnown.h"
53 #include "bebop_msgs/CommonCommonStateDeprecatedMassStorageContentChanged.h"
54 #include "bebop_msgs/CommonCommonStateMassStorageContent.h"
55 #include "bebop_msgs/CommonCommonStateMassStorageContentForCurrentRun.h"
56 #include "bebop_msgs/CommonCommonStateVideoRecordingTimestamp.h"
57 #include "bebop_msgs/CommonOverHeatStateOverHeatChanged.h"
58 #include "bebop_msgs/CommonOverHeatStateOverHeatRegulationChanged.h"
59 #include "bebop_msgs/CommonMavlinkStateMavlinkFilePlayingStateChanged.h"
60 #include "bebop_msgs/CommonMavlinkStateMavlinkPlayErrorStateChanged.h"
61 #include "bebop_msgs/CommonMavlinkStateMissionItemExecuted.h"
62 #include "bebop_msgs/CommonCalibrationStateMagnetoCalibrationStateChanged.h"
63 #include "bebop_msgs/CommonCalibrationStateMagnetoCalibrationRequiredState.h"
64 #include "bebop_msgs/CommonCalibrationStateMagnetoCalibrationAxisToCalibrateChanged.h"
65 #include "bebop_msgs/CommonCalibrationStateMagnetoCalibrationStartedChanged.h"
66 #include "bebop_msgs/CommonCalibrationStatePitotCalibrationStateChanged.h"
67 #include "bebop_msgs/CommonFlightPlanStateAvailabilityStateChanged.h"
68 #include "bebop_msgs/CommonFlightPlanStateComponentStateListChanged.h"
69 #include "bebop_msgs/CommonFlightPlanStateLockStateChanged.h"
70 #include "bebop_msgs/CommonARLibsVersionsStateControllerLibARCommandsVersion.h"
71 #include "bebop_msgs/CommonARLibsVersionsStateSkyControllerLibARCommandsVersion.h"
72 #include "bebop_msgs/CommonARLibsVersionsStateDeviceLibARCommandsVersion.h"
73 #include "bebop_msgs/CommonAudioStateAudioStreamingRunning.h"
74 #include "bebop_msgs/CommonHeadlightsStateintensityChanged.h"
75 #include "bebop_msgs/CommonAnimationsStateList.h"
76 #include "bebop_msgs/CommonAccessoryStateSupportedAccessoriesListChanged.h"
77 #include "bebop_msgs/CommonAccessoryStateAccessoryConfigChanged.h"
78 #include "bebop_msgs/CommonAccessoryStateAccessoryConfigModificationEnabled.h"
79 #include "bebop_msgs/CommonChargerStateMaxChargeRateChanged.h"
80 #include "bebop_msgs/CommonChargerStateCurrentChargeStateChanged.h"
81 #include "bebop_msgs/CommonChargerStateLastChargeRateChanged.h"
82 #include "bebop_msgs/CommonChargerStateChargingInfo.h"
83 #include "bebop_msgs/CommonRunStateRunIdChanged.h"
84 
85 namespace bebop_driver
86 {
87 namespace cb
88 {
89 
90 
91 // All states have been sent.\n\n **Please note that you should not care about this event if you are using the libARController API as this library is handling the connection process for you.**
93 {
94 private:
95  ::bebop_msgs::CommonCommonStateAllStatesChanged::Ptr msg_ptr;
96 
97 public:
98 
99  CommonCommonStateAllStatesChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
100  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_ALLSTATESCHANGED)
101  {
102  if (priv_nh.getParam("states/enable_commonstate_allstateschanged", pub_enabled_) && pub_enabled_)
103  {
104  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
105  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateAllStatesChanged>(topic, 10, true);
106  } // pub_enabled_ is false
107  }
108 
109  ::bebop_msgs::CommonCommonStateAllStatesChanged::ConstPtr GetDataCstPtr() const
110  {
111  ::boost::lock_guard<boost::mutex> lock(mutex_);
112  return msg_ptr;
113  }
114 
115  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
116  {
117  if (arguments == NULL)
118  {
119  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateAllStatesChanged::Update() arguments is NULL");
120  return;
121  }
122 
123  ::boost::lock_guard<boost::mutex> lock(mutex_);
124  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateAllStatesChanged());
125  msg_ptr->header.stamp = t;
126  msg_ptr->header.frame_id = "base_link";
127 
128 
129  if (pub_enabled_) ros_pub_.publish(msg_ptr);
130  }
131 
132 }; // CommonCommonStateAllStatesChanged
133 
134 
135 // Battery state.
137 {
138 private:
139  ::bebop_msgs::CommonCommonStateBatteryStateChanged::Ptr msg_ptr;
140 
141 public:
142 
143  CommonCommonStateBatteryStateChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
144  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_BATTERYSTATECHANGED)
145  {
146  if (priv_nh.getParam("states/enable_commonstate_batterystatechanged", pub_enabled_) && pub_enabled_)
147  {
148  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
149  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateBatteryStateChanged>(topic, 10, true);
150  } // pub_enabled_ is false
151  }
152 
153  ::bebop_msgs::CommonCommonStateBatteryStateChanged::ConstPtr GetDataCstPtr() const
154  {
155  ::boost::lock_guard<boost::mutex> lock(mutex_);
156  return msg_ptr;
157  }
158 
159  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
160  {
161  if (arguments == NULL)
162  {
163  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateBatteryStateChanged::Update() arguments is NULL");
164  return;
165  }
166 
167  ::boost::lock_guard<boost::mutex> lock(mutex_);
168  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateBatteryStateChanged());
169  msg_ptr->header.stamp = t;
170  msg_ptr->header.frame_id = "base_link";
171 
172 
173  arg = NULL;
174  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_BATTERYSTATECHANGED_PERCENT, arg);
175  if (arg)
176  {
177  msg_ptr->percent = arg->value.U8;
178  }
179 
180  if (pub_enabled_) ros_pub_.publish(msg_ptr);
181  }
182 
183 }; // CommonCommonStateBatteryStateChanged
184 
185 
186 // Mass storage state list.
188 {
189 private:
190  ::bebop_msgs::CommonCommonStateMassStorageStateListChanged::Ptr msg_ptr;
191 
192 public:
193 
194  CommonCommonStateMassStorageStateListChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
195  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGESTATELISTCHANGED)
196  {
197  if (priv_nh.getParam("states/enable_commonstate_massstoragestatelistchanged", pub_enabled_) && pub_enabled_)
198  {
199  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
200  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateMassStorageStateListChanged>(topic, 10, true);
201  } // pub_enabled_ is false
202  }
203 
204  ::bebop_msgs::CommonCommonStateMassStorageStateListChanged::ConstPtr GetDataCstPtr() const
205  {
206  ::boost::lock_guard<boost::mutex> lock(mutex_);
207  return msg_ptr;
208  }
209 
210  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
211  {
212  if (arguments == NULL)
213  {
214  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateMassStorageStateListChanged::Update() arguments is NULL");
215  return;
216  }
217 
218  ::boost::lock_guard<boost::mutex> lock(mutex_);
219  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateMassStorageStateListChanged());
220  msg_ptr->header.stamp = t;
221  msg_ptr->header.frame_id = "base_link";
222 
223 
224  arg = NULL;
225  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGESTATELISTCHANGED_MASS_STORAGE_ID, arg);
226  if (arg)
227  {
228  msg_ptr->mass_storage_id = arg->value.U8;
229  }
230 
231  arg = NULL;
232  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGESTATELISTCHANGED_NAME, arg);
233  if (arg)
234  {
235  msg_ptr->name = arg->value.String;
236  }
237 
238  if (pub_enabled_) ros_pub_.publish(msg_ptr);
239  }
240 
241 }; // CommonCommonStateMassStorageStateListChanged
242 
243 
244 // Mass storage info state list.
246 {
247 private:
248  ::bebop_msgs::CommonCommonStateMassStorageInfoStateListChanged::Ptr msg_ptr;
249 
250 public:
251 
253  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOSTATELISTCHANGED)
254  {
255  if (priv_nh.getParam("states/enable_commonstate_massstorageinfostatelistchanged", pub_enabled_) && pub_enabled_)
256  {
257  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
258  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateMassStorageInfoStateListChanged>(topic, 10, true);
259  } // pub_enabled_ is false
260  }
261 
262  ::bebop_msgs::CommonCommonStateMassStorageInfoStateListChanged::ConstPtr GetDataCstPtr() const
263  {
264  ::boost::lock_guard<boost::mutex> lock(mutex_);
265  return msg_ptr;
266  }
267 
268  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
269  {
270  if (arguments == NULL)
271  {
272  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateMassStorageInfoStateListChanged::Update() arguments is NULL");
273  return;
274  }
275 
276  ::boost::lock_guard<boost::mutex> lock(mutex_);
277  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateMassStorageInfoStateListChanged());
278  msg_ptr->header.stamp = t;
279  msg_ptr->header.frame_id = "base_link";
280 
281 
282  arg = NULL;
283  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOSTATELISTCHANGED_MASS_STORAGE_ID, arg);
284  if (arg)
285  {
286  msg_ptr->mass_storage_id = arg->value.U8;
287  }
288 
289  arg = NULL;
290  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOSTATELISTCHANGED_SIZE, arg);
291  if (arg)
292  {
293  msg_ptr->size = arg->value.U32;
294  }
295 
296  arg = NULL;
297  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOSTATELISTCHANGED_USED_SIZE, arg);
298  if (arg)
299  {
300  msg_ptr->used_size = arg->value.U32;
301  }
302 
303  arg = NULL;
304  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOSTATELISTCHANGED_PLUGGED, arg);
305  if (arg)
306  {
307  msg_ptr->plugged = arg->value.U8;
308  }
309 
310  arg = NULL;
311  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOSTATELISTCHANGED_FULL, arg);
312  if (arg)
313  {
314  msg_ptr->full = arg->value.U8;
315  }
316 
317  arg = NULL;
318  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOSTATELISTCHANGED_INTERNAL, arg);
319  if (arg)
320  {
321  msg_ptr->internal = arg->value.U8;
322  }
323 
324  if (pub_enabled_) ros_pub_.publish(msg_ptr);
325  }
326 
327 }; // CommonCommonStateMassStorageInfoStateListChanged
328 
329 
330 // Date changed.\n Corresponds to the latest date set on the drone.\n\n **Please note that you should not care about this event if you are using the libARController API as this library is handling the connection process for you.**
332 {
333 private:
334  ::bebop_msgs::CommonCommonStateCurrentDateChanged::Ptr msg_ptr;
335 
336 public:
337 
338  CommonCommonStateCurrentDateChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
339  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_CURRENTDATECHANGED)
340  {
341  if (priv_nh.getParam("states/enable_commonstate_currentdatechanged", pub_enabled_) && pub_enabled_)
342  {
343  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
344  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateCurrentDateChanged>(topic, 10, true);
345  } // pub_enabled_ is false
346  }
347 
348  ::bebop_msgs::CommonCommonStateCurrentDateChanged::ConstPtr GetDataCstPtr() const
349  {
350  ::boost::lock_guard<boost::mutex> lock(mutex_);
351  return msg_ptr;
352  }
353 
354  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
355  {
356  if (arguments == NULL)
357  {
358  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateCurrentDateChanged::Update() arguments is NULL");
359  return;
360  }
361 
362  ::boost::lock_guard<boost::mutex> lock(mutex_);
363  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateCurrentDateChanged());
364  msg_ptr->header.stamp = t;
365  msg_ptr->header.frame_id = "base_link";
366 
367 
368  arg = NULL;
369  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_CURRENTDATECHANGED_DATE, arg);
370  if (arg)
371  {
372  msg_ptr->date = arg->value.String;
373  }
374 
375  if (pub_enabled_) ros_pub_.publish(msg_ptr);
376  }
377 
378 }; // CommonCommonStateCurrentDateChanged
379 
380 
381 // Time changed.\n Corresponds to the latest time set on the drone.\n\n **Please note that you should not care about this event if you are using the libARController API as this library is handling the connection process for you.**
383 {
384 private:
385  ::bebop_msgs::CommonCommonStateCurrentTimeChanged::Ptr msg_ptr;
386 
387 public:
388 
389  CommonCommonStateCurrentTimeChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
390  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_CURRENTTIMECHANGED)
391  {
392  if (priv_nh.getParam("states/enable_commonstate_currenttimechanged", pub_enabled_) && pub_enabled_)
393  {
394  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
395  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateCurrentTimeChanged>(topic, 10, true);
396  } // pub_enabled_ is false
397  }
398 
399  ::bebop_msgs::CommonCommonStateCurrentTimeChanged::ConstPtr GetDataCstPtr() const
400  {
401  ::boost::lock_guard<boost::mutex> lock(mutex_);
402  return msg_ptr;
403  }
404 
405  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
406  {
407  if (arguments == NULL)
408  {
409  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateCurrentTimeChanged::Update() arguments is NULL");
410  return;
411  }
412 
413  ::boost::lock_guard<boost::mutex> lock(mutex_);
414  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateCurrentTimeChanged());
415  msg_ptr->header.stamp = t;
416  msg_ptr->header.frame_id = "base_link";
417 
418 
419  arg = NULL;
420  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_CURRENTTIMECHANGED_TIME, arg);
421  if (arg)
422  {
423  msg_ptr->time = arg->value.String;
424  }
425 
426  if (pub_enabled_) ros_pub_.publish(msg_ptr);
427  }
428 
429 }; // CommonCommonStateCurrentTimeChanged
430 
431 
432 // Mass storage remaining data list.
434 {
435 private:
436  ::bebop_msgs::CommonCommonStateMassStorageInfoRemainingListChanged::Ptr msg_ptr;
437 
438 public:
439 
441  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOREMAININGLISTCHANGED)
442  {
443  if (priv_nh.getParam("states/enable_commonstate_massstorageinforemaininglistchanged", pub_enabled_) && pub_enabled_)
444  {
445  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
446  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateMassStorageInfoRemainingListChanged>(topic, 10, true);
447  } // pub_enabled_ is false
448  }
449 
450  ::bebop_msgs::CommonCommonStateMassStorageInfoRemainingListChanged::ConstPtr GetDataCstPtr() const
451  {
452  ::boost::lock_guard<boost::mutex> lock(mutex_);
453  return msg_ptr;
454  }
455 
456  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
457  {
458  if (arguments == NULL)
459  {
460  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateMassStorageInfoRemainingListChanged::Update() arguments is NULL");
461  return;
462  }
463 
464  ::boost::lock_guard<boost::mutex> lock(mutex_);
465  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateMassStorageInfoRemainingListChanged());
466  msg_ptr->header.stamp = t;
467  msg_ptr->header.frame_id = "base_link";
468 
469 
470  arg = NULL;
471  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOREMAININGLISTCHANGED_FREE_SPACE, arg);
472  if (arg)
473  {
474  msg_ptr->free_space = arg->value.U32;
475  }
476 
477  arg = NULL;
478  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOREMAININGLISTCHANGED_REC_TIME, arg);
479  if (arg)
480  {
481  msg_ptr->rec_time = arg->value.U16;
482  }
483 
484  arg = NULL;
485  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGEINFOREMAININGLISTCHANGED_PHOTO_REMAINING, arg);
486  if (arg)
487  {
488  msg_ptr->photo_remaining = arg->value.U32;
489  }
490 
491  if (pub_enabled_) ros_pub_.publish(msg_ptr);
492  }
493 
494 }; // CommonCommonStateMassStorageInfoRemainingListChanged
495 
496 
497 // Rssi (Wifi Signal between controller and product) changed.
499 {
500 private:
501  ::bebop_msgs::CommonCommonStateWifiSignalChanged::Ptr msg_ptr;
502 
503 public:
504 
505  CommonCommonStateWifiSignalChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
506  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_WIFISIGNALCHANGED)
507  {
508  if (priv_nh.getParam("states/enable_commonstate_wifisignalchanged", pub_enabled_) && pub_enabled_)
509  {
510  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
511  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateWifiSignalChanged>(topic, 10, true);
512  } // pub_enabled_ is false
513  }
514 
515  ::bebop_msgs::CommonCommonStateWifiSignalChanged::ConstPtr GetDataCstPtr() const
516  {
517  ::boost::lock_guard<boost::mutex> lock(mutex_);
518  return msg_ptr;
519  }
520 
521  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
522  {
523  if (arguments == NULL)
524  {
525  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateWifiSignalChanged::Update() arguments is NULL");
526  return;
527  }
528 
529  ::boost::lock_guard<boost::mutex> lock(mutex_);
530  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateWifiSignalChanged());
531  msg_ptr->header.stamp = t;
532  msg_ptr->header.frame_id = "base_link";
533 
534 
535  arg = NULL;
536  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_WIFISIGNALCHANGED_RSSI, arg);
537  if (arg)
538  {
539  msg_ptr->rssi = arg->value.I16;
540  }
541 
542  if (pub_enabled_) ros_pub_.publish(msg_ptr);
543  }
544 
545 }; // CommonCommonStateWifiSignalChanged
546 
547 
548 // Sensors state list.
550 {
551 private:
552  ::bebop_msgs::CommonCommonStateSensorsStatesListChanged::Ptr msg_ptr;
553 
554 public:
555 
556  CommonCommonStateSensorsStatesListChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
557  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_SENSORSSTATESLISTCHANGED)
558  {
559  if (priv_nh.getParam("states/enable_commonstate_sensorsstateslistchanged", pub_enabled_) && pub_enabled_)
560  {
561  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
562  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateSensorsStatesListChanged>(topic, 10, true);
563  } // pub_enabled_ is false
564  }
565 
566  ::bebop_msgs::CommonCommonStateSensorsStatesListChanged::ConstPtr GetDataCstPtr() const
567  {
568  ::boost::lock_guard<boost::mutex> lock(mutex_);
569  return msg_ptr;
570  }
571 
572  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
573  {
574  if (arguments == NULL)
575  {
576  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateSensorsStatesListChanged::Update() arguments is NULL");
577  return;
578  }
579 
580  ::boost::lock_guard<boost::mutex> lock(mutex_);
581  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateSensorsStatesListChanged());
582  msg_ptr->header.stamp = t;
583  msg_ptr->header.frame_id = "base_link";
584 
585 
586  arg = NULL;
587  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_SENSORSSTATESLISTCHANGED_SENSORNAME, arg);
588  if (arg)
589  {
590  msg_ptr->sensorName = arg->value.I32;
591  }
592 
593  arg = NULL;
594  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_SENSORSSTATESLISTCHANGED_SENSORSTATE, arg);
595  if (arg)
596  {
597  msg_ptr->sensorState = arg->value.U8;
598  }
599 
600  if (pub_enabled_) ros_pub_.publish(msg_ptr);
601  }
602 
603 }; // CommonCommonStateSensorsStatesListChanged
604 
605 
606 // Product sub-model.\n This can be used to customize the UI depending on the product.
608 {
609 private:
610  ::bebop_msgs::CommonCommonStateProductModel::Ptr msg_ptr;
611 
612 public:
613 
614  CommonCommonStateProductModel(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
615  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_PRODUCTMODEL)
616  {
617  if (priv_nh.getParam("states/enable_commonstate_productmodel", pub_enabled_) && pub_enabled_)
618  {
619  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
620  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateProductModel>(topic, 10, true);
621  } // pub_enabled_ is false
622  }
623 
624  ::bebop_msgs::CommonCommonStateProductModel::ConstPtr GetDataCstPtr() const
625  {
626  ::boost::lock_guard<boost::mutex> lock(mutex_);
627  return msg_ptr;
628  }
629 
630  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
631  {
632  if (arguments == NULL)
633  {
634  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateProductModel::Update() arguments is NULL");
635  return;
636  }
637 
638  ::boost::lock_guard<boost::mutex> lock(mutex_);
639  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateProductModel());
640  msg_ptr->header.stamp = t;
641  msg_ptr->header.frame_id = "base_link";
642 
643 
644  arg = NULL;
645  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_PRODUCTMODEL_MODEL, arg);
646  if (arg)
647  {
648  msg_ptr->model = arg->value.I32;
649  }
650 
651  if (pub_enabled_) ros_pub_.publish(msg_ptr);
652  }
653 
654 }; // CommonCommonStateProductModel
655 
656 
657 // List of countries known by the drone.
659 {
660 private:
661  ::bebop_msgs::CommonCommonStateCountryListKnown::Ptr msg_ptr;
662 
663 public:
664 
665  CommonCommonStateCountryListKnown(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
666  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_COUNTRYLISTKNOWN)
667  {
668  if (priv_nh.getParam("states/enable_commonstate_countrylistknown", pub_enabled_) && pub_enabled_)
669  {
670  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
671  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateCountryListKnown>(topic, 10, true);
672  } // pub_enabled_ is false
673  }
674 
675  ::bebop_msgs::CommonCommonStateCountryListKnown::ConstPtr GetDataCstPtr() const
676  {
677  ::boost::lock_guard<boost::mutex> lock(mutex_);
678  return msg_ptr;
679  }
680 
681  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
682  {
683  if (arguments == NULL)
684  {
685  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateCountryListKnown::Update() arguments is NULL");
686  return;
687  }
688 
689  ::boost::lock_guard<boost::mutex> lock(mutex_);
690  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateCountryListKnown());
691  msg_ptr->header.stamp = t;
692  msg_ptr->header.frame_id = "base_link";
693 
694 
695  arg = NULL;
696  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_COUNTRYLISTKNOWN_LISTFLAGS, arg);
697  if (arg)
698  {
699  msg_ptr->listFlags = arg->value.U8;
700  }
701 
702  arg = NULL;
703  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_COUNTRYLISTKNOWN_COUNTRYCODES, arg);
704  if (arg)
705  {
706  msg_ptr->countryCodes = arg->value.String;
707  }
708 
709  if (pub_enabled_) ros_pub_.publish(msg_ptr);
710  }
711 
712 }; // CommonCommonStateCountryListKnown
713 
714 
715 // Mass storage content changed.
717 {
718 private:
719  ::bebop_msgs::CommonCommonStateDeprecatedMassStorageContentChanged::Ptr msg_ptr;
720 
721 public:
722 
724  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_DEPRECATEDMASSSTORAGECONTENTCHANGED)
725  {
726  if (priv_nh.getParam("states/enable_commonstate_deprecatedmassstoragecontentchanged", pub_enabled_) && pub_enabled_)
727  {
728  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
729  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateDeprecatedMassStorageContentChanged>(topic, 10, true);
730  } // pub_enabled_ is false
731  }
732 
733  ::bebop_msgs::CommonCommonStateDeprecatedMassStorageContentChanged::ConstPtr GetDataCstPtr() const
734  {
735  ::boost::lock_guard<boost::mutex> lock(mutex_);
736  return msg_ptr;
737  }
738 
739  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
740  {
741  if (arguments == NULL)
742  {
743  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateDeprecatedMassStorageContentChanged::Update() arguments is NULL");
744  return;
745  }
746 
747  ::boost::lock_guard<boost::mutex> lock(mutex_);
748  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateDeprecatedMassStorageContentChanged());
749  msg_ptr->header.stamp = t;
750  msg_ptr->header.frame_id = "base_link";
751 
752 
753  arg = NULL;
754  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_DEPRECATEDMASSSTORAGECONTENTCHANGED_MASS_STORAGE_ID, arg);
755  if (arg)
756  {
757  msg_ptr->mass_storage_id = arg->value.U8;
758  }
759 
760  arg = NULL;
761  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_DEPRECATEDMASSSTORAGECONTENTCHANGED_NBPHOTOS, arg);
762  if (arg)
763  {
764  msg_ptr->nbPhotos = arg->value.U16;
765  }
766 
767  arg = NULL;
768  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_DEPRECATEDMASSSTORAGECONTENTCHANGED_NBVIDEOS, arg);
769  if (arg)
770  {
771  msg_ptr->nbVideos = arg->value.U16;
772  }
773 
774  arg = NULL;
775  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_DEPRECATEDMASSSTORAGECONTENTCHANGED_NBPUDS, arg);
776  if (arg)
777  {
778  msg_ptr->nbPuds = arg->value.U16;
779  }
780 
781  arg = NULL;
782  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_DEPRECATEDMASSSTORAGECONTENTCHANGED_NBCRASHLOGS, arg);
783  if (arg)
784  {
785  msg_ptr->nbCrashLogs = arg->value.U16;
786  }
787 
788  if (pub_enabled_) ros_pub_.publish(msg_ptr);
789  }
790 
791 }; // CommonCommonStateDeprecatedMassStorageContentChanged
792 
793 
794 // Mass storage content.
796 {
797 private:
798  ::bebop_msgs::CommonCommonStateMassStorageContent::Ptr msg_ptr;
799 
800 public:
801 
802  CommonCommonStateMassStorageContent(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
803  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENT)
804  {
805  if (priv_nh.getParam("states/enable_commonstate_massstoragecontent", pub_enabled_) && pub_enabled_)
806  {
807  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
808  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateMassStorageContent>(topic, 10, true);
809  } // pub_enabled_ is false
810  }
811 
812  ::bebop_msgs::CommonCommonStateMassStorageContent::ConstPtr GetDataCstPtr() const
813  {
814  ::boost::lock_guard<boost::mutex> lock(mutex_);
815  return msg_ptr;
816  }
817 
818  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
819  {
820  if (arguments == NULL)
821  {
822  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateMassStorageContent::Update() arguments is NULL");
823  return;
824  }
825 
826  ::boost::lock_guard<boost::mutex> lock(mutex_);
827  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateMassStorageContent());
828  msg_ptr->header.stamp = t;
829  msg_ptr->header.frame_id = "base_link";
830 
831 
832  arg = NULL;
833  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENT_MASS_STORAGE_ID, arg);
834  if (arg)
835  {
836  msg_ptr->mass_storage_id = arg->value.U8;
837  }
838 
839  arg = NULL;
840  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENT_NBPHOTOS, arg);
841  if (arg)
842  {
843  msg_ptr->nbPhotos = arg->value.U16;
844  }
845 
846  arg = NULL;
847  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENT_NBVIDEOS, arg);
848  if (arg)
849  {
850  msg_ptr->nbVideos = arg->value.U16;
851  }
852 
853  arg = NULL;
854  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENT_NBPUDS, arg);
855  if (arg)
856  {
857  msg_ptr->nbPuds = arg->value.U16;
858  }
859 
860  arg = NULL;
861  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENT_NBCRASHLOGS, arg);
862  if (arg)
863  {
864  msg_ptr->nbCrashLogs = arg->value.U16;
865  }
866 
867  arg = NULL;
868  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENT_NBRAWPHOTOS, arg);
869  if (arg)
870  {
871  msg_ptr->nbRawPhotos = arg->value.U16;
872  }
873 
874  if (pub_enabled_) ros_pub_.publish(msg_ptr);
875  }
876 
877 }; // CommonCommonStateMassStorageContent
878 
879 
880 // Mass storage content for current run.\n Only counts the files related to the current run (see [RunId](#0-30-0))
882 {
883 private:
884  ::bebop_msgs::CommonCommonStateMassStorageContentForCurrentRun::Ptr msg_ptr;
885 
886 public:
887 
889  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENTFORCURRENTRUN)
890  {
891  if (priv_nh.getParam("states/enable_commonstate_massstoragecontentforcurrentrun", pub_enabled_) && pub_enabled_)
892  {
893  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
894  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateMassStorageContentForCurrentRun>(topic, 10, true);
895  } // pub_enabled_ is false
896  }
897 
898  ::bebop_msgs::CommonCommonStateMassStorageContentForCurrentRun::ConstPtr GetDataCstPtr() const
899  {
900  ::boost::lock_guard<boost::mutex> lock(mutex_);
901  return msg_ptr;
902  }
903 
904  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
905  {
906  if (arguments == NULL)
907  {
908  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateMassStorageContentForCurrentRun::Update() arguments is NULL");
909  return;
910  }
911 
912  ::boost::lock_guard<boost::mutex> lock(mutex_);
913  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateMassStorageContentForCurrentRun());
914  msg_ptr->header.stamp = t;
915  msg_ptr->header.frame_id = "base_link";
916 
917 
918  arg = NULL;
919  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENTFORCURRENTRUN_MASS_STORAGE_ID, arg);
920  if (arg)
921  {
922  msg_ptr->mass_storage_id = arg->value.U8;
923  }
924 
925  arg = NULL;
926  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENTFORCURRENTRUN_NBPHOTOS, arg);
927  if (arg)
928  {
929  msg_ptr->nbPhotos = arg->value.U16;
930  }
931 
932  arg = NULL;
933  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENTFORCURRENTRUN_NBVIDEOS, arg);
934  if (arg)
935  {
936  msg_ptr->nbVideos = arg->value.U16;
937  }
938 
939  arg = NULL;
940  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_MASSSTORAGECONTENTFORCURRENTRUN_NBRAWPHOTOS, arg);
941  if (arg)
942  {
943  msg_ptr->nbRawPhotos = arg->value.U16;
944  }
945 
946  if (pub_enabled_) ros_pub_.publish(msg_ptr);
947  }
948 
949 }; // CommonCommonStateMassStorageContentForCurrentRun
950 
951 
952 // Current or last video recording timestamp.\n Timestamp in milliseconds since 00:00:00 UTC on 1 January 1970.\n **Please note that values dont persist after drone reboot**
954 {
955 private:
956  ::bebop_msgs::CommonCommonStateVideoRecordingTimestamp::Ptr msg_ptr;
957 
958 public:
959 
960  CommonCommonStateVideoRecordingTimestamp(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
961  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_VIDEORECORDINGTIMESTAMP)
962  {
963  if (priv_nh.getParam("states/enable_commonstate_videorecordingtimestamp", pub_enabled_) && pub_enabled_)
964  {
965  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
966  ros_pub_ = nh.advertise<bebop_msgs::CommonCommonStateVideoRecordingTimestamp>(topic, 10, true);
967  } // pub_enabled_ is false
968  }
969 
970  ::bebop_msgs::CommonCommonStateVideoRecordingTimestamp::ConstPtr GetDataCstPtr() const
971  {
972  ::boost::lock_guard<boost::mutex> lock(mutex_);
973  return msg_ptr;
974  }
975 
976  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
977  {
978  if (arguments == NULL)
979  {
980  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCommonStateVideoRecordingTimestamp::Update() arguments is NULL");
981  return;
982  }
983 
984  ::boost::lock_guard<boost::mutex> lock(mutex_);
985  msg_ptr.reset(new ::bebop_msgs::CommonCommonStateVideoRecordingTimestamp());
986  msg_ptr->header.stamp = t;
987  msg_ptr->header.frame_id = "base_link";
988 
989 
990  arg = NULL;
991  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_VIDEORECORDINGTIMESTAMP_STARTTIMESTAMP, arg);
992  if (arg)
993  {
994  msg_ptr->startTimestamp = arg->value.U64;
995  }
996 
997  arg = NULL;
998  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_COMMONSTATE_VIDEORECORDINGTIMESTAMP_STOPTIMESTAMP, arg);
999  if (arg)
1000  {
1001  msg_ptr->stopTimestamp = arg->value.U64;
1002  }
1003 
1004  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1005  }
1006 
1007 }; // CommonCommonStateVideoRecordingTimestamp
1008 
1009 
1010 // Overheat temperature reached.
1012 {
1013 private:
1014  ::bebop_msgs::CommonOverHeatStateOverHeatChanged::Ptr msg_ptr;
1015 
1016 public:
1017 
1018  CommonOverHeatStateOverHeatChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
1019  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_OVERHEATSTATE_OVERHEATCHANGED)
1020  {
1021  if (priv_nh.getParam("states/enable_overheatstate_overheatchanged", pub_enabled_) && pub_enabled_)
1022  {
1023  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1024  ros_pub_ = nh.advertise<bebop_msgs::CommonOverHeatStateOverHeatChanged>(topic, 10, true);
1025  } // pub_enabled_ is false
1026  }
1027 
1028  ::bebop_msgs::CommonOverHeatStateOverHeatChanged::ConstPtr GetDataCstPtr() const
1029  {
1030  ::boost::lock_guard<boost::mutex> lock(mutex_);
1031  return msg_ptr;
1032  }
1033 
1034  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1035  {
1036  if (arguments == NULL)
1037  {
1038  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonOverHeatStateOverHeatChanged::Update() arguments is NULL");
1039  return;
1040  }
1041 
1042  ::boost::lock_guard<boost::mutex> lock(mutex_);
1043  msg_ptr.reset(new ::bebop_msgs::CommonOverHeatStateOverHeatChanged());
1044  msg_ptr->header.stamp = t;
1045  msg_ptr->header.frame_id = "base_link";
1046 
1047 
1048  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1049  }
1050 
1051 }; // CommonOverHeatStateOverHeatChanged
1052 
1053 
1054 // Overheat regulation type.
1056 {
1057 private:
1058  ::bebop_msgs::CommonOverHeatStateOverHeatRegulationChanged::Ptr msg_ptr;
1059 
1060 public:
1061 
1063  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_OVERHEATSTATE_OVERHEATREGULATIONCHANGED)
1064  {
1065  if (priv_nh.getParam("states/enable_overheatstate_overheatregulationchanged", pub_enabled_) && pub_enabled_)
1066  {
1067  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1068  ros_pub_ = nh.advertise<bebop_msgs::CommonOverHeatStateOverHeatRegulationChanged>(topic, 10, true);
1069  } // pub_enabled_ is false
1070  }
1071 
1072  ::bebop_msgs::CommonOverHeatStateOverHeatRegulationChanged::ConstPtr GetDataCstPtr() const
1073  {
1074  ::boost::lock_guard<boost::mutex> lock(mutex_);
1075  return msg_ptr;
1076  }
1077 
1078  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1079  {
1080  if (arguments == NULL)
1081  {
1082  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonOverHeatStateOverHeatRegulationChanged::Update() arguments is NULL");
1083  return;
1084  }
1085 
1086  ::boost::lock_guard<boost::mutex> lock(mutex_);
1087  msg_ptr.reset(new ::bebop_msgs::CommonOverHeatStateOverHeatRegulationChanged());
1088  msg_ptr->header.stamp = t;
1089  msg_ptr->header.frame_id = "base_link";
1090 
1091 
1092  arg = NULL;
1093  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_OVERHEATSTATE_OVERHEATREGULATIONCHANGED_REGULATIONTYPE, arg);
1094  if (arg)
1095  {
1096  msg_ptr->regulationType = arg->value.U8;
1097  }
1098 
1099  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1100  }
1101 
1102 }; // CommonOverHeatStateOverHeatRegulationChanged
1103 
1104 
1105 // Playing state of a FlightPlan.
1107 {
1108 private:
1109  ::bebop_msgs::CommonMavlinkStateMavlinkFilePlayingStateChanged::Ptr msg_ptr;
1110 
1111 public:
1112 
1114  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_MAVLINKSTATE_MAVLINKFILEPLAYINGSTATECHANGED)
1115  {
1116  if (priv_nh.getParam("states/enable_mavlinkstate_mavlinkfileplayingstatechanged", pub_enabled_) && pub_enabled_)
1117  {
1118  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1119  ros_pub_ = nh.advertise<bebop_msgs::CommonMavlinkStateMavlinkFilePlayingStateChanged>(topic, 10, true);
1120  } // pub_enabled_ is false
1121  }
1122 
1123  ::bebop_msgs::CommonMavlinkStateMavlinkFilePlayingStateChanged::ConstPtr GetDataCstPtr() const
1124  {
1125  ::boost::lock_guard<boost::mutex> lock(mutex_);
1126  return msg_ptr;
1127  }
1128 
1129  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1130  {
1131  if (arguments == NULL)
1132  {
1133  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonMavlinkStateMavlinkFilePlayingStateChanged::Update() arguments is NULL");
1134  return;
1135  }
1136 
1137  ::boost::lock_guard<boost::mutex> lock(mutex_);
1138  msg_ptr.reset(new ::bebop_msgs::CommonMavlinkStateMavlinkFilePlayingStateChanged());
1139  msg_ptr->header.stamp = t;
1140  msg_ptr->header.frame_id = "base_link";
1141 
1142 
1143  arg = NULL;
1144  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_MAVLINKSTATE_MAVLINKFILEPLAYINGSTATECHANGED_STATE, arg);
1145  if (arg)
1146  {
1147  msg_ptr->state = arg->value.I32;
1148  }
1149 
1150  arg = NULL;
1151  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_MAVLINKSTATE_MAVLINKFILEPLAYINGSTATECHANGED_FILEPATH, arg);
1152  if (arg)
1153  {
1154  msg_ptr->filepath = arg->value.String;
1155  }
1156 
1157  arg = NULL;
1158  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_MAVLINKSTATE_MAVLINKFILEPLAYINGSTATECHANGED_TYPE, arg);
1159  if (arg)
1160  {
1161  msg_ptr->type = arg->value.I32;
1162  }
1163 
1164  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1165  }
1166 
1167 }; // CommonMavlinkStateMavlinkFilePlayingStateChanged
1168 
1169 
1170 // FlightPlan error.
1172 {
1173 private:
1174  ::bebop_msgs::CommonMavlinkStateMavlinkPlayErrorStateChanged::Ptr msg_ptr;
1175 
1176 public:
1177 
1179  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_MAVLINKSTATE_MAVLINKPLAYERRORSTATECHANGED)
1180  {
1181  if (priv_nh.getParam("states/enable_mavlinkstate_mavlinkplayerrorstatechanged", pub_enabled_) && pub_enabled_)
1182  {
1183  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1184  ros_pub_ = nh.advertise<bebop_msgs::CommonMavlinkStateMavlinkPlayErrorStateChanged>(topic, 10, true);
1185  } // pub_enabled_ is false
1186  }
1187 
1188  ::bebop_msgs::CommonMavlinkStateMavlinkPlayErrorStateChanged::ConstPtr GetDataCstPtr() const
1189  {
1190  ::boost::lock_guard<boost::mutex> lock(mutex_);
1191  return msg_ptr;
1192  }
1193 
1194  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1195  {
1196  if (arguments == NULL)
1197  {
1198  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonMavlinkStateMavlinkPlayErrorStateChanged::Update() arguments is NULL");
1199  return;
1200  }
1201 
1202  ::boost::lock_guard<boost::mutex> lock(mutex_);
1203  msg_ptr.reset(new ::bebop_msgs::CommonMavlinkStateMavlinkPlayErrorStateChanged());
1204  msg_ptr->header.stamp = t;
1205  msg_ptr->header.frame_id = "base_link";
1206 
1207 
1208  arg = NULL;
1209  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_MAVLINKSTATE_MAVLINKPLAYERRORSTATECHANGED_ERROR, arg);
1210  if (arg)
1211  {
1212  msg_ptr->error = arg->value.I32;
1213  }
1214 
1215  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1216  }
1217 
1218 }; // CommonMavlinkStateMavlinkPlayErrorStateChanged
1219 
1220 
1221 // Mission item has been executed.
1223 {
1224 private:
1225  ::bebop_msgs::CommonMavlinkStateMissionItemExecuted::Ptr msg_ptr;
1226 
1227 public:
1228 
1229  CommonMavlinkStateMissionItemExecuted(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
1230  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_MAVLINKSTATE_MISSIONITEMEXECUTED)
1231  {
1232  if (priv_nh.getParam("states/enable_mavlinkstate_missionitemexecuted", pub_enabled_) && pub_enabled_)
1233  {
1234  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1235  ros_pub_ = nh.advertise<bebop_msgs::CommonMavlinkStateMissionItemExecuted>(topic, 10, true);
1236  } // pub_enabled_ is false
1237  }
1238 
1239  ::bebop_msgs::CommonMavlinkStateMissionItemExecuted::ConstPtr GetDataCstPtr() const
1240  {
1241  ::boost::lock_guard<boost::mutex> lock(mutex_);
1242  return msg_ptr;
1243  }
1244 
1245  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1246  {
1247  if (arguments == NULL)
1248  {
1249  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonMavlinkStateMissionItemExecuted::Update() arguments is NULL");
1250  return;
1251  }
1252 
1253  ::boost::lock_guard<boost::mutex> lock(mutex_);
1254  msg_ptr.reset(new ::bebop_msgs::CommonMavlinkStateMissionItemExecuted());
1255  msg_ptr->header.stamp = t;
1256  msg_ptr->header.frame_id = "base_link";
1257 
1258 
1259  arg = NULL;
1260  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_MAVLINKSTATE_MISSIONITEMEXECUTED_IDX, arg);
1261  if (arg)
1262  {
1263  msg_ptr->idx = arg->value.U32;
1264  }
1265 
1266  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1267  }
1268 
1269 }; // CommonMavlinkStateMissionItemExecuted
1270 
1271 
1272 // Magneto calib process axis state.
1274 {
1275 private:
1276  ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationStateChanged::Ptr msg_ptr;
1277 
1278 public:
1279 
1281  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONSTATECHANGED)
1282  {
1283  if (priv_nh.getParam("states/enable_calibrationstate_magnetocalibrationstatechanged", pub_enabled_) && pub_enabled_)
1284  {
1285  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1286  ros_pub_ = nh.advertise<bebop_msgs::CommonCalibrationStateMagnetoCalibrationStateChanged>(topic, 10, true);
1287  } // pub_enabled_ is false
1288  }
1289 
1290  ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationStateChanged::ConstPtr GetDataCstPtr() const
1291  {
1292  ::boost::lock_guard<boost::mutex> lock(mutex_);
1293  return msg_ptr;
1294  }
1295 
1296  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1297  {
1298  if (arguments == NULL)
1299  {
1300  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCalibrationStateMagnetoCalibrationStateChanged::Update() arguments is NULL");
1301  return;
1302  }
1303 
1304  ::boost::lock_guard<boost::mutex> lock(mutex_);
1305  msg_ptr.reset(new ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationStateChanged());
1306  msg_ptr->header.stamp = t;
1307  msg_ptr->header.frame_id = "base_link";
1308 
1309 
1310  arg = NULL;
1311  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONSTATECHANGED_XAXISCALIBRATION, arg);
1312  if (arg)
1313  {
1314  msg_ptr->xAxisCalibration = arg->value.U8;
1315  }
1316 
1317  arg = NULL;
1318  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONSTATECHANGED_YAXISCALIBRATION, arg);
1319  if (arg)
1320  {
1321  msg_ptr->yAxisCalibration = arg->value.U8;
1322  }
1323 
1324  arg = NULL;
1325  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONSTATECHANGED_ZAXISCALIBRATION, arg);
1326  if (arg)
1327  {
1328  msg_ptr->zAxisCalibration = arg->value.U8;
1329  }
1330 
1331  arg = NULL;
1332  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONSTATECHANGED_CALIBRATIONFAILED, arg);
1333  if (arg)
1334  {
1335  msg_ptr->calibrationFailed = arg->value.U8;
1336  }
1337 
1338  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1339  }
1340 
1341 }; // CommonCalibrationStateMagnetoCalibrationStateChanged
1342 
1343 
1344 // Calibration required.
1346 {
1347 private:
1348  ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationRequiredState::Ptr msg_ptr;
1349 
1350 public:
1351 
1353  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONREQUIREDSTATE)
1354  {
1355  if (priv_nh.getParam("states/enable_calibrationstate_magnetocalibrationrequiredstate", pub_enabled_) && pub_enabled_)
1356  {
1357  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1358  ros_pub_ = nh.advertise<bebop_msgs::CommonCalibrationStateMagnetoCalibrationRequiredState>(topic, 10, true);
1359  } // pub_enabled_ is false
1360  }
1361 
1362  ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationRequiredState::ConstPtr GetDataCstPtr() const
1363  {
1364  ::boost::lock_guard<boost::mutex> lock(mutex_);
1365  return msg_ptr;
1366  }
1367 
1368  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1369  {
1370  if (arguments == NULL)
1371  {
1372  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCalibrationStateMagnetoCalibrationRequiredState::Update() arguments is NULL");
1373  return;
1374  }
1375 
1376  ::boost::lock_guard<boost::mutex> lock(mutex_);
1377  msg_ptr.reset(new ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationRequiredState());
1378  msg_ptr->header.stamp = t;
1379  msg_ptr->header.frame_id = "base_link";
1380 
1381 
1382  arg = NULL;
1383  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONREQUIREDSTATE_REQUIRED, arg);
1384  if (arg)
1385  {
1386  msg_ptr->required = arg->value.U8;
1387  }
1388 
1389  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1390  }
1391 
1392 }; // CommonCalibrationStateMagnetoCalibrationRequiredState
1393 
1394 
1395 // Axis to calibrate during calibration process.
1397 {
1398 private:
1399  ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationAxisToCalibrateChanged::Ptr msg_ptr;
1400 
1401 public:
1402 
1404  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONAXISTOCALIBRATECHANGED)
1405  {
1406  if (priv_nh.getParam("states/enable_calibrationstate_magnetocalibrationaxistocalibratechanged", pub_enabled_) && pub_enabled_)
1407  {
1408  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1409  ros_pub_ = nh.advertise<bebop_msgs::CommonCalibrationStateMagnetoCalibrationAxisToCalibrateChanged>(topic, 10, true);
1410  } // pub_enabled_ is false
1411  }
1412 
1413  ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationAxisToCalibrateChanged::ConstPtr GetDataCstPtr() const
1414  {
1415  ::boost::lock_guard<boost::mutex> lock(mutex_);
1416  return msg_ptr;
1417  }
1418 
1419  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1420  {
1421  if (arguments == NULL)
1422  {
1423  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCalibrationStateMagnetoCalibrationAxisToCalibrateChanged::Update() arguments is NULL");
1424  return;
1425  }
1426 
1427  ::boost::lock_guard<boost::mutex> lock(mutex_);
1428  msg_ptr.reset(new ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationAxisToCalibrateChanged());
1429  msg_ptr->header.stamp = t;
1430  msg_ptr->header.frame_id = "base_link";
1431 
1432 
1433  arg = NULL;
1434  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONAXISTOCALIBRATECHANGED_AXIS, arg);
1435  if (arg)
1436  {
1437  msg_ptr->axis = arg->value.I32;
1438  }
1439 
1440  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1441  }
1442 
1443 }; // CommonCalibrationStateMagnetoCalibrationAxisToCalibrateChanged
1444 
1445 
1446 // Calibration process state.
1448 {
1449 private:
1450  ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationStartedChanged::Ptr msg_ptr;
1451 
1452 public:
1453 
1455  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONSTARTEDCHANGED)
1456  {
1457  if (priv_nh.getParam("states/enable_calibrationstate_magnetocalibrationstartedchanged", pub_enabled_) && pub_enabled_)
1458  {
1459  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1460  ros_pub_ = nh.advertise<bebop_msgs::CommonCalibrationStateMagnetoCalibrationStartedChanged>(topic, 10, true);
1461  } // pub_enabled_ is false
1462  }
1463 
1464  ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationStartedChanged::ConstPtr GetDataCstPtr() const
1465  {
1466  ::boost::lock_guard<boost::mutex> lock(mutex_);
1467  return msg_ptr;
1468  }
1469 
1470  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1471  {
1472  if (arguments == NULL)
1473  {
1474  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCalibrationStateMagnetoCalibrationStartedChanged::Update() arguments is NULL");
1475  return;
1476  }
1477 
1478  ::boost::lock_guard<boost::mutex> lock(mutex_);
1479  msg_ptr.reset(new ::bebop_msgs::CommonCalibrationStateMagnetoCalibrationStartedChanged());
1480  msg_ptr->header.stamp = t;
1481  msg_ptr->header.frame_id = "base_link";
1482 
1483 
1484  arg = NULL;
1485  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_MAGNETOCALIBRATIONSTARTEDCHANGED_STARTED, arg);
1486  if (arg)
1487  {
1488  msg_ptr->started = arg->value.U8;
1489  }
1490 
1491  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1492  }
1493 
1494 }; // CommonCalibrationStateMagnetoCalibrationStartedChanged
1495 
1496 
1497 //
1499 {
1500 private:
1501  ::bebop_msgs::CommonCalibrationStatePitotCalibrationStateChanged::Ptr msg_ptr;
1502 
1503 public:
1504 
1506  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_PITOTCALIBRATIONSTATECHANGED)
1507  {
1508  if (priv_nh.getParam("states/enable_calibrationstate_pitotcalibrationstatechanged", pub_enabled_) && pub_enabled_)
1509  {
1510  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1511  ros_pub_ = nh.advertise<bebop_msgs::CommonCalibrationStatePitotCalibrationStateChanged>(topic, 10, true);
1512  } // pub_enabled_ is false
1513  }
1514 
1515  ::bebop_msgs::CommonCalibrationStatePitotCalibrationStateChanged::ConstPtr GetDataCstPtr() const
1516  {
1517  ::boost::lock_guard<boost::mutex> lock(mutex_);
1518  return msg_ptr;
1519  }
1520 
1521  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1522  {
1523  if (arguments == NULL)
1524  {
1525  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonCalibrationStatePitotCalibrationStateChanged::Update() arguments is NULL");
1526  return;
1527  }
1528 
1529  ::boost::lock_guard<boost::mutex> lock(mutex_);
1530  msg_ptr.reset(new ::bebop_msgs::CommonCalibrationStatePitotCalibrationStateChanged());
1531  msg_ptr->header.stamp = t;
1532  msg_ptr->header.frame_id = "base_link";
1533 
1534 
1535  arg = NULL;
1536  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_PITOTCALIBRATIONSTATECHANGED_STATE, arg);
1537  if (arg)
1538  {
1539  msg_ptr->state = arg->value.I32;
1540  }
1541 
1542  arg = NULL;
1543  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CALIBRATIONSTATE_PITOTCALIBRATIONSTATECHANGED_LASTERROR, arg);
1544  if (arg)
1545  {
1546  msg_ptr->lastError = arg->value.U8;
1547  }
1548 
1549  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1550  }
1551 
1552 }; // CommonCalibrationStatePitotCalibrationStateChanged
1553 
1554 
1555 // FlightPlan availability.\n Availability is linked to GPS fix, magnetometer calibration, sensor states...
1557 {
1558 private:
1559  ::bebop_msgs::CommonFlightPlanStateAvailabilityStateChanged::Ptr msg_ptr;
1560 
1561 public:
1562 
1564  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_FLIGHTPLANSTATE_AVAILABILITYSTATECHANGED)
1565  {
1566  if (priv_nh.getParam("states/enable_flightplanstate_availabilitystatechanged", pub_enabled_) && pub_enabled_)
1567  {
1568  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1569  ros_pub_ = nh.advertise<bebop_msgs::CommonFlightPlanStateAvailabilityStateChanged>(topic, 10, true);
1570  } // pub_enabled_ is false
1571  }
1572 
1573  ::bebop_msgs::CommonFlightPlanStateAvailabilityStateChanged::ConstPtr GetDataCstPtr() const
1574  {
1575  ::boost::lock_guard<boost::mutex> lock(mutex_);
1576  return msg_ptr;
1577  }
1578 
1579  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1580  {
1581  if (arguments == NULL)
1582  {
1583  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonFlightPlanStateAvailabilityStateChanged::Update() arguments is NULL");
1584  return;
1585  }
1586 
1587  ::boost::lock_guard<boost::mutex> lock(mutex_);
1588  msg_ptr.reset(new ::bebop_msgs::CommonFlightPlanStateAvailabilityStateChanged());
1589  msg_ptr->header.stamp = t;
1590  msg_ptr->header.frame_id = "base_link";
1591 
1592 
1593  arg = NULL;
1594  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_FLIGHTPLANSTATE_AVAILABILITYSTATECHANGED_AVAILABILITYSTATE, arg);
1595  if (arg)
1596  {
1597  msg_ptr->AvailabilityState = arg->value.U8;
1598  }
1599 
1600  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1601  }
1602 
1603 }; // CommonFlightPlanStateAvailabilityStateChanged
1604 
1605 
1606 // FlightPlan components state list.
1608 {
1609 private:
1610  ::bebop_msgs::CommonFlightPlanStateComponentStateListChanged::Ptr msg_ptr;
1611 
1612 public:
1613 
1615  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_FLIGHTPLANSTATE_COMPONENTSTATELISTCHANGED)
1616  {
1617  if (priv_nh.getParam("states/enable_flightplanstate_componentstatelistchanged", pub_enabled_) && pub_enabled_)
1618  {
1619  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1620  ros_pub_ = nh.advertise<bebop_msgs::CommonFlightPlanStateComponentStateListChanged>(topic, 10, true);
1621  } // pub_enabled_ is false
1622  }
1623 
1624  ::bebop_msgs::CommonFlightPlanStateComponentStateListChanged::ConstPtr GetDataCstPtr() const
1625  {
1626  ::boost::lock_guard<boost::mutex> lock(mutex_);
1627  return msg_ptr;
1628  }
1629 
1630  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1631  {
1632  if (arguments == NULL)
1633  {
1634  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonFlightPlanStateComponentStateListChanged::Update() arguments is NULL");
1635  return;
1636  }
1637 
1638  ::boost::lock_guard<boost::mutex> lock(mutex_);
1639  msg_ptr.reset(new ::bebop_msgs::CommonFlightPlanStateComponentStateListChanged());
1640  msg_ptr->header.stamp = t;
1641  msg_ptr->header.frame_id = "base_link";
1642 
1643 
1644  arg = NULL;
1645  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_FLIGHTPLANSTATE_COMPONENTSTATELISTCHANGED_COMPONENT, arg);
1646  if (arg)
1647  {
1648  msg_ptr->component = arg->value.I32;
1649  }
1650 
1651  arg = NULL;
1652  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_FLIGHTPLANSTATE_COMPONENTSTATELISTCHANGED_STATE, arg);
1653  if (arg)
1654  {
1655  msg_ptr->State = arg->value.U8;
1656  }
1657 
1658  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1659  }
1660 
1661 }; // CommonFlightPlanStateComponentStateListChanged
1662 
1663 
1664 // FlightPlan lock state.\n Represents the fact that the controller is able or not to stop or pause a playing FlightPlan
1666 {
1667 private:
1668  ::bebop_msgs::CommonFlightPlanStateLockStateChanged::Ptr msg_ptr;
1669 
1670 public:
1671 
1672  CommonFlightPlanStateLockStateChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
1673  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_FLIGHTPLANSTATE_LOCKSTATECHANGED)
1674  {
1675  if (priv_nh.getParam("states/enable_flightplanstate_lockstatechanged", pub_enabled_) && pub_enabled_)
1676  {
1677  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1678  ros_pub_ = nh.advertise<bebop_msgs::CommonFlightPlanStateLockStateChanged>(topic, 10, true);
1679  } // pub_enabled_ is false
1680  }
1681 
1682  ::bebop_msgs::CommonFlightPlanStateLockStateChanged::ConstPtr GetDataCstPtr() const
1683  {
1684  ::boost::lock_guard<boost::mutex> lock(mutex_);
1685  return msg_ptr;
1686  }
1687 
1688  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1689  {
1690  if (arguments == NULL)
1691  {
1692  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonFlightPlanStateLockStateChanged::Update() arguments is NULL");
1693  return;
1694  }
1695 
1696  ::boost::lock_guard<boost::mutex> lock(mutex_);
1697  msg_ptr.reset(new ::bebop_msgs::CommonFlightPlanStateLockStateChanged());
1698  msg_ptr->header.stamp = t;
1699  msg_ptr->header.frame_id = "base_link";
1700 
1701 
1702  arg = NULL;
1703  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_FLIGHTPLANSTATE_LOCKSTATECHANGED_LOCKSTATE, arg);
1704  if (arg)
1705  {
1706  msg_ptr->LockState = arg->value.U8;
1707  }
1708 
1709  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1710  }
1711 
1712 }; // CommonFlightPlanStateLockStateChanged
1713 
1714 
1715 //
1717 {
1718 private:
1719  ::bebop_msgs::CommonARLibsVersionsStateControllerLibARCommandsVersion::Ptr msg_ptr;
1720 
1721 public:
1722 
1724  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_ARLIBSVERSIONSSTATE_CONTROLLERLIBARCOMMANDSVERSION)
1725  {
1726  if (priv_nh.getParam("states/enable_arlibsversionsstate_controllerlibarcommandsversion", pub_enabled_) && pub_enabled_)
1727  {
1728  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1729  ros_pub_ = nh.advertise<bebop_msgs::CommonARLibsVersionsStateControllerLibARCommandsVersion>(topic, 10, true);
1730  } // pub_enabled_ is false
1731  }
1732 
1733  ::bebop_msgs::CommonARLibsVersionsStateControllerLibARCommandsVersion::ConstPtr GetDataCstPtr() const
1734  {
1735  ::boost::lock_guard<boost::mutex> lock(mutex_);
1736  return msg_ptr;
1737  }
1738 
1739  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1740  {
1741  if (arguments == NULL)
1742  {
1743  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonARLibsVersionsStateControllerLibARCommandsVersion::Update() arguments is NULL");
1744  return;
1745  }
1746 
1747  ::boost::lock_guard<boost::mutex> lock(mutex_);
1748  msg_ptr.reset(new ::bebop_msgs::CommonARLibsVersionsStateControllerLibARCommandsVersion());
1749  msg_ptr->header.stamp = t;
1750  msg_ptr->header.frame_id = "base_link";
1751 
1752 
1753  arg = NULL;
1754  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_ARLIBSVERSIONSSTATE_CONTROLLERLIBARCOMMANDSVERSION_VERSION, arg);
1755  if (arg)
1756  {
1757  msg_ptr->version = arg->value.String;
1758  }
1759 
1760  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1761  }
1762 
1763 }; // CommonARLibsVersionsStateControllerLibARCommandsVersion
1764 
1765 
1766 //
1768 {
1769 private:
1770  ::bebop_msgs::CommonARLibsVersionsStateSkyControllerLibARCommandsVersion::Ptr msg_ptr;
1771 
1772 public:
1773 
1775  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_ARLIBSVERSIONSSTATE_SKYCONTROLLERLIBARCOMMANDSVERSION)
1776  {
1777  if (priv_nh.getParam("states/enable_arlibsversionsstate_skycontrollerlibarcommandsversion", pub_enabled_) && pub_enabled_)
1778  {
1779  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1780  ros_pub_ = nh.advertise<bebop_msgs::CommonARLibsVersionsStateSkyControllerLibARCommandsVersion>(topic, 10, true);
1781  } // pub_enabled_ is false
1782  }
1783 
1784  ::bebop_msgs::CommonARLibsVersionsStateSkyControllerLibARCommandsVersion::ConstPtr GetDataCstPtr() const
1785  {
1786  ::boost::lock_guard<boost::mutex> lock(mutex_);
1787  return msg_ptr;
1788  }
1789 
1790  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1791  {
1792  if (arguments == NULL)
1793  {
1794  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonARLibsVersionsStateSkyControllerLibARCommandsVersion::Update() arguments is NULL");
1795  return;
1796  }
1797 
1798  ::boost::lock_guard<boost::mutex> lock(mutex_);
1799  msg_ptr.reset(new ::bebop_msgs::CommonARLibsVersionsStateSkyControllerLibARCommandsVersion());
1800  msg_ptr->header.stamp = t;
1801  msg_ptr->header.frame_id = "base_link";
1802 
1803 
1804  arg = NULL;
1805  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_ARLIBSVERSIONSSTATE_SKYCONTROLLERLIBARCOMMANDSVERSION_VERSION, arg);
1806  if (arg)
1807  {
1808  msg_ptr->version = arg->value.String;
1809  }
1810 
1811  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1812  }
1813 
1814 }; // CommonARLibsVersionsStateSkyControllerLibARCommandsVersion
1815 
1816 
1817 //
1819 {
1820 private:
1821  ::bebop_msgs::CommonARLibsVersionsStateDeviceLibARCommandsVersion::Ptr msg_ptr;
1822 
1823 public:
1824 
1826  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_ARLIBSVERSIONSSTATE_DEVICELIBARCOMMANDSVERSION)
1827  {
1828  if (priv_nh.getParam("states/enable_arlibsversionsstate_devicelibarcommandsversion", pub_enabled_) && pub_enabled_)
1829  {
1830  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1831  ros_pub_ = nh.advertise<bebop_msgs::CommonARLibsVersionsStateDeviceLibARCommandsVersion>(topic, 10, true);
1832  } // pub_enabled_ is false
1833  }
1834 
1835  ::bebop_msgs::CommonARLibsVersionsStateDeviceLibARCommandsVersion::ConstPtr GetDataCstPtr() const
1836  {
1837  ::boost::lock_guard<boost::mutex> lock(mutex_);
1838  return msg_ptr;
1839  }
1840 
1841  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1842  {
1843  if (arguments == NULL)
1844  {
1845  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonARLibsVersionsStateDeviceLibARCommandsVersion::Update() arguments is NULL");
1846  return;
1847  }
1848 
1849  ::boost::lock_guard<boost::mutex> lock(mutex_);
1850  msg_ptr.reset(new ::bebop_msgs::CommonARLibsVersionsStateDeviceLibARCommandsVersion());
1851  msg_ptr->header.stamp = t;
1852  msg_ptr->header.frame_id = "base_link";
1853 
1854 
1855  arg = NULL;
1856  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_ARLIBSVERSIONSSTATE_DEVICELIBARCOMMANDSVERSION_VERSION, arg);
1857  if (arg)
1858  {
1859  msg_ptr->version = arg->value.String;
1860  }
1861 
1862  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1863  }
1864 
1865 }; // CommonARLibsVersionsStateDeviceLibARCommandsVersion
1866 
1867 
1868 // Audio stream direction.
1870 {
1871 private:
1872  ::bebop_msgs::CommonAudioStateAudioStreamingRunning::Ptr msg_ptr;
1873 
1874 public:
1875 
1876  CommonAudioStateAudioStreamingRunning(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
1877  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_AUDIOSTATE_AUDIOSTREAMINGRUNNING)
1878  {
1879  if (priv_nh.getParam("states/enable_audiostate_audiostreamingrunning", pub_enabled_) && pub_enabled_)
1880  {
1881  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1882  ros_pub_ = nh.advertise<bebop_msgs::CommonAudioStateAudioStreamingRunning>(topic, 10, true);
1883  } // pub_enabled_ is false
1884  }
1885 
1886  ::bebop_msgs::CommonAudioStateAudioStreamingRunning::ConstPtr GetDataCstPtr() const
1887  {
1888  ::boost::lock_guard<boost::mutex> lock(mutex_);
1889  return msg_ptr;
1890  }
1891 
1892  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1893  {
1894  if (arguments == NULL)
1895  {
1896  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonAudioStateAudioStreamingRunning::Update() arguments is NULL");
1897  return;
1898  }
1899 
1900  ::boost::lock_guard<boost::mutex> lock(mutex_);
1901  msg_ptr.reset(new ::bebop_msgs::CommonAudioStateAudioStreamingRunning());
1902  msg_ptr->header.stamp = t;
1903  msg_ptr->header.frame_id = "base_link";
1904 
1905 
1906  arg = NULL;
1907  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_AUDIOSTATE_AUDIOSTREAMINGRUNNING_RUNNING, arg);
1908  if (arg)
1909  {
1910  msg_ptr->running = arg->value.U8;
1911  }
1912 
1913  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1914  }
1915 
1916 }; // CommonAudioStateAudioStreamingRunning
1917 
1918 
1919 // Lighting LEDs intensity.
1921 {
1922 private:
1923  ::bebop_msgs::CommonHeadlightsStateintensityChanged::Ptr msg_ptr;
1924 
1925 public:
1926 
1927  CommonHeadlightsStateintensityChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
1928  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_HEADLIGHTSSTATE_INTENSITYCHANGED)
1929  {
1930  if (priv_nh.getParam("states/enable_headlightsstate_intensitychanged", pub_enabled_) && pub_enabled_)
1931  {
1932  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1933  ros_pub_ = nh.advertise<bebop_msgs::CommonHeadlightsStateintensityChanged>(topic, 10, true);
1934  } // pub_enabled_ is false
1935  }
1936 
1937  ::bebop_msgs::CommonHeadlightsStateintensityChanged::ConstPtr GetDataCstPtr() const
1938  {
1939  ::boost::lock_guard<boost::mutex> lock(mutex_);
1940  return msg_ptr;
1941  }
1942 
1943  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
1944  {
1945  if (arguments == NULL)
1946  {
1947  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonHeadlightsStateintensityChanged::Update() arguments is NULL");
1948  return;
1949  }
1950 
1951  ::boost::lock_guard<boost::mutex> lock(mutex_);
1952  msg_ptr.reset(new ::bebop_msgs::CommonHeadlightsStateintensityChanged());
1953  msg_ptr->header.stamp = t;
1954  msg_ptr->header.frame_id = "base_link";
1955 
1956 
1957  arg = NULL;
1958  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_HEADLIGHTSSTATE_INTENSITYCHANGED_LEFT, arg);
1959  if (arg)
1960  {
1961  msg_ptr->left = arg->value.U8;
1962  }
1963 
1964  arg = NULL;
1965  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_HEADLIGHTSSTATE_INTENSITYCHANGED_RIGHT, arg);
1966  if (arg)
1967  {
1968  msg_ptr->right = arg->value.U8;
1969  }
1970 
1971  if (pub_enabled_) ros_pub_.publish(msg_ptr);
1972  }
1973 
1974 }; // CommonHeadlightsStateintensityChanged
1975 
1976 
1977 // Paramaterless animations state list.
1979 {
1980 private:
1981  ::bebop_msgs::CommonAnimationsStateList::Ptr msg_ptr;
1982 
1983 public:
1984 
1985  CommonAnimationsStateList(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
1986  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_ANIMATIONSSTATE_LIST)
1987  {
1988  if (priv_nh.getParam("states/enable_animationsstate_list", pub_enabled_) && pub_enabled_)
1989  {
1990  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
1991  ros_pub_ = nh.advertise<bebop_msgs::CommonAnimationsStateList>(topic, 10, true);
1992  } // pub_enabled_ is false
1993  }
1994 
1995  ::bebop_msgs::CommonAnimationsStateList::ConstPtr GetDataCstPtr() const
1996  {
1997  ::boost::lock_guard<boost::mutex> lock(mutex_);
1998  return msg_ptr;
1999  }
2000 
2001  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
2002  {
2003  if (arguments == NULL)
2004  {
2005  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonAnimationsStateList::Update() arguments is NULL");
2006  return;
2007  }
2008 
2009  ::boost::lock_guard<boost::mutex> lock(mutex_);
2010  msg_ptr.reset(new ::bebop_msgs::CommonAnimationsStateList());
2011  msg_ptr->header.stamp = t;
2012  msg_ptr->header.frame_id = "base_link";
2013 
2014 
2015  arg = NULL;
2016  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_ANIMATIONSSTATE_LIST_ANIM, arg);
2017  if (arg)
2018  {
2019  msg_ptr->anim = arg->value.I32;
2020  }
2021 
2022  arg = NULL;
2023  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_ANIMATIONSSTATE_LIST_STATE, arg);
2024  if (arg)
2025  {
2026  msg_ptr->state = arg->value.I32;
2027  }
2028 
2029  arg = NULL;
2030  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_ANIMATIONSSTATE_LIST_ERROR, arg);
2031  if (arg)
2032  {
2033  msg_ptr->error = arg->value.I32;
2034  }
2035 
2036  if (pub_enabled_) ros_pub_.publish(msg_ptr);
2037  }
2038 
2039 }; // CommonAnimationsStateList
2040 
2041 
2042 // Supported accessories list.
2044 {
2045 private:
2046  ::bebop_msgs::CommonAccessoryStateSupportedAccessoriesListChanged::Ptr msg_ptr;
2047 
2048 public:
2049 
2051  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_ACCESSORYSTATE_SUPPORTEDACCESSORIESLISTCHANGED)
2052  {
2053  if (priv_nh.getParam("states/enable_accessorystate_supportedaccessorieslistchanged", pub_enabled_) && pub_enabled_)
2054  {
2055  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
2056  ros_pub_ = nh.advertise<bebop_msgs::CommonAccessoryStateSupportedAccessoriesListChanged>(topic, 10, true);
2057  } // pub_enabled_ is false
2058  }
2059 
2060  ::bebop_msgs::CommonAccessoryStateSupportedAccessoriesListChanged::ConstPtr GetDataCstPtr() const
2061  {
2062  ::boost::lock_guard<boost::mutex> lock(mutex_);
2063  return msg_ptr;
2064  }
2065 
2066  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
2067  {
2068  if (arguments == NULL)
2069  {
2070  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonAccessoryStateSupportedAccessoriesListChanged::Update() arguments is NULL");
2071  return;
2072  }
2073 
2074  ::boost::lock_guard<boost::mutex> lock(mutex_);
2075  msg_ptr.reset(new ::bebop_msgs::CommonAccessoryStateSupportedAccessoriesListChanged());
2076  msg_ptr->header.stamp = t;
2077  msg_ptr->header.frame_id = "base_link";
2078 
2079 
2080  arg = NULL;
2081  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_ACCESSORYSTATE_SUPPORTEDACCESSORIESLISTCHANGED_ACCESSORY, arg);
2082  if (arg)
2083  {
2084  msg_ptr->accessory = arg->value.I32;
2085  }
2086 
2087  if (pub_enabled_) ros_pub_.publish(msg_ptr);
2088  }
2089 
2090 }; // CommonAccessoryStateSupportedAccessoriesListChanged
2091 
2092 
2093 // Accessory config.
2095 {
2096 private:
2097  ::bebop_msgs::CommonAccessoryStateAccessoryConfigChanged::Ptr msg_ptr;
2098 
2099 public:
2100 
2101  CommonAccessoryStateAccessoryConfigChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
2102  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_ACCESSORYSTATE_ACCESSORYCONFIGCHANGED)
2103  {
2104  if (priv_nh.getParam("states/enable_accessorystate_accessoryconfigchanged", pub_enabled_) && pub_enabled_)
2105  {
2106  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
2107  ros_pub_ = nh.advertise<bebop_msgs::CommonAccessoryStateAccessoryConfigChanged>(topic, 10, true);
2108  } // pub_enabled_ is false
2109  }
2110 
2111  ::bebop_msgs::CommonAccessoryStateAccessoryConfigChanged::ConstPtr GetDataCstPtr() const
2112  {
2113  ::boost::lock_guard<boost::mutex> lock(mutex_);
2114  return msg_ptr;
2115  }
2116 
2117  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
2118  {
2119  if (arguments == NULL)
2120  {
2121  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonAccessoryStateAccessoryConfigChanged::Update() arguments is NULL");
2122  return;
2123  }
2124 
2125  ::boost::lock_guard<boost::mutex> lock(mutex_);
2126  msg_ptr.reset(new ::bebop_msgs::CommonAccessoryStateAccessoryConfigChanged());
2127  msg_ptr->header.stamp = t;
2128  msg_ptr->header.frame_id = "base_link";
2129 
2130 
2131  arg = NULL;
2132  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_ACCESSORYSTATE_ACCESSORYCONFIGCHANGED_NEWACCESSORY, arg);
2133  if (arg)
2134  {
2135  msg_ptr->newAccessory = arg->value.I32;
2136  }
2137 
2138  arg = NULL;
2139  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_ACCESSORYSTATE_ACCESSORYCONFIGCHANGED_ERROR, arg);
2140  if (arg)
2141  {
2142  msg_ptr->error = arg->value.I32;
2143  }
2144 
2145  if (pub_enabled_) ros_pub_.publish(msg_ptr);
2146  }
2147 
2148 }; // CommonAccessoryStateAccessoryConfigChanged
2149 
2150 
2151 // Availability to declare or not an accessory.
2153 {
2154 private:
2155  ::bebop_msgs::CommonAccessoryStateAccessoryConfigModificationEnabled::Ptr msg_ptr;
2156 
2157 public:
2158 
2160  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_ACCESSORYSTATE_ACCESSORYCONFIGMODIFICATIONENABLED)
2161  {
2162  if (priv_nh.getParam("states/enable_accessorystate_accessoryconfigmodificationenabled", pub_enabled_) && pub_enabled_)
2163  {
2164  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
2165  ros_pub_ = nh.advertise<bebop_msgs::CommonAccessoryStateAccessoryConfigModificationEnabled>(topic, 10, true);
2166  } // pub_enabled_ is false
2167  }
2168 
2169  ::bebop_msgs::CommonAccessoryStateAccessoryConfigModificationEnabled::ConstPtr GetDataCstPtr() const
2170  {
2171  ::boost::lock_guard<boost::mutex> lock(mutex_);
2172  return msg_ptr;
2173  }
2174 
2175  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
2176  {
2177  if (arguments == NULL)
2178  {
2179  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonAccessoryStateAccessoryConfigModificationEnabled::Update() arguments is NULL");
2180  return;
2181  }
2182 
2183  ::boost::lock_guard<boost::mutex> lock(mutex_);
2184  msg_ptr.reset(new ::bebop_msgs::CommonAccessoryStateAccessoryConfigModificationEnabled());
2185  msg_ptr->header.stamp = t;
2186  msg_ptr->header.frame_id = "base_link";
2187 
2188 
2189  arg = NULL;
2190  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_ACCESSORYSTATE_ACCESSORYCONFIGMODIFICATIONENABLED_ENABLED, arg);
2191  if (arg)
2192  {
2193  msg_ptr->enabled = arg->value.U8;
2194  }
2195 
2196  if (pub_enabled_) ros_pub_.publish(msg_ptr);
2197  }
2198 
2199 }; // CommonAccessoryStateAccessoryConfigModificationEnabled
2200 
2201 
2202 // Max charge rate.
2204 {
2205 private:
2206  ::bebop_msgs::CommonChargerStateMaxChargeRateChanged::Ptr msg_ptr;
2207 
2208 public:
2209 
2210  CommonChargerStateMaxChargeRateChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
2211  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_MAXCHARGERATECHANGED)
2212  {
2213  if (priv_nh.getParam("states/enable_chargerstate_maxchargeratechanged", pub_enabled_) && pub_enabled_)
2214  {
2215  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
2216  ros_pub_ = nh.advertise<bebop_msgs::CommonChargerStateMaxChargeRateChanged>(topic, 10, true);
2217  } // pub_enabled_ is false
2218  }
2219 
2220  ::bebop_msgs::CommonChargerStateMaxChargeRateChanged::ConstPtr GetDataCstPtr() const
2221  {
2222  ::boost::lock_guard<boost::mutex> lock(mutex_);
2223  return msg_ptr;
2224  }
2225 
2226  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
2227  {
2228  if (arguments == NULL)
2229  {
2230  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonChargerStateMaxChargeRateChanged::Update() arguments is NULL");
2231  return;
2232  }
2233 
2234  ::boost::lock_guard<boost::mutex> lock(mutex_);
2235  msg_ptr.reset(new ::bebop_msgs::CommonChargerStateMaxChargeRateChanged());
2236  msg_ptr->header.stamp = t;
2237  msg_ptr->header.frame_id = "base_link";
2238 
2239 
2240  arg = NULL;
2241  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_MAXCHARGERATECHANGED_RATE, arg);
2242  if (arg)
2243  {
2244  msg_ptr->rate = arg->value.I32;
2245  }
2246 
2247  if (pub_enabled_) ros_pub_.publish(msg_ptr);
2248  }
2249 
2250 }; // CommonChargerStateMaxChargeRateChanged
2251 
2252 
2253 // Current charge state.
2255 {
2256 private:
2257  ::bebop_msgs::CommonChargerStateCurrentChargeStateChanged::Ptr msg_ptr;
2258 
2259 public:
2260 
2261  CommonChargerStateCurrentChargeStateChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
2262  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_CURRENTCHARGESTATECHANGED)
2263  {
2264  if (priv_nh.getParam("states/enable_chargerstate_currentchargestatechanged", pub_enabled_) && pub_enabled_)
2265  {
2266  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
2267  ros_pub_ = nh.advertise<bebop_msgs::CommonChargerStateCurrentChargeStateChanged>(topic, 10, true);
2268  } // pub_enabled_ is false
2269  }
2270 
2271  ::bebop_msgs::CommonChargerStateCurrentChargeStateChanged::ConstPtr GetDataCstPtr() const
2272  {
2273  ::boost::lock_guard<boost::mutex> lock(mutex_);
2274  return msg_ptr;
2275  }
2276 
2277  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
2278  {
2279  if (arguments == NULL)
2280  {
2281  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonChargerStateCurrentChargeStateChanged::Update() arguments is NULL");
2282  return;
2283  }
2284 
2285  ::boost::lock_guard<boost::mutex> lock(mutex_);
2286  msg_ptr.reset(new ::bebop_msgs::CommonChargerStateCurrentChargeStateChanged());
2287  msg_ptr->header.stamp = t;
2288  msg_ptr->header.frame_id = "base_link";
2289 
2290 
2291  arg = NULL;
2292  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_CURRENTCHARGESTATECHANGED_STATUS, arg);
2293  if (arg)
2294  {
2295  msg_ptr->status = arg->value.I32;
2296  }
2297 
2298  arg = NULL;
2299  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_CURRENTCHARGESTATECHANGED_PHASE, arg);
2300  if (arg)
2301  {
2302  msg_ptr->phase = arg->value.I32;
2303  }
2304 
2305  if (pub_enabled_) ros_pub_.publish(msg_ptr);
2306  }
2307 
2308 }; // CommonChargerStateCurrentChargeStateChanged
2309 
2310 
2311 // Last charge rate.
2313 {
2314 private:
2315  ::bebop_msgs::CommonChargerStateLastChargeRateChanged::Ptr msg_ptr;
2316 
2317 public:
2318 
2319  CommonChargerStateLastChargeRateChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
2320  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_LASTCHARGERATECHANGED)
2321  {
2322  if (priv_nh.getParam("states/enable_chargerstate_lastchargeratechanged", pub_enabled_) && pub_enabled_)
2323  {
2324  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
2325  ros_pub_ = nh.advertise<bebop_msgs::CommonChargerStateLastChargeRateChanged>(topic, 10, true);
2326  } // pub_enabled_ is false
2327  }
2328 
2329  ::bebop_msgs::CommonChargerStateLastChargeRateChanged::ConstPtr GetDataCstPtr() const
2330  {
2331  ::boost::lock_guard<boost::mutex> lock(mutex_);
2332  return msg_ptr;
2333  }
2334 
2335  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
2336  {
2337  if (arguments == NULL)
2338  {
2339  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonChargerStateLastChargeRateChanged::Update() arguments is NULL");
2340  return;
2341  }
2342 
2343  ::boost::lock_guard<boost::mutex> lock(mutex_);
2344  msg_ptr.reset(new ::bebop_msgs::CommonChargerStateLastChargeRateChanged());
2345  msg_ptr->header.stamp = t;
2346  msg_ptr->header.frame_id = "base_link";
2347 
2348 
2349  arg = NULL;
2350  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_LASTCHARGERATECHANGED_RATE, arg);
2351  if (arg)
2352  {
2353  msg_ptr->rate = arg->value.I32;
2354  }
2355 
2356  if (pub_enabled_) ros_pub_.publish(msg_ptr);
2357  }
2358 
2359 }; // CommonChargerStateLastChargeRateChanged
2360 
2361 
2362 // Charging information.
2364 {
2365 private:
2366  ::bebop_msgs::CommonChargerStateChargingInfo::Ptr msg_ptr;
2367 
2368 public:
2369 
2370  CommonChargerStateChargingInfo(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
2371  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_CHARGINGINFO)
2372  {
2373  if (priv_nh.getParam("states/enable_chargerstate_charginginfo", pub_enabled_) && pub_enabled_)
2374  {
2375  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
2376  ros_pub_ = nh.advertise<bebop_msgs::CommonChargerStateChargingInfo>(topic, 10, true);
2377  } // pub_enabled_ is false
2378  }
2379 
2380  ::bebop_msgs::CommonChargerStateChargingInfo::ConstPtr GetDataCstPtr() const
2381  {
2382  ::boost::lock_guard<boost::mutex> lock(mutex_);
2383  return msg_ptr;
2384  }
2385 
2386  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
2387  {
2388  if (arguments == NULL)
2389  {
2390  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonChargerStateChargingInfo::Update() arguments is NULL");
2391  return;
2392  }
2393 
2394  ::boost::lock_guard<boost::mutex> lock(mutex_);
2395  msg_ptr.reset(new ::bebop_msgs::CommonChargerStateChargingInfo());
2396  msg_ptr->header.stamp = t;
2397  msg_ptr->header.frame_id = "base_link";
2398 
2399 
2400  arg = NULL;
2401  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_CHARGINGINFO_PHASE, arg);
2402  if (arg)
2403  {
2404  msg_ptr->phase = arg->value.I32;
2405  }
2406 
2407  arg = NULL;
2408  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_CHARGINGINFO_RATE, arg);
2409  if (arg)
2410  {
2411  msg_ptr->rate = arg->value.I32;
2412  }
2413 
2414  arg = NULL;
2415  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_CHARGINGINFO_INTENSITY, arg);
2416  if (arg)
2417  {
2418  msg_ptr->intensity = arg->value.U8;
2419  }
2420 
2421  arg = NULL;
2422  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_CHARGERSTATE_CHARGINGINFO_FULLCHARGINGTIME, arg);
2423  if (arg)
2424  {
2425  msg_ptr->fullChargingTime = arg->value.U8;
2426  }
2427 
2428  if (pub_enabled_) ros_pub_.publish(msg_ptr);
2429  }
2430 
2431 }; // CommonChargerStateChargingInfo
2432 
2433 
2434 // Current run id.\n A run id is uniquely identifying a run or a flight.\n For each run is generated on the drone a file which can be used by Academy to sum up the run.\n Also, each medias taken during a run has a filename containing the run id.
2436 {
2437 private:
2438  ::bebop_msgs::CommonRunStateRunIdChanged::Ptr msg_ptr;
2439 
2440 public:
2441 
2442  CommonRunStateRunIdChanged(::ros::NodeHandle& nh, ::ros::NodeHandle& priv_nh, const ::std::string& topic)
2443  : AbstractState(ARCONTROLLER_DICTIONARY_KEY_COMMON_RUNSTATE_RUNIDCHANGED)
2444  {
2445  if (priv_nh.getParam("states/enable_runstate_runidchanged", pub_enabled_) && pub_enabled_)
2446  {
2447  ARSAL_PRINT(ARSAL_PRINT_INFO, "CB" , "[STATES] Enabling %s", topic.c_str());
2448  ros_pub_ = nh.advertise<bebop_msgs::CommonRunStateRunIdChanged>(topic, 10, true);
2449  } // pub_enabled_ is false
2450  }
2451 
2452  ::bebop_msgs::CommonRunStateRunIdChanged::ConstPtr GetDataCstPtr() const
2453  {
2454  ::boost::lock_guard<boost::mutex> lock(mutex_);
2455  return msg_ptr;
2456  }
2457 
2458  void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time& t)
2459  {
2460  if (arguments == NULL)
2461  {
2462  ARSAL_PRINT(ARSAL_PRINT_WARNING, "CB", "CommonRunStateRunIdChanged::Update() arguments is NULL");
2463  return;
2464  }
2465 
2466  ::boost::lock_guard<boost::mutex> lock(mutex_);
2467  msg_ptr.reset(new ::bebop_msgs::CommonRunStateRunIdChanged());
2468  msg_ptr->header.stamp = t;
2469  msg_ptr->header.frame_id = "base_link";
2470 
2471 
2472  arg = NULL;
2473  HASH_FIND_STR (arguments, ARCONTROLLER_DICTIONARY_KEY_COMMON_RUNSTATE_RUNIDCHANGED_RUNID, arg);
2474  if (arg)
2475  {
2476  msg_ptr->runId = arg->value.String;
2477  }
2478 
2479  if (pub_enabled_) ros_pub_.publish(msg_ptr);
2480  }
2481 
2482 }; // CommonRunStateRunIdChanged
2483 
2484 
2485 } // namespace cb
2486 } // namespace bebop_driver
2487 #endif // BEBOP_AUTONOMY_AUTOGENERATED_common_STATE_CALLBACKS_H
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonChargerStateLastChargeRateChanged::Ptr msg_ptr
::bebop_msgs::CommonChargerStateMaxChargeRateChanged::ConstPtr GetDataCstPtr() const
CommonCommonStateWifiSignalChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonAccessoryStateSupportedAccessoriesListChanged::Ptr msg_ptr
CommonAccessoryStateAccessoryConfigChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
CommonRunStateRunIdChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonARLibsVersionsStateDeviceLibARCommandsVersion::Ptr msg_ptr
CommonHeadlightsStateintensityChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonFlightPlanStateAvailabilityStateChanged::Ptr msg_ptr
::bebop_msgs::CommonCalibrationStateMagnetoCalibrationStartedChanged::Ptr msg_ptr
::bebop_msgs::CommonCommonStateWifiSignalChanged::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonFlightPlanStateAvailabilityStateChanged::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonCommonStateMassStorageContent::Ptr msg_ptr
CommonCommonStateAllStatesChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
CommonCommonStateSensorsStatesListChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCommonStateSensorsStatesListChanged::Ptr msg_ptr
::bebop_msgs::CommonCommonStateAllStatesChanged::ConstPtr GetDataCstPtr() const
void publish(const boost::shared_ptr< M > &message) const
CommonOverHeatStateOverHeatRegulationChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
CommonFlightPlanStateLockStateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonFlightPlanStateComponentStateListChanged::ConstPtr GetDataCstPtr() const
CommonCalibrationStateMagnetoCalibrationAxisToCalibrateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonFlightPlanStateLockStateChanged::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonAccessoryStateSupportedAccessoriesListChanged::ConstPtr GetDataCstPtr() const
CommonChargerStateMaxChargeRateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
CommonFlightPlanStateAvailabilityStateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonCalibrationStateMagnetoCalibrationRequiredState::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonCommonStateProductModel::ConstPtr GetDataCstPtr() const
CommonARLibsVersionsStateDeviceLibARCommandsVersion(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCommonStateSensorsStatesListChanged::ConstPtr GetDataCstPtr() const
CommonMavlinkStateMavlinkPlayErrorStateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCommonStateAllStatesChanged::Ptr msg_ptr
::bebop_msgs::CommonARLibsVersionsStateControllerLibARCommandsVersion::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonCalibrationStatePitotCalibrationStateChanged::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonCommonStateCurrentDateChanged::Ptr msg_ptr
::bebop_msgs::CommonMavlinkStateMavlinkFilePlayingStateChanged::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
CommonCommonStateMassStorageInfoRemainingListChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonChargerStateLastChargeRateChanged::ConstPtr GetDataCstPtr() const
CommonAudioStateAudioStreamingRunning(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCommonStateDeprecatedMassStorageContentChanged::Ptr msg_ptr
::bebop_msgs::CommonAudioStateAudioStreamingRunning::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonAccessoryStateAccessoryConfigChanged::Ptr msg_ptr
::bebop_msgs::CommonChargerStateChargingInfo::Ptr msg_ptr
CommonCommonStateCountryListKnown(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
CommonCommonStateMassStorageStateListChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonMavlinkStateMavlinkFilePlayingStateChanged::Ptr msg_ptr
CommonOverHeatStateOverHeatChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonAccessoryStateAccessoryConfigModificationEnabled::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonRunStateRunIdChanged::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonARLibsVersionsStateSkyControllerLibARCommandsVersion::ConstPtr GetDataCstPtr() const
CommonMavlinkStateMavlinkFilePlayingStateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCommonStateMassStorageInfoStateListChanged::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonHeadlightsStateintensityChanged::Ptr msg_ptr
::bebop_msgs::CommonCommonStateCountryListKnown::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonOverHeatStateOverHeatRegulationChanged::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
CommonAccessoryStateSupportedAccessoriesListChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonMavlinkStateMissionItemExecuted::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonCommonStateBatteryStateChanged::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonOverHeatStateOverHeatChanged::Ptr msg_ptr
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonAccessoryStateAccessoryConfigModificationEnabled::Ptr msg_ptr
::bebop_msgs::CommonFlightPlanStateComponentStateListChanged::Ptr msg_ptr
CommonCommonStateBatteryStateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonHeadlightsStateintensityChanged::ConstPtr GetDataCstPtr() const
CommonCommonStateCurrentTimeChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCommonStateCurrentTimeChanged::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonCommonStateMassStorageContentForCurrentRun::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonCalibrationStateMagnetoCalibrationStateChanged::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonOverHeatStateOverHeatRegulationChanged::Ptr msg_ptr
::bebop_msgs::CommonChargerStateCurrentChargeStateChanged::Ptr msg_ptr
::bebop_msgs::CommonCommonStateCurrentTimeChanged::Ptr msg_ptr
CommonCommonStateMassStorageContent(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
CommonCommonStateMassStorageInfoStateListChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonRunStateRunIdChanged::Ptr msg_ptr
::bebop_msgs::CommonCommonStateMassStorageInfoStateListChanged::Ptr msg_ptr
::bebop_msgs::CommonMavlinkStateMissionItemExecuted::Ptr msg_ptr
CommonAccessoryStateAccessoryConfigModificationEnabled(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCommonStateMassStorageInfoRemainingListChanged::Ptr msg_ptr
::bebop_msgs::CommonMavlinkStateMavlinkPlayErrorStateChanged::Ptr msg_ptr
::bebop_msgs::CommonCalibrationStateMagnetoCalibrationRequiredState::Ptr msg_ptr
::bebop_msgs::CommonCommonStateVideoRecordingTimestamp::Ptr msg_ptr
CommonCommonStateVideoRecordingTimestamp(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCalibrationStateMagnetoCalibrationStartedChanged::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonARLibsVersionsStateSkyControllerLibARCommandsVersion::Ptr msg_ptr
CommonChargerStateLastChargeRateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
CommonCalibrationStatePitotCalibrationStateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
CommonCalibrationStateMagnetoCalibrationRequiredState(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonCommonStateMassStorageInfoRemainingListChanged::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
CommonCommonStateCurrentDateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCommonStateMassStorageStateListChanged::Ptr msg_ptr
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonCommonStateMassStorageContent::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonCalibrationStatePitotCalibrationStateChanged::Ptr msg_ptr
::bebop_msgs::CommonCommonStateMassStorageStateListChanged::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonARLibsVersionsStateControllerLibARCommandsVersion::Ptr msg_ptr
CommonChargerStateChargingInfo(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
CommonCalibrationStateMagnetoCalibrationStartedChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonAnimationsStateList::Ptr msg_ptr
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonCommonStateVideoRecordingTimestamp::ConstPtr GetDataCstPtr() const
CommonARLibsVersionsStateControllerLibARCommandsVersion(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
bool getParam(const std::string &key, std::string &s) const
::bebop_msgs::CommonAnimationsStateList::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonMavlinkStateMavlinkPlayErrorStateChanged::ConstPtr GetDataCstPtr() const
CommonCommonStateDeprecatedMassStorageContentChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonAudioStateAudioStreamingRunning::Ptr msg_ptr
::bebop_msgs::CommonChargerStateCurrentChargeStateChanged::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonChargerStateChargingInfo::ConstPtr GetDataCstPtr() const
CommonAnimationsStateList(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonAccessoryStateAccessoryConfigChanged::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonCommonStateDeprecatedMassStorageContentChanged::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
CommonARLibsVersionsStateSkyControllerLibARCommandsVersion(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonOverHeatStateOverHeatChanged::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
CommonCommonStateMassStorageContentForCurrentRun(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
CommonMavlinkStateMissionItemExecuted(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
ARCONTROLLER_DICTIONARY_ARG_t * arg
::bebop_msgs::CommonChargerStateMaxChargeRateChanged::Ptr msg_ptr
CommonCalibrationStateMagnetoCalibrationStateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
CommonFlightPlanStateComponentStateListChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCalibrationStateMagnetoCalibrationAxisToCalibrateChanged::ConstPtr GetDataCstPtr() const
::bebop_msgs::CommonCalibrationStateMagnetoCalibrationStateChanged::Ptr msg_ptr
::bebop_msgs::CommonCommonStateProductModel::Ptr msg_ptr
::bebop_msgs::CommonCommonStateMassStorageContentForCurrentRun::Ptr msg_ptr
::bebop_msgs::CommonCommonStateWifiSignalChanged::Ptr msg_ptr
::bebop_msgs::CommonCalibrationStateMagnetoCalibrationAxisToCalibrateChanged::Ptr msg_ptr
::bebop_msgs::CommonCommonStateCountryListKnown::Ptr msg_ptr
::bebop_msgs::CommonCommonStateBatteryStateChanged::Ptr msg_ptr
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
CommonCommonStateProductModel(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)
::bebop_msgs::CommonCommonStateCurrentDateChanged::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonFlightPlanStateLockStateChanged::Ptr msg_ptr
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
::bebop_msgs::CommonARLibsVersionsStateDeviceLibARCommandsVersion::ConstPtr GetDataCstPtr() const
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
void Update(const ARCONTROLLER_DICTIONARY_ARG_t *arguments, const ::ros::Time &t)
CommonChargerStateCurrentChargeStateChanged(::ros::NodeHandle &nh,::ros::NodeHandle &priv_nh, const ::std::string &topic)


bebop_driver
Author(s): Mani Monajjemi
autogenerated on Mon Jun 10 2019 12:58:56