You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great work with the library especially the Python wrapper. I was playing with it and I was not able to iterate over Variables. I could iterate over FactorGraph but I was not able to extract anything out of each factor.
I tried iterating like this:
for key in initials:
print(key)
And I get an error:
Traceback (most recent call last):
File "gps_factor_example.py", line 109, in <module>
for key in initials:
KeyError: '[python::Variables] key does not exist'
Wondering if I am doing something wrong or this is not supported yet.
The text was updated successfully, but these errors were encountered:
Hi Sidd @itzsid ! I don't think the key iterator is implemented now. I will have a look, and if you want to have a look ahead, the location of the python binding of Variables is at python/minisam_wrapper/variables.cpp, which needs some pybind11 knowledge to understand :)
Hi Jing/Zhaoyang,
Great work with the library especially the Python wrapper. I was playing with it and I was not able to iterate over Variables. I could iterate over FactorGraph but I was not able to extract anything out of each factor.
I tried iterating like this:
And I get an error:
Wondering if I am doing something wrong or this is not supported yet.
The text was updated successfully, but these errors were encountered: