Skip to content

Commit f9575c9

Browse files
authored
Merge pull request #70 from AutonomyLab/sdk_3_10_1
SDK 3.10.1 Support
2 parents d386d20 + 41568d9 commit f9575c9

File tree

98 files changed

+1992
-541
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+1992
-541
lines changed

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ env:
1515
#- ROS_DISTRO_NAME=kinetic OS_NAME=ubuntu OS_CODE_NAME=xenial ARCH=amd64
1616
install:
1717
# either install the latest released version of ros_buildfarm
18-
# (TODO the current release 1.0.1 is not sufficient so for now use the master branch)
19-
#- pip install ros_buildfarm
18+
- pip install ros_buildfarm
2019
# or checkout a specific branch
21-
- git clone -b master https://github.com/ros-infrastructure/ros_buildfarm /tmp/ros_buildfarm
22-
- pip install /tmp/ros_buildfarm
20+
# - git clone -b master https://github.com/ros-infrastructure/ros_buildfarm /tmp/ros_buildfarm
21+
# - pip install /tmp/ros_buildfarm
2322
# checkout catkin for catkin_test_results script
2423
- git clone https://github.com/ros/catkin /tmp/catkin
2524
# run devel job for a ROS repository with the same name as this repo
@@ -37,4 +36,4 @@ script:
3736
# get summary of test results
3837
- /tmp/catkin/bin/catkin_test_results $JOB_PATH/catkin_workspace/test_results --all
3938
notifications:
40-
# email: change
39+
# email: change

