- edited description
Segfault while reading Pose2 values from python wrapper
Similar to Issue#313 a segmentation fault occurs when reading Pose2 data from the values array from the python interface.
Repeatable via:
a = gtsam.Values()
a.insert(1234567, gtsam.Pose2())
a.insert(1234568, gtsam.Pose3())
print(a.atPose3(1234568).translation().vector())
print(a.atPose2(1234567).translation().vector())
Comments (8)
-
reporter -
Does this happen with the cython wrapper?
-
reporter I actually wasn't aware that there was a cython wrapper, I'll look into this now!
-
reporter The cython wrapper seems to retrieve Pose2 values just fine! I am however receiving a segfault with the cython wrapper when trying to access any array.
e.g
a = gtsam.Pose3() b = a.matrix()
Likely an Eigen issue.
-
reporter The above issue was resolved by correctly installing the cython python module (or importing from build/cython instead of build/cython/gtsam).
Just for clarification, the boost::python wrapper still segfaults when accessing a Pose2 element from a Values object as described above. The cython wrapper does not have this issue.
-
Great! Thanks for the information! The python wrapper hasn't been tested thoroughly, but the cython wrapper should be fully functional. If you have other issues with the cython wrapper, please let us know.
-
reporter No worries, I'll aim to keep you updated. Thanks for the help!
-
- changed status to resolved
Fixed using cython wrapper - we should probably graveyard the boost python experiment.
- Log in to comment