我使用的操作系统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