SITL Simulator —— ArduPilot —— Windows

2023-05-16

版权声明:本文为博主原创博文,未经允许不得转载,若要转载,请说明出处并给出博文链接 

参考网页:http://ardupilot.org/dev/docs/sitl-native-on-windows.html

本人实测流程:

1. 安装MAVProxy,下载地址:http://firmware.ardupilot.org/Tools/MAVProxy/MAVProxySetup-latest.exe

    安装可执行文件,接受许可证和所有其他默认设置。(一定要安装在C盘的program files(x86)下,否则后面会报错)

2. 安装Cygwin, 下载Cygwin 32-bit installer or the Cygwin 64-bit installer(根据自己的电脑选择).

而后  接受所有提示(包括默认文件位置),直到到达“选择包”对话框。有数千个包。 查找包的最简单方法是搜索名称。 当您找到所需的软件包时,单击“skip”按钮以选择下载:

接着  选择下面列出的包(使用“名称”字段中的文本进行搜索,通过确认类别,名称和描述来选择下载):

名称类别 / 名称 / 描述
autoconfDevel | autoconf: Wrapper scripts for autoconf commands
automakeDevel | automake: Wrapper scripts for automake and aclocal
ccacheDevel | ccache: A C compiler cache for improving recompilation
g++Devel | gcc-g++ GNU Compiler Collection (C++)
gitDevel | git: Distributed version control system
libtoolDevel | libtool: Generic library support script
makeDevel | make: The GNU version of the ‘make’ utility
gawkInterpreters | gawk: GNU awk, a pattern scanning and processing language
libexpatLibs | libexpat-devel: Expat XML parser library (development files)
libxml2-develLibs | libxml2-devel: Gnome XML library (development)
libxslt-develLibs | libxslt-devel: XML template library (development files)
python2-develPython | python2-devel: Python2 language interpreter (python3 does not work yet)
procpsSystem | procps-ng: System and process monitoring utilities (required for pkill)

如果您还想编译固件,那么您还应该安装这些软件包:

名称类别 / 名称 / 描述
patchDevel | patch: Applies diff files
cmakeDevel | cmake: Cross-platform makefile generation system
flexDevel | flex: A fast lexical analizer generator
bisonDevel | bison: GNU yacc-compatible parser generator
zipDevel | zip: Info-ZIP compression utility
unzipDevel | unzip: Info-ZIP decompression utility
python2-pipPython | python2-pip: Python package instalation tool

上述软件包安装好后,如果您还要编译固件,则还需要在cygwin提示符下发出以下命令:

pip2 install argparse
pip2 install empy

