ROS2 Differential Drive Odometry from Encoder Pulses

Medium Kinematics 0% pass rate

Practice the ROS2 Differential Drive Odometry from Encoder Pulses coding problem in Kinematics. Browser-based execution with automated grading — no local ROS install required. 0% of engineers pass this challenge.

Problem Statement

Calculate where the robot is (Odometry) based on how much its wheels have turned (Dead Reckoning).

Requirements

  • Node odometry_calculator
  • Subscribe: /wheel_ticks (Left/Right integers)
  • Parameters: radius (m), base_width (m), ticks_per_rev
  • Publish: /odom (nav_msgs/Odometry)

Input/Output Format

Input:

  • Wheel Encoder Ticks

Output:

  • Odometry message with Position (x,y) and Orientation (yaw/quaternion).

⚠️ Common Pitfalls

  • Integer overflow (ticks wrap around).
  • Not handling the very first tick message (delta requires previous state).

📚 Helpful Resources

Frequently asked questions

What is the ROS2 Differential Drive Odometry from Encoder Pulses practice problem?

It is a hands-on Kinematics challenge on SimuCode where you implement and run ROS2 code in the browser with runtime-verified tests.

How do I practice ROS2 Differential Drive Odometry from Encoder Pulses online?

Open this page, sign in, and solve the problem in the built-in IDE. Your solution is graded against real ROS2 execution checks.

What skills does ROS2 Differential Drive Odometry from Encoder Pulses test?

This Medium problem focuses on Kinematics skills used in robotics interviews and production systems.