报错信息:
/home/lzd/study_example/kalibr_ws/src/kalibr/aslam_nonparametric_estimation/bsplines_python/src/BSplinePython.cpp:40:108: error: ‘_1’ was not declared in this scope
40 | return boost::python::make_function(boost::bind(&BiFunction<T>::getBi, BiFunction<T>(bs->getBiVector(t)), _1)
解决方案:
打开下面路径中的文件/home/lzd/study_example/kalibr_ws/src/kalibr/aslam_nonparametric_estimation/bsplines_python/src/BSplinePython.cpp
添加头文件和命名空间:
#include <boost/bind.hpp>
using namespace boost;
重新编译就解决了