Skip to content

Commit d1c14d4

Browse files
authored
Merge pull request #8 from AutoModality/AM-604/4_0_1
Updated to DJI 4.0.1
2 parents 27c90d5 + 8fc8e1b commit d1c14d4

118 files changed

Lines changed: 10471 additions & 2067 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ build
1414
catkin_ws
1515
.vscode
1616

17-
debian/ros-*-dji-onboard-sdk-ros*
17+
debian/ros-*-dji-onboard-sdk-ros*
18+
debian/ros-*-dji-osdk-ros*

CMakeLists.txt

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 2.8.3)
2-
project(dji_sdk) ## Compile as C++11, supported in ROS Kinetic and newer
2+
project(dji_osdk_ros) ## Compile as C++11, supported in ROS Kinetic and newer
33
# add_compile_options(-std=c++11)
44

55
## Find catkin macros and libraries
@@ -9,10 +9,12 @@ find_package(catkin REQUIRED COMPONENTS
99
geometry_msgs
1010
message_generation
1111
nav_msgs
12+
nmea_msgs
1213
roscpp
1314
rospy
1415
std_msgs
1516
sensor_msgs
17+
message_filters # for message_filter
1618
)
1719

1820
## System dependencies are found with CMake's conventions
@@ -69,13 +71,32 @@ find_package(FFMPEG REQUIRED)
6971
## Generate msg in the 'msg' folder
7072
add_message_files(
7173
FILES
72-
CameraData.msg
7374

7475
FCTimeInUTC.msg
7576
GPSUTC.msg
7677
Gimbal.msg
7778
Waypoint.msg
7879
WaypointList.msg
80+
WaypointV2AircraftControlActuatorFlying.msg
81+
WaypointV2AircraftControlActuatorRotateHeading.msg
82+
WaypointV2AircraftControlActuator.msg
83+
WaypointV2AssociateTrigger.msg
84+
WaypointV2CameraActuatorFocalLengthParam.msg
85+
WaypointV2CameraActuatorFocusParam.msg
86+
WaypointV2CameraActuator.msg
87+
WaypointV2Config.msg
88+
WaypointV2GimbalActuatorRotationParam.msg
89+
WaypointV2GimbalActuator.msg
90+
WaypointV2InitSetting.msg
91+
WaypointV2IntervalTrigger.msg
92+
WaypointV2ReachpointTrigger.msg
93+
WaypointV2SampleReachPointTrigger.msg
94+
WaypointV2TrajectoryTrigger.msg
95+
WaypointV2Action.msg
96+
WaypointV2.msg
97+
WaypointV2MissionEventPush.msg
98+
WaypointV2MissionStatePush.msg
99+
79100
MobileData.msg
80101
PayloadData.msg
81102
MissionWaypointAction.msg
@@ -90,6 +111,9 @@ add_message_files(
90111
## Generate services in the 'srv' folder
91112
add_service_files(
92113
FILES
114+
115+
GetDroneType.srv
116+
GetM300StereoParams.srv
93117
FlightTaskControl.srv
94118
GimbalAction.srv
95119
CameraEV.srv
@@ -108,8 +132,21 @@ add_service_files(
108132
MFIO.srv
109133
SetGoHomeAltitude.srv
110134
SetNewHomePoint.srv
111-
AdvancedSensing.srv
135+
SetupCameraH264.srv
112136
AvoidEnable.srv
137+
InitWaypointV2Setting.srv
138+
UploadWaypointV2Mission.srv
139+
UploadWaypointV2Action.srv
140+
DownloadWaypointV2Mission.srv
141+
StartWaypointV2Mission.srv
142+
StopWaypointV2Mission.srv
143+
PauseWaypointV2Mission.srv
144+
ResumeWaypointV2Mission.srv
145+
GenerateWaypointV2Action.srv
146+
SetGlobalCruisespeed.srv
147+
GetGlobalCruisespeed.srv
148+
SubscribeWaypointV2Event.srv
149+
SubscribeWaypointV2State.srv
113150

114151
Activation.srv
115152
CameraAction.srv
@@ -285,6 +322,9 @@ install(DIRECTORY include/${PROJECT_NAME}/
285322
PATTERN ".svn" EXCLUDE
286323
)
287324

325+
install(DIRECTORY include/dji_osdk_ros_obsoleted
326+
DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION})
327+
288328
## Install launch files into share directory
289329
install(DIRECTORY launch
290330
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}

Makefile

Lines changed: 0 additions & 18 deletions
This file was deleted.

ReadMe.md

Lines changed: 101 additions & 29 deletions
Large diffs are not rendered by default.

configure

Lines changed: 0 additions & 22 deletions
This file was deleted.

debian/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

debian/bloom-generate.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Debian dir generated by bloom using AMROS cli

debian/changelog

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
ros-melodic-dji-onboard-sdk-ros (4.0.0-AM7) unstable; urgency=medium
1+
ros-melodic-dji-osdk-ros (4.0.1002-0bionic) bionic; urgency=high
2+
3+
* Autogenerated, no changelog for this version found in CHANGELOG.rst.
4+
5+
-- kevin.hoo <kevin.hoo@dji.com> Mon, 11 Jan 2021 22:41:01 -0000
6+
7+

debian/control

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
1-
Source: ros-melodic-dji-onboard-sdk-ros
2-
Section: unknown
3-
Priority: extra
4-
Maintainer: AutoModality <dev@automodality.com>
5-
Build-Depends: debhelper (>=9) ,
6-
dji-onboard-sdk,
7-
ros-melodic-nmea-msgs,
8-
libusb-1.0-0-dev,
9-
ffmpeg,
10-
Standards-Version: 3.9.6
11-
Homepage: https://github.com/AutoModality/OSDK-ROS
1+
Source: ros-melodic-dji-osdk-ros
2+
Section: misc
3+
Priority: optional
4+
Maintainer: kevin.hoo <kevin.hoo@dji.com>
5+
Build-Depends: debhelper (>= 9.0.0), ros-melodic-actionlib, ros-melodic-actionlib-msgs, ros-melodic-catkin, ros-melodic-geometry-msgs, ros-melodic-message-filters, ros-melodic-message-generation, ros-melodic-nav-msgs, ros-melodic-nmea-msgs, ros-melodic-roscpp, ros-melodic-rospy, ros-melodic-std-msgs
6+
Homepage: http://developer.dji.com/onboard-sdk/documentation/github-platform-docs/ROS/README.html
7+
Standards-Version: 3.9.2
128

13-
Package: ros-melodic-dji-onboard-sdk-ros
9+
Package: ros-melodic-dji-osdk-ros
1410
Architecture: any
15-
Multi-Arch: foreign
16-
Depends: ${misc:Depends}, ${shlibs:Depends} ,
17-
dji-onboard-sdk,
18-
ros-melodic-nmea-msgs,
19-
libusb-1.0-0-dev,
20-
ffmpeg,
21-
Description: OSDK-ROS node for interfacing with DJI's OSDK
22-
11+
Depends: ${shlibs:Depends}, ${misc:Depends}, ros-melodic-actionlib, ros-melodic-actionlib-msgs, ros-melodic-geometry-msgs, ros-melodic-message-filters, ros-melodic-message-runtime, ros-melodic-nav-msgs, ros-melodic-nmea-msgs, ros-melodic-roscpp, ros-melodic-rospy, ros-melodic-std-msgs
12+
Description: A ROS package using DJI Onboard SDK

debian/rules

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,65 @@
11
#!/usr/bin/make -f
2-
# You must remove unused comment lines for the released package.
3-
#export DH_VERBOSE = 1
4-
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5-
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
6-
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
2+
# -*- makefile -*-
3+
# Sample debian/rules that uses debhelper.
4+
# This file was originally written by Joey Hess and Craig Small.
5+
# As a special exception, when this file is copied by dh-make into a
6+
# dh-make output file, you may use that output file without restriction.
7+
# This special exception was added by Craig Small in version 0.37 of dh-make.
78

8-
%:
9-
dh $@
9+
# Uncomment this to turn on verbose mode.
10+
export DH_VERBOSE=1
11+
# TODO: remove the LDFLAGS override. It's here to avoid esoteric problems
12+
# of this sort:
13+
# https://code.ros.org/trac/ros/ticket/2977
14+
# https://code.ros.org/trac/ros/ticket/3842
15+
export LDFLAGS=
16+
export PKG_CONFIG_PATH=/opt/ros/melodic/lib/pkgconfig
17+
# Explicitly enable -DNDEBUG, see:
18+
# https://github.com/ros-infrastructure/bloom/issues/327
19+
export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG
1020

21+
%:
22+
dh $@ -v --buildsystem=cmake
1123

1224
override_dh_auto_configure:
13-
@echo "Running dh_auto_configure"
14-
dh_auto_configure
25+
# In case we're installing to a non-standard location, look for a setup.sh
26+
# in the install tree that was dropped by catkin, and source it. It will
27+
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
28+
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
29+
dh_auto_configure -- \
30+
-DCATKIN_BUILD_BINARY_PACKAGE="1" \
31+
-DCMAKE_INSTALL_PREFIX="/opt/ros/melodic" \
32+
-DCMAKE_PREFIX_PATH="/opt/ros/melodic"
1533

1634
override_dh_auto_build:
17-
@echo "Running the build"
35+
# In case we're installing to a non-standard location, look for a setup.sh
36+
# in the install tree that was dropped by catkin, and source it. It will
37+
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
38+
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
1839
dh_auto_build
19-
@echo "Done running the build"
40+
41+
override_dh_auto_test:
42+
# In case we're installing to a non-standard location, look for a setup.sh
43+
# in the install tree that was dropped by catkin, and source it. It will
44+
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
45+
echo -- Running tests. Even if one of them fails the build is not canceled.
46+
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
47+
dh_auto_test || true
48+
49+
override_dh_shlibdeps:
50+
# In case we're installing to a non-standard location, look for a setup.sh
51+
# in the install tree that was dropped by catkin, and source it. It will
52+
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
53+
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
54+
dh_shlibdeps -l$(CURDIR)/debian/ros-melodic-dji-osdk-ros//opt/ros/melodic/lib/
55+
56+
override_dh_auto_install:
57+
# In case we're installing to a non-standard location, look for a setup.sh
58+
# in the install tree that was dropped by catkin, and source it. It will
59+
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
60+
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
61+
dh_auto_install
62+
2063

2164
override_dh_builddeb:
2265
dh_builddeb --destdir=.

0 commit comments

Comments
 (0)