gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.2k stars 484 forks source link

Remove using namespace SimTK to fix compatibility with abseil 20230802 #3347

Closed traversaro closed 1 year ago

traversaro commented 1 year ago

🦟 Bug fix

Fixes https://github.com/gazebosim/gazebo-classic/issues/3346

Summary

In gazebo/physics/simbody/SimbodyPhysics.cc using namespace SimTK was used, that brought in the global namespace functions such as operator<= that created conflicts with some version of abseil (that is a transitive dependency via protobuf). For clarity and consistency with the rest of the codebase, using namespace SimTK was removed and replaced with explicity use of the namespace SimTK::.

Checklist