Skip to content

set_estimate on vertex results in seg fault #45

@lukasbuehler

Description

@lukasbuehler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions