cartographer问题处理

2024-05-01 07:04
文章标签 问题 处理 cartographer

本文主要是介绍cartographer问题处理,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

问题1 :

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GMOCK_LIBRARY (ADVANCED)linked by target "time_conversion_test" in directory /home/a/carto/src/cartographer_ros/cartographer_roslinked by target "configuration_files_test" in directory /home/a/carto/src/cartographer_ros/cartographer_roslinked by target "msg_conversion_test" in directory /home/a/carto/src/cartographer_ros/cartographer_roslinked by target "metrics_test" in directory /home/a/carto/src/cartographer_ros/cartographer_ros-- Configuring incomplete, errors occurred!
See also "/home/a/carto/build_isolated/cartographer_ros/CMakeFiles/CMakeOutput.log".
See also "/home/a/carto/build_isolated/cartographer_ros/CMakeFiles/CMakeError.log".
<== Failed to process package 'cartographer_ros': Command '['/home/a/carto/install_isolated/env.sh', 'cmake', '/home/a/carto/src/cartographer_ros/cartographer_ros', '-DCATKIN_DEVEL_PREFIX=/home/a/carto/devel_isolated/cartographer_ros', '-DCMAKE_INSTALL_PREFIX=/home/a/carto/install_isolated', '-G', 'Ninja']' returned non-zero exit status 1.Reproduce this error by running:
==> cd /home/a/carto/build_isolated/cartographer_ros && /home/a/carto/install_isolated/env.sh cmake /home/a/carto/src/cartographer_ros/cartographer_ros -DCATKIN_DEVEL_PREFIX=/home/a/carto/devel_isolated/cartographer_ros -DCMAKE_INSTALL_PREFIX=/home/a/carto/install_isolated -G Ninja

解决方案:

sudo apt install libgmock-dev

问题2 :

代码运行时

[FATAL] [1713248900.406892955]: F0416 14:28:20.000000  7921 lua_parameter_dictionary.cc:83] Check failed: status == 0 (2 vs. 0) [string "include "map_builder.lua"..."]:35: attempt to index field 'pure_localization_trimmer' (a nil value)

在lua中pure_localization_trimmer的设置可能找不到,需要对比一下出处是否有定义或则定义内容更改等。经对比发现TRAJECTORY_BUILDER中对该内容进行注释。所以找不到。

TRAJECTORY_BUILDER = {trajectory_builder_2d = TRAJECTORY_BUILDER_2D,trajectory_builder_3d = TRAJECTORY_BUILDER_3D,-- pure_localization_trimmer = {--   max_submaps_to_keep = 3,-- },collate_fixed_frame = true,collate_landmarks = false,
}

问题3

编译过程找不到

FAILED: docs/CMakeFiles/build_doc /work/ws/carto/build_isolated/cartographer/install/docs/CMakeFiles/build_doc 
cd /work/ws/carto/build_isolated/cartographer/install/docs && /usr/bin/sphinx-build -b html /work/ws/carto/src/cartographer/docs/source /work/ws/carto/build_isolated/cartographer/install/docs/html
Traceback (most recent call last):File "/usr/bin/sphinx-build", line 11, in <module>load_entry_point('Sphinx==1.8.5', 'console_scripts', 'sphinx-build')()File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 490, in load_entry_pointreturn get_distribution(dist).load_entry_point(group, name)File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2854, in load_entry_pointreturn ep.load()File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2445, in loadreturn self.resolve()File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2451, in resolvemodule = __import__(self.module_name, fromlist=['__name__'], level=0)File "/usr/lib/python3/dist-packages/sphinx/cmd/build.py", line 25, in <module>from sphinx.application import SphinxFile "/usr/lib/python3/dist-packages/sphinx/application.py", line 48, in <module>from sphinx.util.tags import TagsFile "/usr/lib/python3/dist-packages/sphinx/util/tags.py", line 11, in <module>from jinja2 import nodesFile "/usr/lib/python3/dist-packages/jinja2/__init__.py", line 33, in <module>from jinja2.environment import Environment, TemplateFile "/usr/lib/python3/dist-packages/jinja2/environment.py", line 15, in <module>from jinja2 import nodesFile "/usr/lib/python3/dist-packages/jinja2/nodes.py", line 23, in <module>from jinja2.utils import MarkupFile "/usr/lib/python3/dist-packages/jinja2/utils.py", line 676, in <module>from markupsafe import Markup, escape, soft_unicodeImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/
python3.8/dist-packages/markupsafe/__init__.py)
ninja: build stopped: subcommand failed.
<== Failed to process package 'cartographer': Command '['ninja', '-j8', '-l8']' returned non-zero exit status 1.Reproduce this error by running:
==> cd /work/ws/carto/build_isolated/cartographer && ninja -j8 -l8

解决方案:

