今天遇到了一个十分头痛的问题,当运行
ros2 run turtlesim turtlesim_node
的时候会出现以下问题
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
这个是没有配置QT_QPA_PLATFORM_PLUGIN_PATH环境的缘故,不过这个不能把他配置到python中安装的qt,可能是以下路径C:\Python37\Lib\site-packages\PyQt5\Qt\plugins,而是要配置到ros2中的C:\dev\ros2_dashing\bin\platforms,这个下面也有qwindows