Skip to content

Build fails with GTSAM_TANGENT_PREINTEGRATION off #2145

@p-zach

Description

@p-zach

Description

When building with GTSAM_TANGENT_PREINTEGRATION off, the build fails because preintegrated() is not a member of PreintegratedImuMeasurements, which the compiler discovers upon creating navigation.cpp from navigation.i. It is not a member because it doesn't exist in ManifoldPreintegration, which PreintegratedImuMeasurements inherits from instead of TangentPreintegration (where preintegrated() does exist) when GTSAM_TANGENT_PREINTEGRATION is off.

Steps to reproduce

  1. Set up GTSAM to build Python wrapper
  2. Turn off GTSAM_TANGENT_PREINTEGRATION
  3. Try to build

Expected behavior

The build succeeds.

Environment

  • Windows 10
  • Python 3.11
  • GTSAM 4.3a0

Additional information

My current solution is commenting out the preintegrated() line:

gtsam::Vector preintegrated() const;

Permanent solutions would be either providing a real or dummy implementation in ManifoldPreintegration or officially removing preintegrated() from navigation.i.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions