ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Cannot use rviz under docker

asked 2018-10-11 19:52:34 -0600

iwtbm gravatar image

updated 2018-10-12 04:50:51 -0600

gvdhoorn gravatar image

Hi,

I downloaded ros:indigo-ros-core-trusty from dockerhub and installed rviz for indigo. But I cannot start rviz in the new terminal. I have tried the method from http://wiki.ros.org/docker/Tutorials/GUI . But rviz still does not work.

The error is like this:

...

libGL error: failed to load driver: swrast

libGL error: failed to load driver: swrast

rviz::RenderSystem: error creating render window: std::exception

[ WARN] [1539299284.774409653]: OGRE EXCEPTION(2:InvalidParametersException): Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at /build/buildd/ogre-1.8-1.8.1+dfsg/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1038)

...

Could anyone help me ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-15 13:42:40 -0600

ruffsl gravatar image

As per your error message above, rviz is attempting to make use of OpenGL for 3D rendering. Depending on your host setup, you may need to enable hardware acceleration into the container to make use of OpenGL dependant applications.

Please see this related entry in the ROS wiki:
http://wiki.ros.org/docker/Tutorials/...

edit flag offensive delete link more

Comments

1

Or use Singularity ;)

gvdhoorn gravatar image gvdhoorn  ( 2018-10-15 14:10:19 -0600 )edit

Question Tools

Stats

Asked: 2018-10-11 19:52:34 -0600

Seen: 3,666 times

Last updated: Oct 15 '18