dillenberger / pepperl_fuchs

Pepperl+Fuchs R2000 Driver
http://wiki.ros.org/pepperl_fuchs_r2000
BSD 3-Clause "New" or "Revised" License
54 stars 56 forks source link

Occasional distorted scans #17

Open tim-fan opened 4 years ago

tim-fan commented 4 years ago

I have noticed some instances where a single scan from this driver will be distorted. See images below for example:

A 'good' scan from the driver: r2000ScanNormal

A distorted scan, taken in the same area: r2000ScanDistorted

I've noticed that the number of points in the distorted scan is fewer than in the good scan - I'm guessing an incomplete/partial scan has been received, which is then 'stretched' to make a full 360 degree scan. See this line, where angle_increment is set on the assumption that the full scan was received: scanmsg.angle_increment = 2*M_PI/float(scandata.distance_data.size()); https://github.com/dillenberger/pepperl_fuchs/blob/master/pepperl_fuchs_r2000/src/rosnode/r2000_node.cpp#L127

Note this was observed a couple years ago, so I cannot provide much detail on what I was running when I observed it, except it was on a laptop running kinetic. I decided to log this issue when I saw another user apparently experiencing the same issue on answers.ros: https://answers.ros.org/question/316652/data-error-with-pepperl-fuchs-r2000-with-ros-kinetic/#