Merged
Conversation
* Invert bounds check in order to permit floating point NaN values Signed-off-by: Øystein Sture <[email protected]> * Allow floating point numbers set to Inf to pass bounds check Signed-off-by: Øystein Sture <[email protected]> * Add float/double NaN/Inf tests Signed-off-by: Øystein Sture <[email protected]> * Increase precision of float32 bounds Signed-off-by: Øystein Sture <[email protected]> * Only perform float64 bounds check on non-compliant IEEE 754 systems Signed-off-by: Øystein Sture <[email protected]> * Disable bounds test for float64 on IEEE 754 compatible systems Signed-off-by: Øystein Sture <[email protected]> * Disable bounds test for float64 on IEEE 754 compatible systems Signed-off-by: Øystein Sture <[email protected]> * Resolve failing nan/inf test by comparing the same types Signed-off-by: Øystein Sture <[email protected]> * Change decode error mode to replace (#176) Signed-off-by: Tomoya Fujita <[email protected]> * Replace rosidl_cmake imports with rosidl_pycommon (#177) Signed-off-by: Jacob Perron <[email protected]> * Delete trailing whitespace Signed-off-by: Shane Loretz <[email protected]> * Split fail case array check tests into two Signed-off-by: Shane Loretz <[email protected]> Signed-off-by: Øystein Sture <[email protected]> Signed-off-by: Tomoya Fujita <[email protected]> Signed-off-by: Jacob Perron <[email protected]> Signed-off-by: Shane Loretz <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]> Co-authored-by: Jacob Perron <[email protected]> Co-authored-by: Shane Loretz <[email protected]>
* Replaced equal_nan for numpy<1.19 Signed-off-by: Crola1702 <[email protected]>
NumPy was being imported in the template code (not the template output) for apparently no reason. This was causing problems when cross-compiling, where NumPy is only available for the target platform. Signed-off-by: Ben Wolsieffer <[email protected]>
Contributor
Author
sloretz
approved these changes
Nov 7, 2022
audrow
approved these changes
Nov 8, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR backports #167, #182, and #185 . The combination of those PRs allows NaN to be successfully decoded in Python code, which fixes a number of issues that users have reported, including ros2/ros2#1341.
Tested locally to at least fix that latter issue.
@sloretz @fujitatomoya I'd appreciate review from both of you.