Hi,
The Gazebo Co-Sim plugin is tested and supported for Ubuntu Focal (20.04) + Gazebo 11 as well as supported Ubuntu versions listed in the Gazebo Release Schedule for Gazebo 9, 10 and 11.
As Gazebo 11 is officially supporting upto Ubuntu Focal (20.04), the Gazebo Co-Sim plugin support is limited to same. Further, you can install Gazebo 11 on Ubuntu Jammy (22.04) but the installation process is bit different. Further, most of libraries from Gazebo installation in Ubuntu Jammy (22.04), needs -std=c++17 flag in build process with CMake.
Thus, to overcome this issue, you need to use attached CMakeLists.txt and follow below steps;
- Download attached CMakeLists.txt
- Copy and replace CMakeLists.txt from GazeboPlugin folder ( where buildPlugin.sh resides ). In your case, the location can be /home/user/src/GazeboPlugin
- cd /home/user/src/GazeboPlugin/build
- cmake ..
Check that, you should see following message, ( Using flag -std=c++17 )
5. make
WIth this change, you are able to build Gazebo Co-Sim Plugin on Ubuntu Jammy (22.04) + Gazebo 11 machine.
Thanks