diff --git a/README.md b/README.md index ac35436..b09ea68 100644 --- a/README.md +++ b/README.md @@ -19,57 +19,7 @@ The project is adapted from the [`ros_gz_project_template`](https://github.com/g ## Prerequisites -- Install [ROS 2 Humble](https://docs.ros.org/en/humble/index.html) -- Install [Gazebo Harmonic (recommended)](https://gazebosim.org/docs/harmonic) or [Gazebo Garden](https://gazebosim.org/docs/garden) -- Follow the [`Installing Build Dependencies`](https://github.com/ArduPilot/ardupilot/tree/master/libraries/AP_DDS#installing-build-dependencies) section of `AP_DDS`'s README - -## Install - -#### 1. Create a workspace folder - -```bash -mkdir -p ~/ros2_ws/src -``` - -#### 2. Get the project source - -```bash -cd ~/ros2_ws -vcs import --input https://raw.githubusercontent.com/ArduPilot/ardupilot_gz/main/ros2_gz.repos --recursive src -``` - -#### 3. Set the Gazebo version to Harmonic or Garden: - -It is recommended to put this in your `~/.bashrc` or equivalent file. - -```bash -export GZ_VERSION=harmonic -``` - -#### 4. Update ROS dependencies - -```bash -cd ~/ros2_ws -source /opt/ros/humble/setup.bash -sudo apt update -rosdep update -rosdep install --from-paths src --ignore-src -y -``` - -#### 5. Build - -```bash -cd ~/ros2_ws -colcon build -``` - -#### 6. Test - -```bash -source ./install/setup.bash -colcon test --packages-select ardupilot_sitl ardupilot_dds_tests ardupilot_gazebo ardupilot_gz_applications ardupilot_gz_description ardupilot_gz_gazebo ardupilot_gz_bringup -colcon test-result --all --verbose -``` +Follow the installation instructions in the [ArduPilot Wiki](https://ardupilot.org/dev/docs/ros2-gazebo.html) ## Usage diff --git a/ros2_gz.repos b/humble_gz.repos similarity index 100% rename from ros2_gz.repos rename to humble_gz.repos diff --git a/ros2_gz_macos.repos b/humble_gz_macos.repos similarity index 100% rename from ros2_gz_macos.repos rename to humble_gz_macos.repos diff --git a/jazzy_gz.repos b/jazzy_gz.repos new file mode 100644 index 0000000..97b1c28 --- /dev/null +++ b/jazzy_gz.repos @@ -0,0 +1,29 @@ +repositories: + ardupilot: + type: git + url: https://github.com/ArduPilot/ardupilot.git + version: master + ardupilot_gazebo: + type: git + url: https://github.com/ArduPilot/ardupilot_gazebo.git + version: ros2 + ardupilot_gz: + type: git + url: https://github.com/ArduPilot/ardupilot_gz.git + version: main + ardupilot_sitl_models: + type: git + url: https://github.com/ArduPilot/SITL_Models.git + version: main + micro_ros_agent: + type: git + url: https://github.com/micro-ROS/micro-ROS-Agent.git + version: jazzy + ros_gz: + type: git + url: https://github.com/gazebosim/ros_gz.git + version: jazzy + sdformat_urdf: + type: git + url: https://github.com/ros/sdformat_urdf.git + version: jazzy diff --git a/jazzy_gz_macos.repos b/jazzy_gz_macos.repos new file mode 100644 index 0000000..3fa0f50 --- /dev/null +++ b/jazzy_gz_macos.repos @@ -0,0 +1,37 @@ +repositories: + ardupilot: + type: git + url: https://github.com/ArduPilot/ardupilot.git + version: master + ardupilot_gazebo: + type: git + url: https://github.com/ArduPilot/ardupilot_gazebo.git + version: ros2 + ardupilot_gz: + type: git + url: https://github.com/ArduPilot/ardupilot_gz.git + version: main + ardupilot_sitl_models: + type: git + url: https://github.com/ArduPilot/SITL_Models.git + version: main + gps_umd: + type: git + url: https://github.com/swri-robotics/gps_umd.git + version: ros2-devel + micro_ros_agent: + type: git + url: https://github.com/micro-ROS/micro-ROS-Agent + version: jazzy + micro_ros_msgs: + type: git + url: https://github.com/micro-ROS/micro_ros_msgs.git + version: jazzy + ros_gz: + type: git + url: https://github.com/gazebosim/ros_gz.git + version: jazzy + sdformat_urdf: + type: git + url: https://github.com/ros/sdformat_urdf.git + version: jazzy \ No newline at end of file