This is work in progress and is subject to change in the next releases. Please do not use the information provided in the simulation environment until unless officially announced by the organizers of MBZIRC
This repository contains simulation software created for the MBZIRC Maritime Grand Challenge.
- Platform: Ubuntu 20.04 (Focal)
- Ignition Fortress
- ROS2 Galactic
See Installation instructions for:
-
Ignition Fortress: https://ignitionrobotics.org/docs/fortress
-
ROS2 Galactic: https://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Binary.html
-
Create a colcon workspace and clone the mbzirc repo
mkdir -p ~/mbzirc_ws/src cd ~/mbzirc_ws/src git clone https://github.com/osrf/mbzirc.git -
Clone the
ros_ignrepo and check out theros2branchcd ~/mbzirc_ws/src git clone https://github.com/ignitionrobotics/ros_ign.git -b ros2 -
Install dependencies using rosdep
cd ~/mbzirc_ws rosdep update rosdep install -r --from-paths src -i -y --rosdistro galacticMake sure the
ros-galactic-mavros-msgspackage is installed, e.g.dpkg -l | grep ros-galactic-mavros-msgsIf not, install it:
sudo apt install ros-galactic-mavros-msgs -
Build the workspace
cd ~/mbzirc_ws colcon build --merge-install
Docker images are available on Docker Hub: https://hub.docker.com/repository/docker/osrf/mbzirc
-
Pull the latest version of the docker image
docker pull osrf/mbzirc:mbzirc_sim_latest -
Clone the repo and launch a Docker container from the image using the
run.bashscript. Note: requiresnvidia-docker2git clone https://github.com/osrf/mbzirc.git cd mbzirc/docker bash run.bash osrf/mbzirc:mbzirc_sim_latest /bin/bash
To build a docker image of the simulator locally:
-
Navigate to the
dockerdirectory and build thembzirc_simDocker imagecd mbzirc bash docker/build.bash mbzirc_sim -
The process can take a few minutes. Once it is done, you can launch the Docker container:
bash run.bash mbzirc_sim
Please see the wiki: https://github.com/osrf/mbzirc/wiki