Closed piyushk closed 11 years ago
Looks like the latest version never made it into debs. I've released v1.7.6 today, thanks for catching this. https://github.com/ros/rosdistro/pull/1427
Although, I'm not sure the little Hokuyos report as many errors codes in practice as the larger ones. Can you get me a short bag of behaviors with both groovy and hydro using the same laser? I just looked with one of my little hokuyos, and I don't see NaNs, but I do see +infs.
Here is the relevant lines of code: https://github.com/ros-drivers/hokuyo_node/blob/hydro-devel/src/hokuyo.cpp#L535
I see the same (non-compliant behavior in both Groovy and Hydro). 0s and Infs. Can you confirm?
Oh! I found it. dmax is in in millimeters and is an int. I was comparing it against '20' which means that our short range lasers weren't going through the right logic since they had '5600' for dmax.
Looks like these rangers don't have an error function for 'inf'. I'll take a look and see under what conditions +Inf should be output.
@chadrockey Nice catch! I just realized that I've got both URG-04LX-UG01 and URG-04LX sensors, and may have been seeing nans on the other one. I will run some tests tomorrow and report back.
Here are a couple of links for reference: SCIP 2.0 Specification (See Page 12) https://github.com/gbiggs/hokuyoaist/issues/1
The output in the issue report plus the bug you found perfectly explains my excerpt above (include the 0.007, which was an error). I believe that some of the error codes mentioned as other are explained in the SCIP 1.1 Specification.
I've also got a pesky fridge in my wing that has been causing some problems for the Hokuyo. I'll see if I can get different returns from that.
I tested open space, object too close and strong reflection and printed all errors/laser output to the screen. I am using ROS Hydro with the hydro-devel branch.
URG-04LX-UG01
I also received the following error occasionally:
URG-04LX
I also received the following errors occasionally:
I've opened a pull request for Hydro: https://github.com/ros-drivers/hokuyo_node/pull/6
Merged. https://github.com/ros-drivers/hokuyo_node/pull/6
Will release now.
I am using a URG-04LX-UG01 with hokuyo_node v1.7.5 on Hydro beta (system deb).
My robot is facing an open corridor. This is an excerpt of the scan output
All of these used to be nans in hokuyo_node in groovy with use_rep_117 set to true (as expected). I am slighlty worried by the one 0.007 reading in the middle, but as far as I can tell, all these values should have been nans.