cartographer-project / cartographer

Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations.
Apache License 2.0
7.03k stars 2.24k forks source link

Update code to work with recent abseil changes #1919

Open kkufieta opened 1 year ago

kkufieta commented 1 year ago

This patch fixes compilation issues caused by the most recent changes to abseil-cpp: https://github.com/abseil/abseil-cpp/releases:

The legacy spellings of the thread annotation macros/functions (e.g. GUARDEDBY()) have been removed by default in favor of the ABSL prefixed versions (e.g. ABSL_GUARDED_BY()) due to clashes with other libraries. The compatibility macro ABSL_LEGACY_THREAD_ANNOTATIONS can be defined on the compile command-line to temporarily restore these spellings, but this compatibility macro will be removed in the future.

kkufieta commented 1 year ago

Gentle ping - I would love to get these changes merged so we can stop using the ABSL_LEGACY_THREAD_ANNOTATIONS compatibility macro before it is going to be removed in the future.