Installation ============ .. image:: https://img.shields.io/badge/PX4--Autopilot-1.14.3-brightgreen.svg :target: https://github.com/PX4/PX4-Autopilot :alt: PX4-Autopilot 1.14.3 .. image:: https://img.shields.io/badge/Ubuntu-24.04LTS-brightgreen.svg :target: https://releases.ubuntu.com/24.04/ :alt: Ubuntu 24.04 .. image:: https://img.shields.io/badge/ROS-Jazzy-brightgreen.svg :target: https://docs.ros.org/en/jazzy/index.html :alt: ROS 2 Jazzy Start by installing ROS 2 Jazzy by following the instructions on the `ROS 2 Jazzy Documentation `__. Only after you have installed ROS 2, you can proceed with the installation of Pegasus. Installing External Dependencies -------------------------------- 1. Create a separate workspace for the Pegasus external dependencies, such that you only need to compile them once: .. code:: bash mkdir -p ~/pegasus_external cd ~/pegasus_external # Install the dependencies for CasADi (IPOPT) sudo apt install coinor-libipopt-dev python3-pip ros-jazzy-async-web-server-cpp ros-jazzy-cv-bridge ros-jazzy-diagnostic-updater ros-jazzy-message-filters 2. Clone the `Pegasus External `__: .. code:: bash # Clone the repository (SSH) git clone git@github.com:PegasusResearch/pegasus_external.git src # Compile the code colcon build --symlink-install 3. Source the workspace in the .bashrc file: .. code:: bash echo "source ~/pegasus_external/install/setup.bash" >> ~/.bashrc source ~/.bashrc Installing Pegasus ------------------ 1. Create a separate workspace that will contain the actual Pegasus code: .. code:: bash # Create the workspace mkdir -p ~/pegasus/src cd ~/pegasus/src # Clone the repository (SSH) git clone git@github.com:PegasusResearch/pegasus.git --recursive 2. Compile the code: .. code:: bash # Go to the workspace cd ~/pegasus # Compile the code colcon build --symlink-install 3. Source the workspace in the .bashrc file: .. code:: bash echo "source ~/pegasus/install/setup.bash" >> ~/.bashrc source ~/.bashrc Running Simulations with Pegasus -------------------------------- - In order to run gazebo clasic simulations with the Pegasus, proceed to the page :ref:`Gazebo Classic`. - To run simulations with the Pegasus Simulator (Isaac Sim), proceed to the page :ref:`Pegasus Simulator`. Running Real Flight with Pegasus -------------------------------- - Setup the Pegasus drone by following the instructions on the :ref:`Pegasus Drone` page. - Setup the Kopis drone by following the instructions on the :ref:`Kopis Drone` page.