Livox-SDK / livox_laser_simulation

A package to provide plug-in for Livox Series LiDAR.
MIT License
182 stars 50 forks source link

Errors which required C++17 when running with gazebo11 #4

Open marshal-shi opened 2 years ago

marshal-shi commented 2 years ago

When I catkin_make, there are several errors raised:

/usr/include/gazebo-11/gazebo/physics/PhysicsEngine.hh:274:45: error: ‘any’ is not a member of ‘std’
/usr/include/gazebo-11/gazebo/physics/PhysicsEngine.hh:274:45: note: ‘std::any’ is only available from C++17 onwards

When compiling the C++ is using add_compile_options(-std=c++11) in CMakeLists.txt of livox_laser_simulation, to fix this error, need change above 11 to 17 add_compile_options(-std=c++17).

For someone has meet same error.