RVIZ在MovableText :: setFontName中找不到字体Liberation Sans

问题描述 投票:1回答:1

我在archlinux上使用ROS旋律,具有以下环境设置:

ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=
ROS_HOSTNAME=localhost
ROS_DISTRO=melodic

字体文件存在于/opt/ros/melodic/share/rviz/ogre_media/fonts/liberation_sans.fontdef

问题:rviz与第一个教程示例roslaunch urdf_tutorial display.launch model:=/opt/ros/melodic/share/urdf_tutorial/urdf/01-myfirst.urdf一起运行正常,但是当我使用任何关节模型时,它会抛出以下错误:

在抛出'Ogre :: Exception'的实例后终止调用 what()::在MovableText :: setFontName中找不到字体Liberation Sans

例如:当我运行时:roslaunch urdf_tutorial display.launch model:=/opt/ros/melodic/share/urdf_tutorial/urdf/02-multipleshapes.urdf它表示先前的错误,但是当我评论联合部分时,它运行良好。

问题:

  • 我可以改变食人魔的搜索路径来解决这个问题吗?
  • 我该如何解决这个错误?

注意:我重新安装了rviz。我正在使用archlinux。

[ INFO] [1535655892.425579750]: rviz version 1.13.1
[ INFO] [1535655892.425678114]: compiled against Qt version 5.11.1
[ INFO] [1535655892.425738813]: compiled against OGRE version 1.11.1 (Rhagorthua)
exception ros ogre
1个回答
0
投票

问题在于ogre 1.11新API。

我已经使用https://github.com/ProfFan/rviz提交重新安装了rviz。

他在这里有一个拉动请求https://github.com/fizyr-forks/rviz/pull/1

它现在正在运作。

© www.soinside.com 2019 - 2024. All rights reserved.