I am currently trying to make an autonomous drone using the Robot Operating System (ROS). To do this, I have installed Raspbian Lite (Jessie) on a Rasperry Pi 3 and am currently using ROS Kinetic on it. I decided to go with Openbox Window Manager and installed a terminal onto it for convenience. I can just call sudo startx
. Since it is a system-wide terminal, I have also installed tmux for convenience. I am running the xserver on a particular pane and conduct my ROS work on other panes.
Now when I try to run commands that call on a GUI application from my system-wide terminal, I get the error:
QxcbConnection: Could not connect to display
Aborted
After a recommendation from this question, I decided to install xhost
on my terminal emulator. After invoking xhost +
in the same emulator, I get this:
access control disabled, clients can connect from any host
After which I invoke xhost which returns with:
access control disabled, clients can connect from any host
SI:localuser:root
Therefore, within my system-wide terminal, I have set the environmental variable to 5 different values which have been listed below, and tried to run the program which calls on the $DISPLAY
, but I get the same QxcbConnection: Could not connect to display
error.
SI:localuser:root
localuser:root
localuser
root
SI:localuser
localhost:0
The last one was actually from the linked question. To my understanding, I am doing exactly what is listed out in this man page. What am I doing wrong?
xhost +
), what is the output ofecho $DISPLAY
? – JigglyNaga Jan 04 '17 at 10:48:0
– SDG Jan 04 '17 at 10:50export DISPLAY=:0
– JigglyNaga Jan 04 '17 at 10:56
– SDG Jan 04 '17 at 11:00QxcbConnection: Could not connect to display Aborted
xterm
? – JigglyNaga Jan 04 '17 at 11:02xterm
though? – SDG Jan 04 '17 at 11:32rosrun turtlesim turtlesim_node
is the exact thing I am calling. rosrun is a function that runs a particular node in the ros environment, to my understanding.turtlesim
is the name of the library andturtlesim_node
is the specific node from that library that is being called.turtlesim_node
calls on a GUI window to display the movement of a turtle. If you would like to know more, please take a look at this guide. – SDG Jan 06 '17 at 11:56ROS
installed on my Rpi and I runroscore
. – SDG Jan 06 '17 at 11:58xterm
, or any other simple X11 application (eg.lxterminal
- I don't know what else you've got installed), from the same prompt where you're trying to userosrun
? If that works, and the new xterm appears in the already-running X session, then you've correctly set upxhost
, and we can start worrying about ROS. – JigglyNaga Jan 06 '17 at 14:16