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

C++14 for test_unicycle_2d_state_cost_function #157

Conversation

efernandez
Copy link
Collaborator

The test_unicycle_2d_state_cost_function also needs c++14. This PR does that and also remove the if(TARGET block, which isn't used by other test targets.

Without this, I get the following compilation error when running make run_tests:

In file included from /home/efernandez/dev/ws/cpr_ws/src/fuse/fuse_models/include/fuse_models/unicycle_2d_predict.h:38:0,
                 from /home/efernandez/dev/ws/cpr_ws/src/fuse/fuse_models/include/fuse_models/unicycle_2d_state_cost_function.h:37,
                 from /home/efernandez/dev/ws/cpr_ws/src/fuse/fuse_models/test/test_unicycle_2d_state_cost_function.cpp:34:
/opt/clearpath/2.18/include/fuse_core/util.h: In function ‘fuse_core::Matrix<Scalar, Size, Size> fuse_core::getCovarianceDiagonalParam(const ros::NodeHandle&, const string&, Scalar)’:
/opt/clearpath/2.18/include/fuse_core/util.h:215:28: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14
                   [](const auto& value) { return value < Scalar(0); }))  // NOLINT(whitespace/braces)
                            ^
CMakeFiles/test_unicycle_2d_state_cost_function.dir/build.make:62: recipe for target 'CMakeFiles/test_unicycle_2d_state_cost_function.dir/test/test_unicycle_2d_state_cost_function.cpp.o' failed

@efernandez
Copy link
Collaborator Author

@svwilliams @ayrton04 for review

@svwilliams svwilliams merged commit 943911d into locusrobotics:devel Mar 16, 2020
@efernandez efernandez deleted the cpp14_test_unicycle_2d_state_cost_function branch March 19, 2020 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants