Fixing build with gtsam 4.3 binaries

This commit is contained in:
matlabbe
2025-12-20 14:48:09 -08:00
parent 86d5c99f5d
commit 72bd453078
2 changed files with 11 additions and 1 deletions

View File

@@ -25,7 +25,7 @@
#pragma once
#include <gtsam/nonlinear/NonlinearFactor.h>
#if GTSAM_VERSION_NUMERIC >= 40300
#if GTSAM_VERSION_NUMERIC >= 40300 && defined(GTSAM_WITH_NOISE_MODEL_FACTOR_N)
#include <gtsam/nonlinear/NoiseModelFactorN.h>
#endif
#include <gtsam/geometry/Pose3.h>