Skip to content
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

fix some NaN #2332

Draft
wants to merge 3 commits into
base: devel
Choose a base branch
from
Draft

fix some NaN #2332

wants to merge 3 commits into from

Conversation

nim65s
Copy link
Contributor

@nim65s nim65s commented Jul 16, 2024

Hi,

Building pinocchio with -DINITIALIZE_WITH_NAN=ON raised a couple issues.
Here are simple fixes.

fix for `-DINITIALIZE_WITH_NAN`:
```
…/pinocchio/unittest/constrained-dynamics.cpp(1512): error: in "Test/test_sparse_forward_dynamics_in_contact_specifying_joint2id_case3D": check contact_force.isApprox(-contact_force_bis) has failed
contact_force:  6.13593  2.26573 -1.29027      nan      nan      nan
contact_force_bis: -6.13593 -2.26573  1.29027        0        0        0
cdata.c1Mc2:
```
fix test-cpp-constraint-variants with `-DINITIALIZE_WITH_NAN`:
```
Running 2 test cases...
…/pinocchio/unittest/constraint-variants.cpp(50): error: in "Test/contact_visitors": check ConstraintData(rcd) == ConstraintData(rcd) has failed
…/pinocchio/unittest/constraint-variants.cpp(51): error: in "Test/contact_visitors": check ConstraintData(rcd) == rcd has failed
…/pinocchio/unittest/constraint-variants.cpp(62): error: in "Test/contact_visitors": check rcd == constraint_data has failed
```
@nim65s nim65s changed the title Nan fix some NaN Jul 16, 2024
@jcarpent
Copy link
Contributor

There is some work pending on this line of works. I would prefer to wait a bit before merging this PR.

@jcarpent jcarpent marked this pull request as draft July 16, 2024 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants