sair-lab / AirSLAM

🚀 AirVO upgrades to AirSLAM 🚀
GNU General Public License v3.0
755 stars 108 forks source link

assert(std::abs(end_time-t0)<1e-5 failed when set (CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -g") In CMakeLists #126

Closed sun6s closed 2 months ago

sun6s commented 2 months ago

the value of std::abs(end_time-t0) is generally greater than 0.05 on my test. Run successfully without setting CMAKE_CXX_FLAGS_RELEASE , run failed after setting CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -g".

https://github.com/sair-lab/AirSLAM/blob/129e8c12d514d5abdc9200064d231c02e3c8af99/src/imu.cc#L221