我正在尝试从drake/automotive/automotive_demo.cc
. 作为第一步,我试图复制automotive_demo.cc
并automotive_demo.py
进入不同命名的文件(test.cc
和test.py
),然后运行bazel run automotive:test -- --num_simple_cars=1
. 我修改automotive/BUILD.bazel
并test.py
考虑到新的依赖项。
问题是在 I 之后bazel run
,模拟器窗口打开但没有汽车被渲染。最终它只是崩溃并出现以下错误:
[lcm-spy] ClassDiscoverer: java.lang.NoClassDefFoundError: apple/laf/AquaPopupMenuUI
[lcm-spy] jar: ../com_jidesoft_jide_oss/jide-oss-2.9.7.jar
[lcm-spy] class: com/jidesoft/plaf/aqua/AquaJidePopupMenuUI.class
...
[drake_visualizer] Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
...
[lcm-spy] LCM: Disabling IPV6 support
[lcm-spy] LCM: TTL set to zero, traffic will not leave localhost.
[lcm-spy] java.net.SocketException: Can't assign requested address
这是一个(未解决的)Github 问题,指出问题test
是“自定义插件”。但如果automotive_demo
可以工作,肯定有办法重现这种行为test
吗?我还尝试grep
了 ping QGuiApplication 并且只找到了一系列二进制文件,所以我不知道如何按照错误消息的建议进行操作。