
コマンド「rosrun turtlesim turtlesim_node」を入力して、「rosnode」というプログラムを実行しようとしています。このコマンドはプログラムのウィンドウを開くはずですが、実際には次のエラーが発生します。
QXcbConnection: Could not connect to display :0.0
Aborted (core dumped)
このエラーを修正するにはどうすればいいでしょうか? ありがとうございます
答え1
以下のコマンドを試してからもう一度お試しください
export DISPLAY=:0
または
export DISPLAY=:0.0