导入pydrake.multibody.math时出现导入错误

时间:2020-09-15 15:03:57

标签: python drake

我正在尝试为我的代码导入SpatialForce,但它始终会因错误而失败

ImportError: C++ type is not registered in pybind: N5Eigen14AutoDiffScalarINS_6MatrixIdLin1ELi1ELi0ELin1ELi1EEEEE

只需运行

from pydrake.multibody.math import SpatialForce

import pydrake.multibody.math
python解释器中的

会导致此错误。知道是什么原因造成的吗?

1 个答案:

答案 0 :(得分:1)

在以下PR中修复它:
https://github.com/RobotLocomotion/drake/pull/14072

(还添加了一个新的测试,以便将来尝试捕获类似的东西!)

谢谢!