작성자: 박준규

2023.01.30(화)

<aside> 💡 Tested on an AMD64 architecture machine, with ROS2 Foxy and Ubuntu 20.04.5 LTS (Focal). If you haven’t setup your PC yet, please see 윈도우와 듀얼부팅하기 (ROS2)

</aside>

What you will be able to do at the end of this page:

https://www.youtube.com/watch?v=5AOorM96Shc

Let’s go!

Setup PX4-Autopilot

https://classic.gazebosim.org/tutorials?tut=ros2_installing&cat=connect_ros

https://docs.px4.io/main/en/dev_setup/dev_env_linux_ubuntu.html

  1. Install Gazebo simulator:

    sudo apt install ros-foxy-gazebo-ros-pkgs
    
  2. Download the PX4-Autopilot source code:

    git clone <https://github.com/PX4/PX4-Autopilot.git> --recursive
    
  3. Run the ubuntu.sh file:

    bash ./PX4-Autopilot/Tools/setup/ubuntu.sh
    
  4. Restart the computer:

    sudo reboot
    

Setup QGroundControl

https://docs.qgroundcontrol.com/master/en/getting_started/download_and_install.html

  1. Before installing QGroundControl for the first time:

    sudo usermod -a -G dialout $USER
    sudo apt-get remove modemmanager -y
    sudo apt install gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-gl -y
    sudo apt install libqt5gui5 -y
    sudo apt install libfuse2 -y
    
  2. Log out and log back in.

  3. Download QGroundControl.AppImage: https://github.com/mavlink/qgroundcontrol/releases

  4. Then in terminal:

    #Make the App Image executable
    chmod +x ./QGroundControl.AppImage
    
    #Run QGroundControl
    ./QGroundControl.AppImage
    

Try the Demo