RacecarSimでプログラム実行するとエラーで停止してしまう

解決手段

XLaunchを立ち上げてからUbuntuを再起動し、実行してみましょう。
以下のリンクに詳細な設定方法が掲載されています。
ウィンドウ数を42にするのを忘れないようにしましょう。

XLaunchの起動

理由

Windowsの場合は、XLaunchを使用してRacecarSimの画像部分の実行を行っています。
このため、XLaunchを立ち上げていない場合は以下のようなエラーがでます。

qt.qpa.xcb: could not connect to display localhost:42.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/toko/.local/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.