Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix building on Ubuntu 24.04 #687

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

981213
Copy link
Contributor

@981213 981213 commented Apr 17, 2024

Ubuntu 24.04 updates Ceres Solver to 2.2.0 which dropped support for LocalParameterization and suggests users to move to Manifold instead.

This commit fixes slam_toolbox build on Ubuntu 24.04 and simultaneously breaks it for Ubuntu 22.04 with Ceres 2.0.0

The code are copied from the official slam/pose_graph_2d example:

https://ceres-solver.googlesource.com/ceres-solver/+/refs/tags/2.2.0/examples/slam/pose_graph_2d/


Basic Info

Info Please fill out this column
Ticket(s) this addresses None
Primary OS tested on Ubuntu 24.04
Robotic platform tested on A rosbag I recorded last year

Description of contribution in a few bullet points

  • fix building with ceres 2.2.0 on Ubuntu 24.04

Description of documentation updates required from your changes

None


Future work that may be required in bullet points

  • This breaks building with ceres 2.0.0 on Ubuntu 22.04. Do not merge until it's time to switch OS version.

solvers/ceres_utils.h Outdated Show resolved Hide resolved
LocalParameterization is deprecated in Ceres 2.1.0 and dropped in 2.2.0.
This commit fixes slam_toolbox build on Ubuntu 24.04.
The code are taken from the official slam/pose_graph_2d example:

https://ceres-solver.googlesource.com/ceres-solver/+/refs/tags/2.2.0/examples/slam/pose_graph_2d/
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
@lekoook
Copy link
Contributor

lekoook commented Jun 5, 2024

Any plans to merge this to the default ros2 branch or maybe under a jazzy branch?

@SteveMacenski
Copy link
Owner

Yup, I was just at this. The PR started before Nav2 was reasonably along for 24.04 but it is now and we've had the opportunity to test it with some simulation with Nav2 interaction this week from Ben. So, this is good to ship 👍

@SteveMacenski SteveMacenski merged commit 8749e33 into SteveMacenski:ros2 Jun 5, 2024
1 check passed
@SteveMacenski
Copy link
Owner

Thanks @981213 for the PR and help! Sorry for the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants