← All projects   /   Robotics
Robotics / PROJECT

Differential-Drive Robot Simulation & EKF Localization

Repository: ros2-mobile-robot-gazebo

PROJECT

Overview

I built a differential-drive robot in Gazebo Harmonic with a two-joint arm, RGB camera and IMU. URDF/Xacro defines the robot; ROS 2 and Gazebo communicate through ros_gz_bridge.

I have configured a robot_localization EKF using simulated wheel odometry and IMU data. Ground-truth validation and Nav2/RTAB-Map integration are still in progress.

Implementation

  • Modelled the mobile base, arm and camera with reusable URDF/Xacro definitions and checked the TF and joint frames in RViz.
  • Bridged teleoperation commands, joint commands, wheel odometry, camera data and IMU messages between Gazebo and ROS 2.
  • Tracked down an empty camera stream and fixed it by enabling Gazebo’s sensor-system plugin.
  • Configured an EKF for planar state estimation using /wheel/odometry and /imu/data_raw; accuracy has not yet been benchmarked.

Debugging and current work

The first camera setup created a topic but no usable images. I checked the Gazebo topic path and the ROS bridge, then added Gazebo’s sensors system plugin to the world, and the image stream started working. Nav2 and RTAB-Map are the next step toward autonomous navigation and SLAM in this simulation; that integration is not finished.

Recorded Gazebo demo

Teleoperation and arm control in the Gazebo simulation.

Screenshots and recordings

CONTACT

Let’s talk robotics.