ROS与DJI N3飞控建立连接并简单控制

本文介绍了如何在Ubuntu 16.04和ROS Kinetic环境下,通过OSDK 3.3.1和Onboard SDK ROS 3.3.1与DJI N3飞控建立连接并进行二次开发。详细步骤包括OSDK的安装、ROS节点的构建、配置文件编辑、样品运行等,并提到了一些注意事项,如设置波特率、获取USB端口权限等。
摘要由CSDN通过智能技术生成

平台: UBUNTU16.04
ROS kinetic
DJI ASSISTANT 2
OSDK3.3.1
Onboard SDK ROS 3.3.1
DJI N3飞控(型号:3.2.36.8 固件:1.7.1.5)
DJI LightBridge II

一、OSDK安装
参考:http://developer.dji.com/onboard-sdk/documentation/sample-doc/sample-setup.html#ros-oes
Installing the OSDK
1-Clone (or download as zip) the DJI OSDK from Github here.
https://github.com/dji-sdk/Onboard-SDK/releases
2-Open a terminal inside the onboardsdk folder and follow these steps to build the core OSDK library:

mkdir build
cd build
cmake ..
make djiosdk-core

3-Now, install the osdk-core library to your system so that the dji_sdk ROS node may find it and link against it:

sudo make install djiosdk-core

Building the ROS Nodes
4-If you don’t have a catkin workspace, create one as follows:

mkdir catkin_ws
cd catkin_ws
mkdir src
cd src
catkin_init_workspace

5-Clone (or download as zip) the DJI OSDK-ROS from Github here in the src folder.
https://github.com/dji-sdk/Onboard-SDK-ROS/releases
6-Build the dji_sdk ROS package and the dji_sdk_demo ROS package.

cd ..
catkin_make

Configuration
7-Remember to source your setup.bash:

source devel/setup.bash

8-Edit the launch file and enter your App ID, Key, Baudrate and Port name in the designated places:

rosed dji_sdk sdk.launch

Running the Samples
9-Start up the dji_sdk ROS node:

roslaunch dji_sdk sdk
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值