Mark
Mark

Reputation: 51

Import Error on importing pydrake.multibody.math

I'm trying to import SpatialForce for my code but it keeps failing with the error

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

Simply running

from pydrake.multibody.math import SpatialForce

or

import pydrake.multibody.math

in a python interpreter causes this error. Any idea what is causing this?

Upvotes: 3

Views: 106

Answers (1)

Eric Cousineau
Eric Cousineau

Reputation: 2004

Fixed it in the following PR:
https://github.com/RobotLocomotion/drake/pull/14072

(Also added in a new test to try and catch things like this in the future!)

Thanks!

Upvotes: 1

Related Questions