3. 在Cygwin中设置目录/路径

    先打开 Cygwin ;

    将文件系统导航到主目录并打开.bashrc文件(例如C:\ cygwin \ home \ user_name \ .bashrc。

   通过在.bashrc末尾添加以下行,将Ardupilot源的路径添加到cygwin。 请注意,您的源可能不在$ HOME中,而是在以/ cygdrive / c / Users /开头的其他固定路径中

export PATH=$PATH:$HOME/ardupilot/Tools/autotest

    此时关闭Cygwin,再打开。路径就已经包含了进来。

4. 安装需要的Python安装包

python -m ensurepip --user
python -m pip install --user future
python -m pip install --user lxml
python -m pip install --user uavcan

5.  下载和编译ArduPilot

 在Cygwin里面输入下面:

git clone git://github.com/ArduPilot/ardupilot.git
cd ardupilot
git submodule update --init --recursive

如果你已经有clone过了ArduPilot,请使用“cd / cygdrive / drive / path”在终端中导航到它即“cd / cygdrive / c / Users / James / Documents / GitHub / ardupilot”(替换你自己的路径)。

在终端导航到ArduPlane目录并运行make,如下所示(也可以更换到ArduCopter or APMrover2):

cd ~/ardupilot/Arduplane
make sitl

6. 上述全部OK,就执行下面(不同的机型  在 -f后面修改,固定翼是plane ,可以sim_vehicle.py  -h 查看下)

cd ~/ardupilot/ArduPlane
sim_vehicle.py -f plane

7. 打开misson planner, 默认连接TCP:127.0.0.1:5762

8. 最后附上一张用模拟器测试飞行的路径图

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

SITL Simulator —— ArduPilot —— Windows 的相关文章

随机推荐

  • Linux内核源码之自旋锁的实现

    1 Linux内核同步 Linux内核中有许多共享资源 xff0c 这些共享资源是内核中进程都有机会访问到的 内核对其中一些共享资源的访问是独占的 xff0c 因此需要提供机制对共享资源进行保护 xff0c 确保任意时刻只有一个进程在访问共
  • cmake编译c++程序

    当在Linux系统下编写程序时候 xff0c 如果没有类似于visual studio vs code等IDE 集成开发环境 时 xff0c 如何编译 运行程序呢 xff1f 一种方法是编写makefile文件 xff0c 用makefil
  • #if 0 /#if 1用法介绍(屏蔽代码块)

    当屏蔽掉大块代码时 xff0c 使用 34 if 0 34 比使用 34 34 要好 xff0c 因为用 34 34 做大段的注释要防止被注释掉的代码中有嵌套的 34 34 这会导致注释掉的代码区域不是你想要的范围 xff0c 当被注释掉的
  • 调试工具之UDP/TCP网络调试助手NetAssist

    参考文章列表 xff1a https blog csdn net zhzht19861011 article details 4545260 https blog csdn net qq 29350001 article details 7
  • idea第一次新建SpringBoot项目报错 Error:(3, 32) java: 程序包org.springframework.boot不存在

    跟着网上的教程第一次创建SpringBoot xff0c 创建好之后他们都可以直接写Controller类 xff0c 然后运行就能从localhost访问hello word了 但是我再第一次创建之后 xff0c 出现下面的情况 Erro
  • 本地socket的select用法

    学习socket的select用法 xff0c 下面代码大部分是从网上借鉴的 xff0c 只不过把网络部分的socket改为了本地socket xff0c 并加了一些自己测试用的语句 xff0c 如果有冒犯之处请联系我 xff0c 我立马删
  • C/C++程序编译过程详解

    C C 43 43 程序编译过程详解 C语言的编译链接过程要把我们编写的一个c程序 xff08 源代码 xff09 转换成可以在硬件上运行的程序 xff08 可执行代码 xff09 xff0c 需要进行编译和链接 编译就是把文本形式源代码翻
  • realsense435i运行vins-mono,标定部分

    相机标定 1 安装kalibr xff1b 参考 xff1a https blog csdn net wangbaodong070411209 article details 112248834 https blog csdn net we
  • TX2入门教程软件篇-安装python3.6+

    sudo add apt repository ppa jonathonf python 3 6 sudo apt get update sudo apt get install python3 6 增加python3两个版本的优先级 su
  • Ubuntu 16.04使用Wireshark 抓包分析USB Audio Class 设备流程

    0 前言 为了分析usb麦克风的交互流程 xff0c 需要进行usb抓包 1 安装相关插件 安装usbmon sudo addgroup usbmon sudo gpasswd a USER usbmon echo 39 SUBSYSTEM
  • QT5.5实现串口通信

    QT5 1以上版本自带QtSerialPort集成库 xff0c 只要在头文件中集成 include lt QtSerialPort QSerialPort gt include lt QtSerialPort QSerialPortInf
  • “JTAG Warning: T-bit of XPSR is 0 but should be 1. Changed to 1.” 解决方案

    最近在调试一块GD32F107RCT6 xff0c 无法进行下载 错误提示 xff1a JTAG Warning T bit of XPSR is 0 but should be 1 Changed to 1 1 判断BOOT0 BOOT1
  • Windows无法访问Ubuntu Samba 解决方案

    好久没用Windows访问Ubuntu的共享文件 xff0c 忘记了密码 xff0c 重装Samba后提示Windows无法访问 可以打开文件但是无法访问 查看log var log samba log 192 168 1 39 smbd
  • keil C数组声明问题

    C语言中 xff0c 我们声明一个一维数组 xff0c 可以用以下几种方法 int buf 3 int buf 61 0 int buf 3 61 1 2 3 但是今天在keil中 使用int buf 61 0 这种方式进行声明 xff0c
  • 初学QML之qmlRegisterType

    qmlRegisterType 是一个可以将C 43 43 实现的类在QML中调用的 xff0c 连接C 43 43 和QML的一个工具 首先来看QtAssistant的介绍 int qmlRegisterType const char u
  • 在IDEA中引入jQuery无效

    在idea开发前端页面中 xff0c 引入jQuery后 xff0c 使用 会出现下划线 xff0c 提示未定义 虽然不影响使用 xff0c 运行后可以得到正常结果 xff0c 但还是看的很不爽 解决办法 xff1a Preferences
  • Asterisk WebRTC 搭建指南

    1 WebRTC简介 WEBRTC是一个开源项目 xff0c 其宗旨是让WEB浏览器通过简单的JavaScript具备实时通信 Real Time Communications RTC 的能力 WEBRTC目前支持JS和HTML5 xff0
  • UDP三种通讯方式

    单播 xff1a 单播用于两个主机之间的端对端通信 组播 xff1a 组播用于对一组特定的主机进行通信 广播 xff1a 广播用于一个主机对整个局域网上所有主机上的数据通信 单播实现 发送端 public class SendDemo pu
  • ArduPilot——如何对飞控LOG进行简易振动分析

    版权声明 xff1a 本文为博主原创博文 xff0c 未经允许不得转载 xff0c 若要转载 xff0c 请说明出处并给出博文链接 首先 xff0c 你得先有一架可以飞的且刷的是ArduPilot飞控代码的无人机和地面站Misson Pla
  • SITL Simulator —— ArduPilot —— Windows

    版权声明 xff1a 本文为博主原创博文 xff0c 未经允许不得转载 xff0c 若要转载 xff0c 请说明出处并给出博文链接 参考网页 xff1a http ardupilot org dev docs sitl native on