Is there any way to serialize and de-serialize objects (such as pydrake.trajectories.PiecewisePolynomial, Expression ...) using pickle or some other way?
It does not complain when I serialize it, but when trying to load from file it complains:
TypeError: pybind11_object.__new__(pydrake.trajectories.PiecewisePolynomial) is not safe, use object.__new__()