Ask Your Question
0

[not duplicate]RVIZ Could not find font Liberation Sans in MovableText::setFontName

asked 2018-08-30 14:33:15 -0500

CatchMe gravatar image

I am uisng:

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

And the font file exists in/opt/ros/melodic/share/rviz/ogre_media/fonts/liberation_sans.fontdef

PROBLEM: rviz works OK with the first tutorial example roslaunch urdf_tutorial display.launch model:=/opt/ros/melodic/share/urdf_tutorial/urdf/01-myfirst.urdf, but when I use model with any joint it throws the following error:

terminate called after throwing an instance of 'Ogre::Exception'
what(): : Could not find font Liberation Sans in MovableText::setFontName

for example : when I run:roslaunch urdf_tutorial display.launch model:=/opt/ros/melodic/share/urdf_tutorial/urdf/02multipleshapes.urdf it signals the previous error, but when I comment the joint section, it works well.

Questions:

  • Can I change the search path for ogre to solve that?
  • How can I solve this error?

NOTE: I have reinstalled rviz. I am using 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)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-03 10:28:44 -0500

CatchMe gravatar image

updated 2018-09-04 07:25:42 -0500

The problem is with ogre 1.11 new API.

I have reinstalled rviz using https://github.com/ProfFan/rviz commits.

He has a pull-request here https://github.com/fizyr-forks/rviz/p...

And it's working now.

edit flag offensive delete link more

Comments

I worked first when I removed the tf class, so it didn't look for the font.

CatchMe gravatar image CatchMe  ( 2018-09-04 07:26:35 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-08-30 14:33:15 -0500

Seen: 199 times

Last updated: Sep 04 '18