ardrone3_setting_callback_includes.h
Go to the documentation of this file.
1 
30 #ifdef FORWARD_DECLARATIONS
31 namespace cb
32 {
33  class PilotingSettingsMaxAltitude;
34  class PilotingSettingsMaxTilt;
35  class PilotingSettingsAbsolutControl;
36  class PilotingSettingsMaxDistance;
37  class PilotingSettingsNoFlyOverMaxDistance;
38  class PilotingSettingsBankedTurn;
39  class PilotingSettingsMinAltitude;
40  class PilotingSettingsCirclingDirection;
41  class PilotingSettingsCirclingRadius;
42  class PilotingSettingsCirclingAltitude;
43  class PilotingSettingsPitchMode;
44  class SpeedSettingsMaxVerticalSpeed;
45  class SpeedSettingsMaxRotationSpeed;
46  class SpeedSettingsHullProtection;
47  class SpeedSettingsOutdoor;
48  class SpeedSettingsMaxPitchRollRotationSpeed;
49  class NetworkSettingsWifiSelection;
50  class PictureSettingsVideoStabilizationMode;
51  class PictureSettingsVideoRecordingMode;
52  class PictureSettingsVideoFramerate;
53  class PictureSettingsVideoResolutions;
54  class GPSSettingsHomeType;
55  class GPSSettingsReturnHomeDelay;
56 } // namespace cb
57 #endif // FORWARD_DECLARATIONS
58 
59 #ifdef DEFINE_SHARED_PTRS
60 // Define all callback wrappers
61 boost::shared_ptr<cb::PilotingSettingsMaxAltitude> ardrone3_pilotingsettings_maxaltitude_ptr;
62 boost::shared_ptr<cb::PilotingSettingsMaxTilt> ardrone3_pilotingsettings_maxtilt_ptr;
63 boost::shared_ptr<cb::PilotingSettingsAbsolutControl> ardrone3_pilotingsettings_absolutcontrol_ptr;
64 boost::shared_ptr<cb::PilotingSettingsMaxDistance> ardrone3_pilotingsettings_maxdistance_ptr;
65 boost::shared_ptr<cb::PilotingSettingsNoFlyOverMaxDistance> ardrone3_pilotingsettings_noflyovermaxdistance_ptr;
66 boost::shared_ptr<cb::PilotingSettingsBankedTurn> ardrone3_pilotingsettings_bankedturn_ptr;
67 boost::shared_ptr<cb::PilotingSettingsMinAltitude> ardrone3_pilotingsettings_minaltitude_ptr;
68 boost::shared_ptr<cb::PilotingSettingsCirclingDirection> ardrone3_pilotingsettings_circlingdirection_ptr;
69 boost::shared_ptr<cb::PilotingSettingsCirclingRadius> ardrone3_pilotingsettings_circlingradius_ptr;
70 boost::shared_ptr<cb::PilotingSettingsCirclingAltitude> ardrone3_pilotingsettings_circlingaltitude_ptr;
71 boost::shared_ptr<cb::PilotingSettingsPitchMode> ardrone3_pilotingsettings_pitchmode_ptr;
72 boost::shared_ptr<cb::SpeedSettingsMaxVerticalSpeed> ardrone3_speedsettings_maxverticalspeed_ptr;
73 boost::shared_ptr<cb::SpeedSettingsMaxRotationSpeed> ardrone3_speedsettings_maxrotationspeed_ptr;
74 boost::shared_ptr<cb::SpeedSettingsHullProtection> ardrone3_speedsettings_hullprotection_ptr;
75 boost::shared_ptr<cb::SpeedSettingsOutdoor> ardrone3_speedsettings_outdoor_ptr;
76 boost::shared_ptr<cb::SpeedSettingsMaxPitchRollRotationSpeed> ardrone3_speedsettings_maxpitchrollrotationspeed_ptr;
77 boost::shared_ptr<cb::NetworkSettingsWifiSelection> ardrone3_networksettings_wifiselection_ptr;
78 boost::shared_ptr<cb::PictureSettingsVideoStabilizationMode> ardrone3_picturesettings_videostabilizationmode_ptr;
79 boost::shared_ptr<cb::PictureSettingsVideoRecordingMode> ardrone3_picturesettings_videorecordingmode_ptr;
80 boost::shared_ptr<cb::PictureSettingsVideoFramerate> ardrone3_picturesettings_videoframerate_ptr;
81 boost::shared_ptr<cb::PictureSettingsVideoResolutions> ardrone3_picturesettings_videoresolutions_ptr;
82 boost::shared_ptr<cb::GPSSettingsHomeType> ardrone3_gpssettings_hometype_ptr;
83 boost::shared_ptr<cb::GPSSettingsReturnHomeDelay> ardrone3_gpssettings_returnhomedelay_ptr;
84 #endif // DEFINE_SHARED_PTRS
85 
86 #ifdef UPDTAE_CALLBACK_MAP
87 // Instantiate state callback wrappers
88 ardrone3_pilotingsettings_maxaltitude_ptr.reset(new cb::PilotingSettingsMaxAltitude(priv_nh));
89 ardrone3_pilotingsettings_maxtilt_ptr.reset(new cb::PilotingSettingsMaxTilt(priv_nh));
90 ardrone3_pilotingsettings_absolutcontrol_ptr.reset(new cb::PilotingSettingsAbsolutControl(priv_nh));
91 ardrone3_pilotingsettings_maxdistance_ptr.reset(new cb::PilotingSettingsMaxDistance(priv_nh));
92 ardrone3_pilotingsettings_noflyovermaxdistance_ptr.reset(new cb::PilotingSettingsNoFlyOverMaxDistance(priv_nh));
93 ardrone3_pilotingsettings_bankedturn_ptr.reset(new cb::PilotingSettingsBankedTurn(priv_nh));
94 ardrone3_pilotingsettings_minaltitude_ptr.reset(new cb::PilotingSettingsMinAltitude(priv_nh));
95 ardrone3_pilotingsettings_circlingdirection_ptr.reset(new cb::PilotingSettingsCirclingDirection(priv_nh));
96 ardrone3_pilotingsettings_circlingradius_ptr.reset(new cb::PilotingSettingsCirclingRadius(priv_nh));
97 ardrone3_pilotingsettings_circlingaltitude_ptr.reset(new cb::PilotingSettingsCirclingAltitude(priv_nh));
98 ardrone3_pilotingsettings_pitchmode_ptr.reset(new cb::PilotingSettingsPitchMode(priv_nh));
99 ardrone3_speedsettings_maxverticalspeed_ptr.reset(new cb::SpeedSettingsMaxVerticalSpeed(priv_nh));
100 ardrone3_speedsettings_maxrotationspeed_ptr.reset(new cb::SpeedSettingsMaxRotationSpeed(priv_nh));
101 ardrone3_speedsettings_hullprotection_ptr.reset(new cb::SpeedSettingsHullProtection(priv_nh));
102 ardrone3_speedsettings_outdoor_ptr.reset(new cb::SpeedSettingsOutdoor(priv_nh));
103 ardrone3_speedsettings_maxpitchrollrotationspeed_ptr.reset(new cb::SpeedSettingsMaxPitchRollRotationSpeed(priv_nh));
104 ardrone3_networksettings_wifiselection_ptr.reset(new cb::NetworkSettingsWifiSelection(priv_nh));
105 ardrone3_picturesettings_videostabilizationmode_ptr.reset(new cb::PictureSettingsVideoStabilizationMode(priv_nh));
106 ardrone3_picturesettings_videorecordingmode_ptr.reset(new cb::PictureSettingsVideoRecordingMode(priv_nh));
107 ardrone3_picturesettings_videoframerate_ptr.reset(new cb::PictureSettingsVideoFramerate(priv_nh));
108 ardrone3_picturesettings_videoresolutions_ptr.reset(new cb::PictureSettingsVideoResolutions(priv_nh));
109 ardrone3_gpssettings_hometype_ptr.reset(new cb::GPSSettingsHomeType(priv_nh));
110 ardrone3_gpssettings_returnhomedelay_ptr.reset(new cb::GPSSettingsReturnHomeDelay(priv_nh));
111 
112 // Add all wrappers to the callback map (AbstractCommand* part of each object)
113 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
114  ardrone3_pilotingsettings_maxaltitude_ptr->GetCommandKey(),
115  ardrone3_pilotingsettings_maxaltitude_ptr));
116 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
117  ardrone3_pilotingsettings_maxtilt_ptr->GetCommandKey(),
118  ardrone3_pilotingsettings_maxtilt_ptr));
119 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
120  ardrone3_pilotingsettings_absolutcontrol_ptr->GetCommandKey(),
121  ardrone3_pilotingsettings_absolutcontrol_ptr));
122 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
123  ardrone3_pilotingsettings_maxdistance_ptr->GetCommandKey(),
124  ardrone3_pilotingsettings_maxdistance_ptr));
125 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
126  ardrone3_pilotingsettings_noflyovermaxdistance_ptr->GetCommandKey(),
127  ardrone3_pilotingsettings_noflyovermaxdistance_ptr));
128 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
129  ardrone3_pilotingsettings_bankedturn_ptr->GetCommandKey(),
130  ardrone3_pilotingsettings_bankedturn_ptr));
131 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
132  ardrone3_pilotingsettings_minaltitude_ptr->GetCommandKey(),
133  ardrone3_pilotingsettings_minaltitude_ptr));
134 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
135  ardrone3_pilotingsettings_circlingdirection_ptr->GetCommandKey(),
136  ardrone3_pilotingsettings_circlingdirection_ptr));
137 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
138  ardrone3_pilotingsettings_circlingradius_ptr->GetCommandKey(),
139  ardrone3_pilotingsettings_circlingradius_ptr));
140 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
141  ardrone3_pilotingsettings_circlingaltitude_ptr->GetCommandKey(),
142  ardrone3_pilotingsettings_circlingaltitude_ptr));
143 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
144  ardrone3_pilotingsettings_pitchmode_ptr->GetCommandKey(),
145  ardrone3_pilotingsettings_pitchmode_ptr));
146 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
147  ardrone3_speedsettings_maxverticalspeed_ptr->GetCommandKey(),
148  ardrone3_speedsettings_maxverticalspeed_ptr));
149 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
150  ardrone3_speedsettings_maxrotationspeed_ptr->GetCommandKey(),
151  ardrone3_speedsettings_maxrotationspeed_ptr));
152 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
153  ardrone3_speedsettings_hullprotection_ptr->GetCommandKey(),
154  ardrone3_speedsettings_hullprotection_ptr));
155 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
156  ardrone3_speedsettings_outdoor_ptr->GetCommandKey(),
157  ardrone3_speedsettings_outdoor_ptr));
158 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
159  ardrone3_speedsettings_maxpitchrollrotationspeed_ptr->GetCommandKey(),
160  ardrone3_speedsettings_maxpitchrollrotationspeed_ptr));
161 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
162  ardrone3_networksettings_wifiselection_ptr->GetCommandKey(),
163  ardrone3_networksettings_wifiselection_ptr));
164 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
165  ardrone3_picturesettings_videostabilizationmode_ptr->GetCommandKey(),
166  ardrone3_picturesettings_videostabilizationmode_ptr));
167 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
168  ardrone3_picturesettings_videorecordingmode_ptr->GetCommandKey(),
169  ardrone3_picturesettings_videorecordingmode_ptr));
170 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
171  ardrone3_picturesettings_videoframerate_ptr->GetCommandKey(),
172  ardrone3_picturesettings_videoframerate_ptr));
173 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
174  ardrone3_picturesettings_videoresolutions_ptr->GetCommandKey(),
175  ardrone3_picturesettings_videoresolutions_ptr));
176 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
177  ardrone3_gpssettings_hometype_ptr->GetCommandKey(),
178  ardrone3_gpssettings_hometype_ptr));
179 callback_map_.insert(std::pair<eARCONTROLLER_DICTIONARY_KEY, boost::shared_ptr<cb::AbstractCommand> >(
180  ardrone3_gpssettings_returnhomedelay_ptr->GetCommandKey(),
181  ardrone3_gpssettings_returnhomedelay_ptr));
182 #endif // UPDTAE_CALLBACK_MAP


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