Skip to content

Commit

Permalink
Simplify clone by using URL method
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 committed Mar 11, 2024
1 parent 580520f commit 383a699
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions dev/source/docs/ros2-gazebo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ We will clone the required repositories using `vcstool <https://github.com/dirk-
.. code-block:: bash
cd ~/ros2_ws
wget https://raw.githubusercontent.com/ArduPilot/ardupilot_gz/main/ros2_gz.repos
vcs import --recursive src < ros2_gz.repos
vcs import --input https://raw.githubusercontent.com/ArduPilot/ardupilot_gz/main/ros2_gz.repos --recursive src
Set the gazebo version to either ``garden`` or ``harmonic``

Expand Down
13 changes: 6 additions & 7 deletions dev/source/docs/ros2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ This page assumes that your workspace is named `ros2_ws`.

Before anything else, make sure that you have `sourced your ROS 2 environment <https://docs.ros.org/en/humble/Tutorials/Beginner-CLI-Tools/Configuring-ROS2-Environment.html#source-the-setup-files>`__ and check if it is `configured correctly <https://docs.ros.org/en/humble/Tutorials/Beginner-CLI-Tools/Configuring-ROS2-Environment.html#check-environment-variables>`__.

Follow the `Installing Build Dependencies <https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_DDS#installing-build-dependencies>`__ section of `AP_DDS`'s README.
Follow the `Installing Build Dependencies <https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_DDS#installing-build-dependencies>`__ section of `AP_DDS`'s README
to install MicroXRCEDDSGen.

Finally, ensure you have `set up your ArduPilot build environment <https://ardupilot.org/dev/docs/building-the-code.html#setting-up-the-build-environment>`__.

Expand All @@ -39,9 +40,8 @@ To make installation easy, we will install the required packages using `vcs` and

.. code-block:: bash
cd ~/ros2_ws/src
wget https://raw.githubusercontent.com/ArduPilot/ardupilot/master/Tools/ros2/ros2.repos
vcs import --recursive < ros2.repos
cd ~/ros2_ws
vcs import --recursive --input https://raw.githubusercontent.com/ArduPilot/ardupilot/master/Tools/ros2/ros2.repos src
Now update all dependencies:

Expand Down Expand Up @@ -77,9 +77,8 @@ To make installation easy, we will install the required packages using `vcs` and

.. code-block:: bash
cd ~/ros2_ws/src
wget https://raw.githubusercontent.com/ArduPilot/ardupilot/master/Tools/ros2/ros2_macos.repos
vcs import --recursive < ros2_macos.repos
cd ~/ros2_ws
vcs import --recursive --input https://raw.githubusercontent.com/ArduPilot/ardupilot/master/Tools/ros2/ros2_macos.repos src
Now update all dependencies:

Expand Down

0 comments on commit 383a699

Please sign in to comment.