dfki-ric / pytransform3d

3D transformations for Python.
https://dfki-ric.github.io/pytransform3d/
Other
632 stars 68 forks source link

Work on TransformManager serialization #217

Closed ljmanso closed 1 year ago

ljmanso commented 1 year ago

I think I got it working:

...
dict_tm = pickle_tm.to_dict()
restored_tm = pytransform3d.transform_manager.TransformManager.from_dict(dict_tm)
a = pickle_tm.get_transform("trackera", "orinbot_l")
b = restored_tm.get_transform("trackera", "orinbot_l")
print(b-a)

ljmanso@sturdy:~$ python3 tm_test.py 
[[0. 0. 0. 0.]
 [0. 0. 0. 0.]
 [0. 0. 0. 0.]
 [0. 0. 0. 0.]]
ljmanso@sturdy:~$ 
AlexanderFabisch commented 1 year ago

Hi, I am sorry, I forgot to push my latest commit. It was working already. Please try that one.