How do I launch a node on a raspberry pi from my laptop that has GUI that I want displayed on my laptop?

asked 2018-12-13 18:16:31 -0600

lucasg gravatar image

Currently, I am able to run the master node from my laptop and launch another node on the raspberry pi while it is connected to my laptop via SSH and another Monitor.

The only problem is that I need to always have a monitor connected to the Raspberry Pi.

When I try export DISPLAY=:1 and run the node from my laptop (via SSH), I get this error:

QXcbConnection: Could not connect to display :1
Aborted (core dumped)

When I try export DISPLAY=:0 and run the node from my laptop, the GUI shows up on the monitor connected to the Raspberry Pi and works fine

I need to be able to run the node on the Raspberry Pi from my laptop via (SSH) and have its accompanying GUI show up on my laptop

edit retag flag offensive close merge delete



Is there a reason you can't remote desktop into the PI?

billy gravatar imagebilly ( 2018-12-13 22:25:22 -0600 )edit

Have you tried X forwarding over ssh, with ssh -X ? Which node are you trying to forward?

ahendrix gravatar imageahendrix ( 2018-12-13 23:21:13 -0600 )edit

Also, to avoid an xy-problem, why do you need to run the node on the RPi? And why is the GUI tied into the node? Typically, if you need a GUI, it is better to have this stand-alone and communicate via the standard ROS topics/actions/services to the nodes doing the work

mgruhler gravatar imagemgruhler ( 2018-12-14 00:53:04 -0600 )edit