ssh rviz: cannot connect to X server
hi, I am using indigo in ubuntu14.04.2. I am trying to connect my desktop computer(zyq.local) and another computer(thinker.local). I can ping them from each one, and I have set the hostname and host_master_uri like this: in my desktop computer:
export ROS_HOSTNAME=zyq.local
export ROS_MASTER_URI=http://thinker.local:11311
in another:
export ROS_HOSTNAME=thinker.local
then I login the robot computer through ssh
ssh thinker.local -l think
roscore &
roslaunch rbx1_bringup fake_pi_robot.launch
after this I open another terminal in my desktop computer an connect robot computer again
ssh thinker.local -l think
rosrun rviz rviz -d `rospack find rbx1_nav`/sim.rviz
now error occurs:rviz: cannot connect to X server
I do not why, two computers can ping each other. Thanks.