ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Could not connect to any X display when attempting rosrun turtlesim turtlesim_node

asked 2022-07-07 09:26:07 -0500

owilliams gravatar image

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

edit retag flag offensive close merge delete

Comments

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.

gvdhoorn gravatar image gvdhoorn  ( 2022-07-08 00:41:38 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-13 18:33:14 -0500

dieguito gravatar image

in case anyone else is having the same issue, after a long while trying different solutions, installing Mobaxterm worked out for me finally

edit flag offensive delete link more

Comments

can you please tell more how to use mobaxterm to solve this error im facing the same error

harry23 gravatar image harry23  ( 2023-07-29 01:35:23 -0500 )edit

Question Tools

Stats

Asked: 2022-07-07 09:26:07 -0500

Seen: 129 times

Last updated: May 13 '23