Wall-Following Works in Gazebo but Fails on Real Robot (Crashes Into Wall)

Hi everyone,

I’m currently working on the Wall Follower project from the “ROS Basics in 5 Days” course and have successfully implemented all sections (Topics, Services, and Actions). Everything works perfectly in the Gazebo simulation, but when I run the exact same code on the real robot, the behavior is very different; the robot drives straight into the wall instead of keeping a distance and following it on the right.

Hi @Hanin, the real robot is different in the lidar orientation than in the simulation. This is on purpose. You can use rviz, the length of the lidar array, and the real lidar values to determine the correct orientation and apply it in your node.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.