Skip to content

support gtsam 4.3 header migration - #1626

Merged
matlabbe merged 1 commit into
introlab:masterfrom
v4hn:gtsam-4.3
Dec 20, 2025
Merged

matlabbe merged 1 commit into
introlab:masterfrom
v4hn:gtsam-4.3

Conversation

@v4hn

@v4hn v4hn commented Dec 6, 2025

Copy link
Copy Markdown
Contributor

They recently split this class out in another header in their 4.3 development branch.

as currently in their development branch
@matlabbe

matlabbe commented Dec 7, 2025

Copy link
Copy Markdown
Member

LGTM! thank you

@matlabbe

matlabbe commented Dec 7, 2025 •

Copy link
Copy Markdown
Member

Looks like kilted and rolling are using a 4.3 version older than this change added 2 weeks ago: https://github.com/borglab/gtsam/commits/develop/gtsam/nonlinear/NoiseModelFactorN.h

They just released 3 weeks ago a new version for ros2: borglab/gtsam#2278

@v4hn

v4hn commented Dec 13, 2025

Copy link
Copy Markdown
Contributor Author

Wonderful. I guess no choice but to wait for ros2 to pull in new versions once things settled down there, because the different development states share the version number.
I packaged it for ROS-O in one of the builders last week and found this breaking change.
I guess there is no harm in having it lie around depending on your preferences for the master branch.

@matlabbe

Copy link
Copy Markdown
Member

Yeah, we are in a weird position:

  • Updating it here means we cannot build against gtsam binaries
  • Not updating here means we cannot build with latest gtsam build from source

We had a similar issue with g2o library, which doesn't use versions and API gets broken from time to time. It seems that file gtsam/nonlinear/NoiseModelFactorN.h is a new file. I'll check to add a special case detecting that header with cmake and add a preprocessor define to add the include in GravityFactor.h file.

@matlabbe
matlabbe merged commit 86d5c99 into introlab:master Dec 20, 2025
@matlabbe

Copy link
Copy Markdown
Member

Added support in 6f715b4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants