PX4 jmavsim仿真环境搭建

匿名 (未验证) 提交于 2019-12-02 23:04:42

我使用的操作系统ubuntu18.04
px4固件1.9.0_alpha
开发环境:

Ubuntu Config

sudo apt-get remove modemmanager -y

Common dependencies

sudo apt-get update -y
sudo apt-get install git zip qtcreator cmake build-essential genromfs ninja-build exiftool vim-common -y

Required python packages

sudo apt-get install python-argparse python-empy python-toml python-numpy python-dev python-pip -y
sudo -H pip install --upgrade pip
sudo -H pip install pandas jinja2 pyserial pyyaml

optional python tools

sudo -H pip install pyulog

Install FastRTPS 1.5.0 and FastCDR-1.0.7

HOME目录下
mkdir eProsima_FastRTPS-1.5.0-Linux

cd ~ wget http://www.eprosima.com/index.php/component/ars/repository/eprosima-fast-rtps/eprosima-fast-rtps-1-5-0/eprosima_fastrtps-1-5-0-linux-tar-gz -O eprosima_fastrtps-1-5-0-linux.tar.gz tar -xzf eprosima_fastrtps-1-5-0-linux.tar.gz eProsima_FastRTPS-1.5.0-Linux/ tar -xzf eprosima_fastrtps-1-5-0-linux.tar.gz requiredcomponents tar -xzf requiredcomponents/eProsima_FastCDR-1.0.7-Linux.tar.gz cpucores=$(( $(lscpu | grep Core.*per.*socket | awk -F: '{print $2}') * $(lscpu | grep Socket\(s\) | awk -F: '{print $2}') )) (cd eProsima_FastCDR-1.0.7-Linux && ./configure --libdir=/usr/lib && make -j$cpucores && sudo make install) (cd eProsima_FastRTPS-1.5.0-Linux && ./configure --libdir=/usr/lib && make -j$cpucores && sudo make install) rm -rf requiredcomponents eprosima_fastrtps-1-5-0-linux.tar.gz popd 

jMAVSim simulator dependencies

echo “Installing jMAVSim simulator dependencies”
sudo apt-get install ant openjdk-8-jdk openjdk-8-jre -y

Clone PX4/Firmware

mkdir src
cd src
git clone https://github.com/PX4/Firmware.git

文章来源: https://blog.csdn.net/yxq_1234/article/details/86287814
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!