Running rviz with VNC on a remote computer
I am developing a robot which uses Odroid XU4 as its onboard computer. It has a headless setup i.e. no monitor, keyboard and mouse. For testing purposes I SSH into the machine, which runs Ubuntu Mate 18.04, and start the vncserver
. Then using a VNC viewer application, I have remote desktop access to the machine.
Everything runs fine except rviz
. When I try to run rviz
(I run a ROS master process in another tab), I get the following error:
odroid@odroid:~/workspace/racecar$ rosrun rviz rviz
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
The X11 connection broke: Unsupported extension used (code 2)
XIO: fatal IO error 22 (Invalid argument) on X server ":1"
after 6 requests (6 known processed) with 0 events remaining.
I have seen solutions where Rviz is run on the local machine and all other nodes are run on remote computer. However my local machine is a Mac which does not have a ROS installation. Is there any way I can get Rviz to run on the remote computer?