Fetch NLopt when not available (and fix compiler warnings) - #74
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
I see some of the warnings have been already fixed in #76 🚀 I will merge and resolve conflicts so we can add the NLopt stuff. |
|
Why the changes in the SerestController? |
I got them before your fix in #76. It goes further by avoiding unnecesary local variables Same with the param changes in AMCL localizers, I just made the param declaration more homogeneous. In both cases, the behavior remains the same. |
|
Ok. LGTM then. Let's wait for CI in green and then merge |
|
One more question, @Butakus : Why reverting the |
Oooooops! That was a typo when merging, thanks for the catch!! |
|
All green now. Merging! 🚀 |
Hi,
This PR tries to solve a major issue with the package releases: the nlopt library is not available for RHEL, so those packages are not being built (and we are reminded of it every day by the buildfarm).
When the package is not available in the system (when
find_packagefails), it is downloaded at build time and compiled via CMake'sFetchContent. The prefered option is still getting the package viafind_package, but this allows using the library when not available.Additionally, I fixed some compiler warnings about using uninitialized variables (parameters) and a couple of unused variables.