【发布时间】:2020-09-15 15:03:57
【问题描述】:
我正在尝试为我的代码导入 SpatialForce,但它一直因错误而失败
ImportError: C++ type is not registered in pybind: N5Eigen14AutoDiffScalarINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEEE
简单运行
from pydrake.multibody.math import SpatialForce
或
import pydrake.multibody.math
在 python 解释器中会导致此错误。知道是什么原因造成的吗?
【问题讨论】:
-
如果我在运行这些导入之前导入
pydrake.math,问题就会消失。 -
您能描述一下您使用的是哪个版本的 Drake 吗? drake.mit.edu/getting_help.html#helpful-information 你能试着确保你的路上没有其他东西吗? github.com/RobotLocomotion/drake/issues/13187
-
啊,不好意思,我以为这只是
pydrake.math的隔离,没仔细看。现在将调试。