bebop_driver/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ roslint_cpp(
5656
## Build ##
5757
###########
5858

59-
# 3.9.1
60-
set(ARSDK_MANIFEST_HASH 40d5d08ff37a43b0b2deb641cc899d5356163db7)
59+
# 3.10.1
60+
set(ARSDK_MANIFEST_HASH 149b0e0fe374c12db48c8beaed167a4a5555a370)
6161

6262
add_custom_target(ARSDK_MKDIR
6363
COMMAND ${CMAKE_COMMAND} -E make_directory ${CATKIN_DEVEL_PREFIX}/arsdk)

bebop_driver/cfg/autogenerated/BebopArdrone3.cfg

Lines changed: 40 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

33
# BebopArdrone3.cfg
4-
# auto-generated from https://raw.githubusercontent.com/Parrot-Developers/libARCommands/7b5cf7a8009278cf634ee33d5c2ed5dd8e573eb4/Xml/ARDrone3_commands.xml
4+
# auto-generated from https://raw.githubusercontent.com/Parrot-Developers/arsdk-xml/d0c8b256a8592b25a551f3ba742c58ae3da2f93a/xml/ardrone3.xml
55
# Do not modify this file by hand. Check scripts/meta folder for generator files.
66

77
PACKAGE = "bebop_driver"
@@ -12,79 +12,73 @@ gen = ParameterGenerator()
1212

1313
# Piloting Settings commands
1414
pilotingsettings_group_gen = gen.add_group("pilotingsettings")
15-
# Set Max Altitude
15+
# Set max altitude.\n The drone will not fly over this max altitude when it is in manual piloting.\n Please note that if you set a max altitude which is below the current drone altitude, the drone will not go to given max altitude.\n You can get the bounds in the event [MaxAltitude](#1-6-0).
1616
pilotingsettings_group_gen.add("PilotingSettingsMaxAltitudeCurrent", double_t, 0, "Current altitude max in m", 0 , 0, 160)
17-
# Set Max Tilt
17+
# Set max pitch/roll.\n This represent the max inclination allowed by the drone.\n You can get the bounds with the commands [MaxPitchRoll](#1-6-1).
1818
pilotingsettings_group_gen.add("PilotingSettingsMaxTiltCurrent", double_t, 0, "Current tilt max in degree", 0 , -180.0, 180.0)
19-
# @deprecated Enable/Disable absolut control
19+
# Set absolut control.
2020
PilotingSettingsAbsolutControlOn_enum = gen.enum([
2121
gen.const("PilotingSettingsAbsolutControlOn_OFF", int_t, 0, "Disabled"),
2222
gen.const("PilotingSettingsAbsolutControlOn_ON", int_t, 1, "Enabled"),
2323
], "1 to enable, 0 to disable")
2424
pilotingsettings_group_gen.add("PilotingSettingsAbsolutControlOn", int_t, 0, "1 to enable, 0 to disable", 0, 0, 1, edit_method=PilotingSettingsAbsolutControlOn_enum)
25-
# Set the distance max of the drone
25+
# Set max distance.\n You can get the bounds from the event [MaxDistance](#1-6-3).\n\n If [Geofence](#1-6-4) is activated, the drone wont fly over the given max distance.
2626
pilotingsettings_group_gen.add("PilotingSettingsMaxDistanceValue", double_t, 0, "Current max distance in meter", 0 , 0, 160)
27-
# Indication about how the product handle flying over the max distance limitation
27+
# Enable geofence.\n If geofence is enabled, the drone wont fly over the given max distance.\n You can get the max distance from the event [MaxDistance](#1-6-3). \n For copters: the distance is computed from the controller position, if this position is not known, it will use the take off.\n For fixed wings: the distance is computed from the take off position.
2828
PilotingSettingsNoFlyOverMaxDistanceShouldnotflyover_enum = gen.enum([
2929
gen.const("PilotingSettingsNoFlyOverMaxDistanceShouldnotflyover_OFF", int_t, 0, "Disabled"),
3030
gen.const("PilotingSettingsNoFlyOverMaxDistanceShouldnotflyover_ON", int_t, 1, "Enabled"),
3131
], "1 if the drone cant fly further than max distance, 0 if no limitation on the drone should be done")
3232
pilotingsettings_group_gen.add("PilotingSettingsNoFlyOverMaxDistanceShouldnotflyover", int_t, 0, "1 if the drone cant fly further than max distance, 0 if no limitation on the drone should be done", 0, 0, 1, edit_method=PilotingSettingsNoFlyOverMaxDistanceShouldnotflyover_enum)
33-
# Enable / Disable Banked Turn mode.
33+
# Set banked turn mode.\n When banked turn mode is enabled, the drone will use yaw values from the piloting command to infer with roll and pitch on the drone when its horizontal speed is not null.
3434
PilotingSettingsBankedTurnValue_enum = gen.enum([
3535
gen.const("PilotingSettingsBankedTurnValue_OFF", int_t, 0, "Disabled"),
3636
gen.const("PilotingSettingsBankedTurnValue_ON", int_t, 1, "Enabled"),
3737
], "1 to enable, 0 to disable")
3838
pilotingsettings_group_gen.add("PilotingSettingsBankedTurnValue", int_t, 0, "1 to enable, 0 to disable", 0, 0, 1, edit_method=PilotingSettingsBankedTurnValue_enum)
39-
# Set Min Altitude
39+
# Set minimum altitude.\n Only available for fixed wings.
4040
pilotingsettings_group_gen.add("PilotingSettingsMinAltitudeCurrent", double_t, 0, "Current altitude min in m", 0 , 0, 160)
41-
# Set Fixed wings circling default direction
41+
# Set default circling direction. This direction will be used when the drone use an automatic circling or when [CIRCLE](#1-0-9) is sent with direction *default*.\n Only available for fixed wings.
4242
PilotingSettingsCirclingDirectionValue_enum = gen.enum([
4343
gen.const("PilotingSettingsCirclingDirectionValue_CW", int_t, 0, "Circling ClockWise"),
4444
gen.const("PilotingSettingsCirclingDirectionValue_CCW", int_t, 1, "Circling Counter ClockWise"),
4545
], "The circling direction")
4646
pilotingsettings_group_gen.add("PilotingSettingsCirclingDirectionValue", int_t, 0, "The circling direction", 0, 0, 1, edit_method=PilotingSettingsCirclingDirectionValue_enum)
47-
# Set Fixed wings circling radius
47+
# Set circling radius.\n Only available for fixed wings.
4848
pilotingsettings_group_gen.add("PilotingSettingsCirclingRadiusValue", int_t, 0, "The circling radius in meter", 0 , 0, 160)
49-
# Set Fixed wings circling altitude
49+
# Set min circling altitude (not used during take off).\n Only available for fixed wings.
5050
pilotingsettings_group_gen.add("PilotingSettingsCirclingAltitudeValue", int_t, 0, "The circling altitude in meter", 0 , 0, 160)
51-
# Set pitch mode
51+
# Set pitch mode.\n Only available for fixed wings.
5252
PilotingSettingsPitchModeValue_enum = gen.enum([
5353
gen.const("PilotingSettingsPitchModeValue_NORMAL", int_t, 0, "Positive pitch values will make the drone lower its nose. Negative pitch values will make the drone raise its nose."),
5454
gen.const("PilotingSettingsPitchModeValue_INVERTED", int_t, 1, "Pitch commands are inverted. Positive pitch values will make the drone raise its nose. Negative pitch values will make the drone lower its nose."),
5555
], "The Pitch mode")
5656
pilotingsettings_group_gen.add("PilotingSettingsPitchModeValue", int_t, 0, "The Pitch mode", 0, 0, 1, edit_method=PilotingSettingsPitchModeValue_enum)
57-
# Set fixed wings Landing Mode
58-
PilotingSettingsLandingModeValue_enum = gen.enum([
59-
gen.const("PilotingSettingsLandingModeValue_LINEAR", int_t, 0, "Linear landing."),
60-
gen.const("PilotingSettingsLandingModeValue_SPIRALE", int_t, 1, "Spirale landing."),
61-
], "The Landing mode")
62-
pilotingsettings_group_gen.add("PilotingSettingsLandingModeValue", int_t, 0, "The Landing mode", 0, 0, 1, edit_method=PilotingSettingsLandingModeValue_enum)
6357

6458
# Speed Settings commands
6559
speedsettings_group_gen = gen.add_group("speedsettings")
66-
# Set Max Vertical speed
60+
# Set max vertical speed.
6761
speedsettings_group_gen.add("SpeedSettingsMaxVerticalSpeedCurrent", double_t, 0, "Current max vertical speed in m/s", 0 , 0.0, 10.0)
68-
# Set Max Yaw Rotation speed
62+
# Set max rotation speed.
6963
speedsettings_group_gen.add("SpeedSettingsMaxRotationSpeedCurrent", double_t, 0, "Current max yaw rotation speed in degree/s", 0 , 0, 900.0)
70-
# Presence of hull protection
64+
# Set the presence of hull protection.
7165
SpeedSettingsHullProtectionPresent_enum = gen.enum([
7266
gen.const("SpeedSettingsHullProtectionPresent_OFF", int_t, 0, "Disabled"),
7367
gen.const("SpeedSettingsHullProtectionPresent_ON", int_t, 1, "Enabled"),
7468
], "1 if present, 0 if not present")
7569
speedsettings_group_gen.add("SpeedSettingsHullProtectionPresent", int_t, 0, "1 if present, 0 if not present", 0, 0, 1, edit_method=SpeedSettingsHullProtectionPresent_enum)
76-
# @deprecated Outdoor property
70+
# Set outdoor mode.
7771
SpeedSettingsOutdoorOutdoor_enum = gen.enum([
7872
gen.const("SpeedSettingsOutdoorOutdoor_OFF", int_t, 0, "Disabled"),
7973
gen.const("SpeedSettingsOutdoorOutdoor_ON", int_t, 1, "Enabled"),
8074
], "1 if outdoor flight, 0 if indoor flight")
8175
speedsettings_group_gen.add("SpeedSettingsOutdoorOutdoor", int_t, 0, "1 if outdoor flight, 0 if indoor flight", 0, 0, 1, edit_method=SpeedSettingsOutdoorOutdoor_enum)
82-
# Set Max Pitch/Rool Rotation speed
76+
# Set max pitch/roll rotation speed.
8377
speedsettings_group_gen.add("SpeedSettingsMaxPitchRollRotationSpeedCurrent", double_t, 0, "Current max pitch/roll rotation speed in degree/s", 0 , 0, 900.0)
8478

8579
# Network settings commands
8680
networksettings_group_gen = gen.add_group("networksettings")
87-
# Auto-select channel of choosen band
81+
# Select or auto-select channel of choosen band.
8882
NetworkSettingsWifiSelectionType_enum = gen.enum([
8983
gen.const("NetworkSettingsWifiSelectionType_auto", int_t, 0, "Auto selection"),
9084
gen.const("NetworkSettingsWifiSelectionType_manual", int_t, 1, "Manual selection"),
@@ -100,24 +94,43 @@ networksettings_group_gen.add("NetworkSettingsWifiSelectionChannel", int_t, 0, "
10094

10195
# Photo settings chosen by the user
10296
picturesettings_group_gen = gen.add_group("picturesettings")
103-
# Set Video stabilization mode
97+
# Set video stabilization mode.
10498
PictureSettingsVideoStabilizationModeMode_enum = gen.enum([
10599
gen.const("PictureSettingsVideoStabilizationModeMode_roll_pitch", int_t, 0, "Video flat on roll and pitch"),
106100
gen.const("PictureSettingsVideoStabilizationModeMode_pitch", int_t, 1, "Video flat on pitch only"),
107101
gen.const("PictureSettingsVideoStabilizationModeMode_roll", int_t, 2, "Video flat on roll only"),
108102
gen.const("PictureSettingsVideoStabilizationModeMode_none", int_t, 3, "Video follows drone angles"),
109103
], "Video stabilization mode")
110104
picturesettings_group_gen.add("PictureSettingsVideoStabilizationModeMode", int_t, 0, "Video stabilization mode", 0, 0, 3, edit_method=PictureSettingsVideoStabilizationModeMode_enum)
105+
# Set video recording mode.
106+
PictureSettingsVideoRecordingModeMode_enum = gen.enum([
107+
gen.const("PictureSettingsVideoRecordingModeMode_quality", int_t, 0, "Maximize recording quality."),
108+
gen.const("PictureSettingsVideoRecordingModeMode_time", int_t, 1, "Maximize recording time."),
109+
], "Video recording mode")
110+
picturesettings_group_gen.add("PictureSettingsVideoRecordingModeMode", int_t, 0, "Video recording mode", 0, 0, 1, edit_method=PictureSettingsVideoRecordingModeMode_enum)
111+
# Set video framerate.
112+
PictureSettingsVideoFramerateFramerate_enum = gen.enum([
113+
gen.const("PictureSettingsVideoFramerateFramerate_24_FPS", int_t, 0, "23.976 frames per second."),
114+
gen.const("PictureSettingsVideoFramerateFramerate_25_FPS", int_t, 1, "25 frames per second."),
115+
gen.const("PictureSettingsVideoFramerateFramerate_30_FPS", int_t, 2, "29.97 frames per second."),
116+
], "Video framerate")
117+
picturesettings_group_gen.add("PictureSettingsVideoFramerateFramerate", int_t, 0, "Video framerate", 0, 0, 2, edit_method=PictureSettingsVideoFramerateFramerate_enum)
118+
# Set video streaming and recording resolutions.
119+
PictureSettingsVideoResolutionsType_enum = gen.enum([
120+
gen.const("PictureSettingsVideoResolutionsType_rec1080_stream480", int_t, 0, "1080p recording, 480p streaming."),
121+
gen.const("PictureSettingsVideoResolutionsType_rec720_stream720", int_t, 1, "720p recording, 720p streaming."),
122+
], "Video streaming and recording resolutions")
123+
picturesettings_group_gen.add("PictureSettingsVideoResolutionsType", int_t, 0, "Video streaming and recording resolutions", 0, 0, 1, edit_method=PictureSettingsVideoResolutionsType_enum)
111124

112125
# GPS settings
113126
gpssettings_group_gen = gen.add_group("gpssettings")
114-
# Set user preference for the type of the home position. Note that this is only a preference
127+
# Set the preferred home type.\n Please note that this is only a preference. The actual type chosen is given by the event [HomeType](#1-31-2).\n You can get the currently available types with the event [HomeTypeAvailability](#1-31-1).
115128
GPSSettingsHomeTypeType_enum = gen.enum([
116129
gen.const("GPSSettingsHomeTypeType_TAKEOFF", int_t, 0, "The drone will try to return to the take off position"),
117130
gen.const("GPSSettingsHomeTypeType_PILOT", int_t, 1, "The drone will try to return to the pilot position"),
118131
], "The type of the home position")
119132
gpssettings_group_gen.add("GPSSettingsHomeTypeType", int_t, 0, "The type of the home position", 0, 0, 1, edit_method=GPSSettingsHomeTypeType_enum)
120-
# Set the delay after which the drone will automatically try to return home
133+
# Set the delay after which the drone will automatically try to return home after a disconnection.
121134
gpssettings_group_gen.add("GPSSettingsReturnHomeDelayDelay", int_t, 0, "Delay in second", 0 , 0, 120)
122135

123136

0 commit comments

Comments
 (0)