Arch Linux 개발 환경
WARNING
This development environment is community supported and maintained. It may or may not work with current versions of PX4.
See Toolchain Installation for information about the environments and tools supported by the core development team.
The PX4-Autopilot repository provides a convenient script to set your Arch installation up for PX4 development: Tools/setup/arch.sh.
The script installs (by default) all tools to build PX4 for NuttX targets and run simulation with JMAVSim. You can additionally install the Gazebo Classic simulator by specifying the command line argument: --gazebo
.
INFO
The instructions have been tested on Manjaro (Arch based distribution) as it is much easier to set up than Arch Linux.
스크립트를 가져와 실행하려면 다음 중 하나를 실행합니다.
Download PX4 Source Code and run the scripts in place:
shgit clone https://github.com/PX4/PX4-Autopilot.git bash PX4-Autopilot/Tools/setup/arch.sh
필요한 스크립트만 다운로드하여 실행합니다.
shwget https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/Tools/setup/arch.sh wget https://raw.githubusercontent.com/PX4/PX4-Autopilot/main/Tools/setup/requirements.txt bash arch.sh
스크립트는 다음의 매개변수를 사용합니다.
--gazebo
: Add this parameter to install Gazebo from the AUR.INFO
Gazebo gets compiled from source. It takes some time to install and requires entering the
sudo
password multiple times (for dependencies).
:::
--no-nuttx
: Do not install the NuttX/Pixhawk toolchain (i.e. if only using simulation).--no-sim-tools
: Do not install jMAVSim/Gazebo (i.e. if only targeting Pixhawk/NuttX targets)