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

Replace non-portable M_PI reference with fcl::constants invocation #264

Merged

Conversation

SeanCurtis-TRI
Copy link
Contributor

@SeanCurtis-TRI SeanCurtis-TRI commented Mar 9, 2018

There is a non-portable reference to M_PI in a test. This changes it to the fcl-standard constants reference to maintain portability.

(It also shuffles up the includes in the test to be more "standard".)


This change is Reviewable

@sherm1
Copy link
Member

sherm1 commented Mar 9, 2018

:lgtm:


Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@sherm1
Copy link
Member

sherm1 commented Mar 9, 2018

CI failure is one test in Mac Debug and two in Mac Release - expected?


Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@SeanCurtis-TRI
Copy link
Contributor Author

The Debug failure is the same we've seen before (box-capsule test via ccd). However, the mac release has unexpected errors. Apparently #259 introduced functionality that fails in the mac release mode; these failures were masked by the box-capsule failures). In this PR, I recognized these failures.

The failure is independent of this PR. I've added an issue for the CI failures: #265.


Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable


#include "gtest/gtest.h"
#include "fcl/fcl.h"
#include "fcl/math/constants.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't fcl/fcl.h include fcl/math/constants.h?

@SeanCurtis-TRI
Copy link
Contributor Author

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.


test/test_fcl_cylinder_half_space.cpp, line 41 at r1 (raw file):

Previously, jslee02 (Jeongseok Lee) wrote…

Doesn't fcl/fcl.h include fcl/math/constants.h?

Yes indeed. Now I feel foolish. I hadn't realized that this included everything.


Comments from Reviewable

@sherm1
Copy link
Member

sherm1 commented Mar 10, 2018

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.


Comments from Reviewable

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.

3 participants