FastBot Lidar Issues

Hello,

I have tried running the fastbot in small city as part of the Linux for robotics introductory course - I managed to get it working but the ranges are not accurate - sometimes I would be 0.100-0.150m from the wall but the front range would come back as a large distance 0.600, 0.700, 0.900 - is this intentional, or is there an issue ?

Thanks in advance for the help!

Hi @AltinFeka, the real lidar is flipped 180 degrees (with respect to the simultaion) intentionally.

One way to confirm is to create a quick node that prints out several locations in the ranges array (ranges(0), len(ranges)/2, etc.). Then you can move forwards towards a wall and see which value is decreasing. That will be your front value.