rviz problem with server x
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!
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
asked 2012-10-10 03:54:22 -0500
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!
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.
answered 2012-10-10 04:16:25 -0500
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.
Asked: 2012-10-10 03:54:22 -0500
Seen: 2,856 times
Last updated: Oct 10 '12