Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support model pickling #957

Closed
rstrudel opened this issue Nov 15, 2019 · 2 comments
Closed

Support model pickling #957

rstrudel opened this issue Nov 15, 2019 · 2 comments

Comments

@rstrudel
Copy link
Contributor

rstrudel commented Nov 15, 2019

Hi,

When I try to dump a model using pickle, I get the following error:
RuntimeError: Pickling of "pinocchio.libpinocchio_pywrap.Model" instances is not enabled (http://www.boost.org/libs/python/doc/v2/pickle.html)

Here is a short snippet to reproduce the error:

import pickle as pkl
import pinocchio as pin

model = pin.Model()
pkl.dump(model, open('model.pkl', 'wb'))

Would it be possible to include this feature ?
Thanks,

Robin

@rstrudel rstrudel changed the title Make models picklable Support model pickling Nov 15, 2019
@jcarpent
Copy link
Contributor

Solved by #958.

@joao-pm-santos96
Copy link

Hi! Sorry to "re-open" this already closed issue but why can we pickle pin.Model() but not pin.GeometryModel()?

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants