Browse by type
This project features the simulation of a custom vehicle with Ackermann steering capabilities, developed using ROS2 and the Gazebo Sim Harmonic environment. The model integrates a variety of sensors and navigation tools for autonomous operation, making it one of the first implementations of an Ackermann steering vehicle in this simulation framework.
| 3D LiDAR Point Cloud Visualization | Warehouse Environment Model |
|---|---|
![]() |
![]() |
Note: By default, only the front camera is bridged to ROS 2.If you want to use all cameras (left, right, rear) in ROS 2,remove the
#at the beginning of the relevant camera sections insaye_bringup/config/ros_gz_bridge.yamlto activate them (e.g.,/camera/left_raw,/camera/right_raw,/camera/rear_raw).
sudo apt-get install ros-${ROS_DISTRO}-ros-gz
sudo apt-get install ros-humble-ros-gzharmonic (Humble only)
sudo apt-get install ros-${ROS_DISTRO}-teleop-twist-keyboard ros-${ROS_DISTRO}-joy (manual control)
More details about installation Gazebo and ROS: Link 1. Clone the repository:
mkdir -p ackermann_sim/src && cd ackermann_sim/src
git clone https://github.com/alitekes1/ackermann-vehicle-gzsim-ros2
cd ..
2. Build the project:
colcon build && source install/setup.bash
3. GZ_SIM_RESOURCE_PATH is set automatically when you source the workspace (source install/setup.bash);
no manual environment variables are needed. If you open a new terminal, just source the workspace again.
You can also run the simulation using Docker, which ensures a consistent environment across different systems.
Clone the repository:
bash
mkdir -p ackermann_sim/src && cd ackermann_sim/src
git clone https://github.com/alitekes1/ackermann-vehicle-gzsim-ros2
cd ackermann-vehicle-gzsim-ros2
Allow the container to access your X server (needed once per session, for the GUI):
bash
xhost +local:docker
Build and run the Docker container (with GPU acceleration):
bash
docker run -it \
--name ackermann_sim \
--hostname ackermann_sim \
--gpus all \
--runtime=nvidia \
--env="DISPLAY=$DISPLAY" \
--env="QT_X11_NO_MITSHM=1" \
--env="NVIDIA_VISIBLE_DEVICES=all" \
--env="NVIDIA_DRIVER_CAPABILITIES=all" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
--privileged alitekes1/ackermann_sim:latest
Note: The
--gpus all --runtime=nvidiaflags require the NVIDIA Container Toolkit. Without a GPU, Gazebo falls back to software rendering and runs very slowly. If you don't have an NVIDIA GPU, drop the--gpus,--runtimeandNVIDIA_*lines to run on CPU rendering.
Alternatively, use Docker Compose (GPU is already configured in docker-compose.yaml):
bash
docker compose up --build
bash
docker exec -it ackermann_sim bashNote: Inside the container, you can run the simulation commands as normal.
bash
ros2 launch saye_bringup saye_spawn.launch.pybash
ros2 run teleop_twist_keyboard teleop_twist_keyboard
or with a gamepad (left stick -> /cmd_vel; the car stops if /joy is silent for 0.5 s, see the joy_timeout parameter):
bash
ros2 run joy joy_node
ros2 run saye_control joystick_controllerbash
ros2 launch saye_bringup slam.launch.py

bash
ros2 launch saye_bringup navigation_bringup.launch.py

Note: The YouTube videos above are played at 4x speed. You can reach the videos by click on the images.
| 3D LiDAR Point Cloud Visualization | Warehouse Environment Model |
|---|---|
![]() |
![]() |
| Gazebo Sim Harmonic | RViz2 |
|---|---|
![]() |
![]() |

$ claude mcp add ackermann-vehicle-gzsim-ros2 \
-- python -m otcore.mcp_server <graph>