Ask Your Question
0

rviz problem with server x

asked 2012-10-10 03:54:22 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi guys, When I want to run empty rviz (rosrun rviz rviz) I get the following error rviz: cannot connect to X server. Do somebody know what to do?

Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-10-10 04:09:48 -0500

Lorenz gravatar image

I guess you do not have an X server running. Are you maybe trying to run it inside an ssh connection or not inside a terminal in a graphical environment such as Ubuntu's Unity?

If you want to run rviz locally but visualize data from a robot, just set the variable ROS_MASTER_URI on your pc correctly. Have a look here for more information.

edit flag offensive delete link more
0

answered 2012-10-10 04:16:25 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Lorenz thanks for the tip. I totally forgot that I was in the ssh connection trying to run rviz.

edit flag offensive delete link more

Comments

1

Please do not create answers for comments. Answers should really answer the original question. Instead, please use the comment functionality or edit your original post.

Lorenz gravatar image Lorenz  ( 2012-10-10 04:21:45 -0500 )edit

I am sorry for that I will keep in mind. Regards

harke gravatar image harke  ( 2012-10-11 01:15:02 -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-10-10 03:54:22 -0500

Seen: 2,764 times

Last updated: Oct 10 '12