Change default max of floating point to infinity from max #169
+23
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I recently found while using the library that the default maximum value for a floating point value (for example when using
gt_eq
) was set tostd::numeric_limits<double>::max()
which in C++ is less thanstd::numerical_limits<double>::infinity()
. In my use case infinity was the default value of the parameter and this caused problems when trying to use something likerqt_reconfigure
to look at the parameter and caused the rest of the parameters not to load.It makes sense to me that the largest positive value would be infinity and not max double.
Testing
I updated and added a test in
descriptor_test_gtest.cpp
and ranbut would like help adding additional tests that shows the default value of infinity.
I would also like to know if there's a way for my to run this test node so I can check the
rqt_reconfigure
output.When I run
I get
🤷