一起做RGB-D-SLAM(6)g2o報錯error: no matching function
編譯高翔一起做RGB-D-SLAM
新增g2o後
make報錯:
slamEnd.cpp:72:104: error: no matching function for call to ‘g2o::OptimizationAlgorithmLevenberg::OptimizationAlgorithmLevenberg(SlamBlockSolver*&)’
o::OptimizationAlgorithmLevenberg* solver = new g2o::OptimizationAlgorithmLevenberg( blockSolver );
將原始碼68行和69行,如下:
SlamBlockSolver* blockSolver = new SlamBlockSolver( linearSolver );
g2o::OptimizationAlgorithmLevenberg* solver = new g2o::OptimizationAlgorithmLevenberg( blockSolver );
替換為:
SlamBlockSolver* blockSolver = new SlamBlockSolver(unique_ptr<SlamBlockSolver::LinearSolverType> (linearSolver));
g2o::OptimizationAlgorithmLevenberg* solver = new g2o::OptimizationAlgorithmLevenberg(unique_ptr<g2o::Solver>(blockSolver));
重新編譯,成功:
相關文章
- $(function{})裡面的onclick報錯Function
- vipca報錯 Error 0PCAError
- MUI-picker 報錯 getSelectedItem is not a functionUIFunction
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- MYSQL SOURCE報錯 ERROR: ASCIIMySqlErrorASCII
- PHP報錯:Call to undefined function curl_init()PHPUndefinedFunction
- 織夢搜尋報錯undefined function TypeGetSunIDUndefinedFunction
- mysql報錯ERROR 1093MySqlError
- 【Redis】slaveof 報錯 Background transfer errorRedisError
- Oracle安裝報錯syntax errorOracleError
- struts2報Error filterStart錯ErrorFilter
- 網站報錯:“Database Server Error”網站DatabaseServerError
- js 函式報錯“Uncaught: TypeError xxx is not a function”JS函式ErrorFunction
- Ubuntu 系統 apt 報錯:relocation errorUbuntuAPTError
- pip install scrapy報錯:error: UnableError
- MySQL報錯 Error_code: 1045MySqlError
- 反序列 unserialize(): Error 報錯問題Error
- React報錯之Function components cannot have string refsReactFunction
- Python定義函式報錯 return outside functionPython函式IDEFunction
- vue 父子元件傳值報錯:this.$emit is not a function 解決Vue元件MITFunction
- weblogic報錯: OPatch failed with error code 73WebAIError
- redis報錯Windows error 0x70RedisWindowsError
- DBMS_UTILITY.FORMAT_ERROR_BACKTRACE FunctionORMErrorFunction
- error: ‘PATH_MAX’ undeclared (first use in this function)ErrorFunction
- error: use of deleted function ‘YYSTYPE::YYSTYPE()’[解決]ErrordeleteFunction
- SAP Table function 執行報錯 feature not supported 該如何分析Function
- Null pointer (NULL array pointer is passed) in function cvGetMat, 報這樣的錯NullFunction
- 急!!Error Parsing EJB file: Finder found in DD with no matching method.Error
- MySQL create function時報錯MySqlFunction
- ogg報錯error 11, Resource temporarily unavailableErrorAI
- ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failedElasticsearchErrorbootAI
- cmake報錯CMake Error: Could not find CMAKE_ROOTError
- linux系統報錯AER PCIe Bus ErrorLinuxError
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- serverless Error: getaddrinfo ENOTFOUND Function.doRequestServerErrorFunction
- Linux AS3.0 u6 報錯, 系統Hang住 :kernel: (6747) ERROR: status = -999LinuxS3Error
- 深入理解圖優化與g2o:g2o篇優化
- ORA-15186: ASMLIB error function = [asm_open], error = [1]ASMErrorFunction