Skip to content

Conversation

@JustForFunOk
Copy link
Owner

wheel_autonomy/common/lookup_table/lut.cpp:33:57: error: constexpr variable 'kAtanLookupTable' must be initialized by a constant expression constexpr std::array<float, kLookupTableSampleSize + 1> kAtanLookupTable = ^ wheel_autonomy/common/lookup_table/lut.cpp:19:10: note: non-constexpr function 'atan' cannot be used in a constant expression return std::atan(2.0 / kLookupTableSampleSize * index - 1); ^ wheel_autonomy/common/lookup_table/lut.cpp:24:43: note: in call to 'GetAtanValueByLutIndex(0)' return std::array<float, sizeof...(I)>({GetAtanValueByLutIndex(I)...}); ^ wheel_autonomy/common/lookup_table/lut.cpp:29:10: note: in call to 'LookupHelper({})' return LookupHelper(std::make_index_sequence<N>()); ^ wheel_autonomy/common/lookup_table/lut.cpp:34:5: note: in call to 'ConstructLookupTable()' ConstructLookupTable<kLookupTableSampleSize + 1>(); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/math.h:317:15: note: declared here extern double atan(double); ^ 1 error generated.

Build failed, how to integrate c++17 compile env to Bazel instead of using local env?

@JustForFunOk JustForFunOk force-pushed the lut branch 3 times, most recently from 87d8225 to 0092170 Compare November 27, 2022 07:55
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