报错
/home/d/文档/slambook2(照猫画虎)/ch8/direct_method.cpp:53:10: error: ‘mutex’ in namespace ‘std’ does not name a type
std::mutex hessian_mutex;
^~~~~
/home/d/文档/slambook2(照猫画虎)/ch8/direct_method.cpp: In member function ‘void JacobianAccumulator::accumulate_jacobian(const cv::Range&)’:
/home/d/文档/slambook2(照猫画虎)/ch8/direct_method.cpp:241:9: error: ‘unique_lock’ was not declared in this scope
unique_lock<mutex> lck(hessian_mutex);
解决办法
添加mutex头文件
#include <mutex>