-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added option to publish max range readings as inf #8
base: indigo-devel
Are you sure you want to change the base?
Added option to publish max range readings as inf #8
Conversation
Thanks for catching this not being implemented. I remember now the reason why it was not, is that I never found the error code page. Some errors cannot be turned into Infinity (see the driver for SCIP 2.0): https://github.com/ros-drivers/hokuyo_node/blob/indigo-devel/src/hokuyo.cpp#L542 Can you find a similar table for SCIP 2.2? Also, this should go somewhere around here inside of urg_c, not urg_node: I'm also OK with this NOT being a parameter. NaNs and Infs should be fully expected according to REP 117. |
+1 This just bit me after switching from hokuyo_node due to the recommendation on the wiki http://wiki.ros.org/hokuyo_node. I'm surprised of this short coming for a driver that is recommended to replace an older one that works properly in that case.
In fact at least for my Hokuyo UTM30LX I get a value very close to Maybe the same error code tables as in the 2.0 spec should be used? Not sure what to do with models that are not listed in that spec. |
+1 I am also affected by the problem of not clearing costmaps due to the nan readings. I understand that they may refer to different error codes, but at least we could have an option to force an inf if we want to. |
+1 |
1 similar comment
+1 |
+1, my UTM30-LX with urg_node outputs currently the range 0.0010000000474974513 for inf readings |
* updated readme and depo repo list * clone ros2-devel branch for urg_node
Ping maintainer @tonybaltovski, would you consider merging this PR? |
In the costmap layers there is an option to use max range observations to clear the costmap (using raytracing) - by setting inf_is_valid to true.
However, this driver publishes max range readings as nan - which makes it impossible to use this driver and clear the costmaps with max range readings.
Added param to send max range readings as inf.
Set flag no_range_as_inf to true.