ubuntu22 编译 ch5 的分享
作者: hetaohetao9-creator创建于 2026年3月13日更新于 2026年3月13日
Regarding the compilation of ch5, some adjustments are required in Ubuntu 22. The first point is about the C++ version of the compilation. If you encounter the following error: `In file included from /usr/local/include/sophus/se3.hpp:6, from /zyt_users/hilton.he/slambook2/ch5/rgbd/joinMap.cpp:6: /usr/local/include/sophus/so3.hpp:572:12: error: 'std::optional' has not been declared 572 | std::optional<Scalar> const& theta_o = std::nullopt) { | ^~~~~~~~` This problem is basically due to the compatibility problem of the C++ version, and the cmakelist file needs to be adjusted.
内容来源: gaoxiang12/slambook2