Could not connect to any X display when attempting rosrun turtlesim turtlesim_node
When I get to the point in the tutorial of inputting rosrun turtlesim turtlesim_node
I get the error message of
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
I'm relatively new to doing any sort of coding and have tried to a few different solutions suggested online but to no avail.
TIA
I'd suggest describing your development environment a bit more. What sort of hardware are you using for instance? What OS? Windows? Linux (which one)? Are you remotely logging in over an SSH connection? Something else?
When asking for help on a forum (any forum, not just this one), it helps to be as clear as possible, in particular about what you observe, what you expect, and about the context in which what you observe happens/happened. That context would include versions of software used, operating systems, command you ran, commands you ran before the failing one, etc.
Once you add more of this information, I expect board members here to be able to help you better.