robopeak / rplidar_ros

BSD 2-Clause "Simplified" License
453 stars 370 forks source link

Check and publish only valid data of size 360 #27

Closed naveedhd closed 8 years ago

naveedhd commented 8 years ago

This PR does two things:

  1. If the result from grabDataScan() is RESULT_OPERATION_FAIL, then data is not published.
  2. Before publishing data, check if the data size is 360 corresponding to whole scan. If its not 360, then do not publish it.
naveedhd commented 8 years ago

for issue #26

kintzhao commented 8 years ago

#26 explain it.