Ask Your Question
0

X11 Forwarding and ROS Visualization Tools

asked 2012-02-15 07:15:27 -0500

NeuralJuiceBox gravatar image

Hi all,

I have a setup where I would prefer to be able to run my ROS setup remotely. When using X11 forwarding, on Rviz or the Turtlebot Gazebo simulator I get the following.

terminate called after throwing an instance of 'Ogre::RenderingAPIException'
  what():  OGRE EXCEPTION(3:RenderingAPIException): Couldn`t open X display localhost:10.0 in GLXGLSupport::getGLDisplay at /tmp/buildd/ros-electric-visualization-common-1.6.2/debian/ros-electric-visualization-common/opt/ros/electric/stacks/visualization_common/ogre/build/ogre_src_v1-7-3/RenderSystems/GL/src/GLX/OgreGLXGLSupport.cpp (line 788)
[gazebo-1] process has died [pid 5289, exit code -6].

Can anyone explain what this error means, and suggest where I could start looking to fix it?

Thanks.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
2

answered 2012-02-15 17:24:48 -0500

ahendrix gravatar image

Ogre and OpenGL in general doesn't play well with X forwarding. ROS is inherently network-aware, so you should instead set ROS_MASTER_URI appropriately on your workstation and run rviz locally.

edit flag offensive delete link more

Comments

That is really too bad. I am looking for a solution where rendering is done remotely.

NeuralJuiceBox gravatar imageNeuralJuiceBox ( 2012-02-21 01:58:14 -0500 )edit

wviz: http://ros.org/wiki/wviz might provide the solution you're looking for.

ahendrix gravatar imageahendrix ( 2012-02-21 18:10:48 -0500 )edit
0

answered 2019-08-01 09:37:03 -0500

kaalessi gravatar image

I recently set up X11 forwarding, and RVIZ just seemed to just work. The server is running Ubuntu and the client used Widnows and Putty. I did notice that the frame rate shown in RVIZ for my Velodyne Puck was significantly lower when using X11 forwarding. I also tested rqt_image_viewer and also had success. Maybe an update to X11 was all that was needed.

edit flag offensive delete link more
0

answered 2012-06-19 07:59:01 -0500

Nan Jiang gravatar image

I saw that you are looking for a remote rendering solution for Gazebo, which is a problem I just solved recently. The point is that you need to set up a X server on the remote machine and forward 3D rendering quests to it, otherwise 3D rendering is forwarded to your local machine by default. The only consequence is that you will not see any graphical interface on your local machine.

If you have a monitor on the remote machine, things are quite easy. If not... there is still some small trick you can apply to overcome the difficulty. Tell me if you need more information.

edit flag offensive delete link more

Comments

Really helpful. There is ALWAYS someone who needs "more information"...

Xaser gravatar imageXaser ( 2017-06-15 13:02:08 -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

Stats

Asked: 2012-02-15 07:15:27 -0500

Seen: 1,367 times

Last updated: Jun 19 '12