pip3 install markupsafe==2.0.1 

问题 4

FAILED: docs/CMakeFiles/build_doc /work/ws/carto/build_isolated/cartographer/install/docs/CMakeFiles/build_doc 
cd /work/ws/carto/build_isolated/cartographer/install/docs && /usr/bin/sphinx-build -b html /work/ws/carto/src/cartographer/docs/source /work/ws/carto/build_isolated/cartographer/install/docs/html
Running Sphinx v1.8.5Extension error:
Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' (/usr/local/lib/python3.8/dist-packages/jinja2/__init__.py))
[50/387] Building CXX object googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
ninja: build stopped: subcommand failed.
<== Failed to process package 'cartographer': Command '['ninja', '-j8', '-l8']' returned non-zero exit status 1.

原因:
sphinx和jinja2版本不匹配

解决方案:
重新安装sphinx

pip3 uninstall Sphinx
pip3 uninstall jinja2
pip3 install Sphinx

这篇关于cartographer问题处理的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/951013

相关文章

关于@MapperScan和@ComponentScan的使用问题

《关于@MapperScan和@ComponentScan的使用问题》文章介绍了在使用`@MapperScan`和`@ComponentScan`时可能会遇到的包扫描冲突问题,并提供了解决方法,同时,... 目录@MapperScan和@ComponentScan的使用问题报错如下原因解决办法课外拓展总结@

MybatisGenerator文件生成不出对应文件的问题

《MybatisGenerator文件生成不出对应文件的问题》本文介绍了使用MybatisGenerator生成文件时遇到的问题及解决方法,主要步骤包括检查目标表是否存在、是否能连接到数据库、配置生成... 目录MyBATisGenerator 文件生成不出对应文件先在项目结构里引入“targetProje

C#使用HttpClient进行Post请求出现超时问题的解决及优化

《C#使用HttpClient进行Post请求出现超时问题的解决及优化》最近我的控制台程序发现有时候总是出现请求超时等问题,通常好几分钟最多只有3-4个请求,在使用apipost发现并发10个5分钟也... 目录优化结论单例HttpClient连接池耗尽和并发并发异步最终优化后优化结论我直接上优化结论吧,

Java内存泄漏问题的排查、优化与最佳实践

《Java内存泄漏问题的排查、优化与最佳实践》在Java开发中,内存泄漏是一个常见且令人头疼的问题,内存泄漏指的是程序在运行过程中,已经不再使用的对象没有被及时释放,从而导致内存占用不断增加,最终... 目录引言1. 什么是内存泄漏?常见的内存泄漏情况2. 如何排查 Java 中的内存泄漏?2.1 使用 J

numpy求解线性代数相关问题

《numpy求解线性代数相关问题》本文主要介绍了numpy求解线性代数相关问题,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧... 在numpy中有numpy.array类型和numpy.mat类型,前者是数组类型,后者是矩阵类型。数组

解决systemctl reload nginx重启Nginx服务报错:Job for nginx.service invalid问题

《解决systemctlreloadnginx重启Nginx服务报错:Jobfornginx.serviceinvalid问题》文章描述了通过`systemctlstatusnginx.se... 目录systemctl reload nginx重启Nginx服务报错:Job for nginx.javas

Go语言使用Buffer实现高性能处理字节和字符

《Go语言使用Buffer实现高性能处理字节和字符》在Go中,bytes.Buffer是一个非常高效的类型,用于处理字节数据的读写操作,本文将详细介绍一下如何使用Buffer实现高性能处理字节和... 目录1. bytes.Buffer 的基本用法1.1. 创建和初始化 Buffer1.2. 使用 Writ

Redis缓存问题与缓存更新机制详解

《Redis缓存问题与缓存更新机制详解》本文主要介绍了缓存问题及其解决方案,包括缓存穿透、缓存击穿、缓存雪崩等问题的成因以及相应的预防和解决方法,同时,还详细探讨了缓存更新机制,包括不同情况下的缓存更... 目录一、缓存问题1.1 缓存穿透1.1.1 问题来源1.1.2 解决方案1.2 缓存击穿1.2.1

Python视频处理库VidGear使用小结

《Python视频处理库VidGear使用小结》VidGear是一个高性能的Python视频处理库,本文主要介绍了Python视频处理库VidGear使用小结,文中通过示例代码介绍的非常详细,对大家的... 目录一、VidGear的安装二、VidGear的主要功能三、VidGear的使用示例四、VidGea

Python结合requests和Cheerio处理网页内容的操作步骤

《Python结合requests和Cheerio处理网页内容的操作步骤》Python因其简洁明了的语法和强大的库支持,成为了编写爬虫程序的首选语言之一,requests库是Python中用于发送HT... 目录一、前言二、环境搭建三、requests库的基本使用四、Cheerio库的基本使用五、结合req