Gz Maritime

Maritime simulation for Gazebo and ROS 2: a moving ocean, an open water world, and everything you need to put your own boat or underwater vehicle on it.

Three BlueBoats riding the swell of the gulf of La Spezia, the city and its hills behind

Three BlueBoats riding the waves in the gulf of La Spezia, at sea state 3.

What you get:

  • An ocean. Two wave models, a fast analytic one and a high-fidelity spectral one, driven by a single “sea state” setting you can change while the simulation runs.

  • An open water world with seawater buoyancy and the systems that IMU, GPS and magnetometer sensors need.

  • Your own vehicles. A vehicle marks which of its shapes float, so the world never has to know about it in advance, and several can share one simulation. A small example boat shows every step.

  • ROS 2 bring-up. One launch file starts Gazebo, and one puts any vehicle on it, as many times as you like, with its topics bridged to ROS 2.

Quick start

mkdir -p ~/maritime_ws/src && cd ~/maritime_ws/src
git clone https://github.com/HonuRobotics/gz-maritime.git
git clone https://github.com/HonuRobotics/ehukai.git
cd ~/maritime_ws
rosdep update && rosdep install --from-paths src --ignore-src -y
colcon build --merge-install
source install/setup.bash
ros2 launch kai_custom_vehicle sim.launch.xml

A small catamaran appears on the ocean and floats at its waterline. First simulation shows how to drive it. Bring your own vehicle shows how it was built, so you can build yours the same way.

These packages target ROS 2 Lyrical and Gazebo Jetty on Ubuntu 26.04.