-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RViz2 can't load svg files. #987
Comments
I think the difference here is likely that in the The real fix here is that we should have an explicit dependency on the |
Yeap, that is exactly the case of how it is not installed on
Adding a dependency even though is not strictly one, as it still functions correctly without it minus the correct icons, seems a good idea. |
I was messing around with docker versions of ROS2 when i stumbled on a weird issue. The issue is that multiple warnings appear when launching RViz about loading svg files.
Using fresh docker containers:
docker run -it --gpus all --net host --ipc host -e DISPLAY=$DISPLAY -v $HOME/.Xauthority:/root/.Xauthority:ro ros:version
--ipc host
is required for Qt to display the main vis panel correctly instead of all black. (at least in my system)==
ros:humble
This loads RViz default svgs correctly.
ros:humble-perception
This failes to load RViz default svgs correctly.
Multiple
[ERROR] [1685452528.367825331] [rviz2]: Could not load pixmap package://rviz_common/icons/move_z.svg -- using default cursor instead.
errors appear.When installing rviz2, since there is no runtime-dependency on
libqt5svg5
, it doesn't get installed and therefore, fails to load the default svgs files required.You might think this can't be right since
humble-perception
extendshumble
. The dockerfile of ros:humble-perception installs the necessary packages but doesn't install the recommended ones.libqt5svg5
gets installed withperception_pcl
package as a recommended one, hence it is omitted for installation and somehow when installingrviz2
inhumble-perception
it is not recommended at all while inhumble
it is.The text was updated successfully, but these errors were encountered: