I am not able to understand the data given by ranges from /scan topic , it seems to be quite different than the one explained in topics quiz.
1 Like
Hi, the values represent distance in a specific unit (I think the unit is meters) and their order is from their one side to their other side (e.g. from right to left). The difference between the lesson and the rosject was that the length of the values was different, the rosject has less values. If you are trying to find which element in the values array represents the front face, you have to find the length of the values list and take its middle element (e.g. if len(values)=100 then values[50] represents the distance from the front).