-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Document message support for NaN and other special floating point numeric limits #4135
Comments
And, the CLI also supports it on |
Yeah, I think that is a reasonable thing to document; I'd enhance the table in https://docs.ros.org/en/humble/Concepts/Basic/About-Interfaces.html#field-types to add a "Note" column, or something like that. If you'd like to open a PR to add that, I'd be happy to review it. |
It doesn't look like it's actually supported. In a
|
Relates to ros2/rosidl#705 |
Huh, in the IDL 4.2 spec, it says nothing about special floating point values: See section Then in the DDS Consolidated JSON 1.0 spec, it says that NaN is supported.
|
Hello,
Would it be possible to document in Interfaces that you can set constants or default values to special values like NaN? It's not clear what's supported, and whether NAN, NaN, and whether it would be quiet or signaling NaN.
https://en.cppreference.com/w/cpp/types/numeric_limits
I am writing messages that have values that can fail. Rather than add
is_X_valid
booleans for every field in the message, I would prefer to have support for NaN. This results in significantly less application code and reduces bandwidth when messages are sent over wireless networks using DDS compared to dedicated booleans.While doing this, it would also be good to document whether infinity is supported.
Related:
The text was updated successfully, but these errors were encountered: