pickle.dump(pendulum, open("obj/pendulum1.obj", "wb")) returns TypeError: cannot pickle 'pydrake.examples.pendulum.PendulumPlant' object. Here, pendulum is an object of a self-defined class with an PendulumPlant object inside.
Is it because pydrake is not natively written in python?