How do I launch a node on a raspberry pi from my laptop that has GUI that I want displayed on my laptop?
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
Is there a reason you can't remote desktop into the PI?
Have you tried X forwarding over ssh, with
ssh -X
? Which node are you trying to forward?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