I experienced a similar issue as seen in: #44
However, the same issue hints at using
set_estimate_data instead of set_estimate, which works as expected.
If this is expected, the examples at https://github.com/miquelmassot/g2o-python-examples/blob/main
are wrong.
g2o-python Version 0.0.12
Example with Error
import g2o
p = g2o.VertexPointXY()
p.set_estimate([1., 2.]) # seg fault
Example without error:
import g2o
p = g2o.VertexPointXY()
p.set_estimate_data([1., 2.]) # works
I experienced a similar issue as seen in: #44
However, the same issue hints at using
set_estimate_datainstead ofset_estimate, which works as expected.If this is expected, the examples at https://github.com/miquelmassot/g2o-python-examples/blob/main
are wrong.
g2o-python Version 0.0.12
Example with Error
Example without error: