阅读量:2
要在Ubuntu上安装Parrot ARDrone 2.0的SDK,您可以按照以下步骤进行操作:
- 首先,确保您的Ubuntu系统上已经安装了所有必要的依赖项。打开终端并运行以下命令更新软件包列表并安装依赖项:
sudo apt update sudo apt install git build-essential cmake libudev-dev
- 接下来,从Parrot的GitHub存储库中克隆ARDroneSDK3的源代码。打开终端并运行以下命令:
git clone https://github.com/ARDroneSDK3/ARSDKBuildUtils.git cd ARSDKBuildUtils/
- 编译和安装ARSDKBuildUtils。运行以下命令:
./build.sh -p arsdk-native -t build-sdk -j
- 安装ARSDKBuildUtils的依赖项。运行以下命令:
sudo apt-get install libasound2-dev libavahi-client-dev libavcodec-dev libavformat-dev libcurl4-openssl-dev libgcrypt20-dev libglib2.0-dev libjpeg-dev libjson-c-dev libsoup2.4-dev libssl-dev libtool libudev-dev libusb-1.0-0-dev libxml2-dev zlib1g-dev python
- 编译和安装ARDroneSDK3。返回上一级目录并运行以下命令:
cd ../ ./build.sh -p arsdk-native -t build-sdk -j
- 最后,将ARDroneSDK3添加到LD_LIBRARY_PATH环境变量中。运行以下命令:
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/ARSDKBuildUtils/Targets/Unix/Install/lib' >> ~/.bashrc source ~/.bashrc
现在,您已经在Ubuntu上成功安装了Parrot ARDrone 2.0的SDK。您可以使用提供的示例代码和文档来开始开发您的应用程序。