problem with hokuyo in gazebo
can anyone tell me why robot/hokuyo topic send wrong distances in gazebo? in a maze when my robot get closes enough to a wall should turn . but because of the wrong distance messages of hokuyo my robot cant stop turning
====7====
0.769121049841
0.816703678171
0.0617121162514 ** this distance is wrong
0.479985087117
3.5530843546
====7====
0.770311752458
0.818537082275
0.0625386255483 ** this distance is wrong
0.479922025651
3.55416968366
====7====
0.775553260744
0.819709319373
0.0562813294431 ** this distance is wrong
0.480257985741
3.59859489501
====7====
0.77652763774
0.821327915788
0.0526539800068 * this distance is wrong
0.479996601741
3.57409604788
Isn't there some minimum value in the laserscan message? If there is you can filter those values smaller than min. value.
Have a look here. There should be
range_min
value provided by the model.