Unable to build Gazebo Co-Sim plugin on Ubuntu 22.04 (Jammy) machine with Gazebo 11

26 ビュー (過去 30 日間)
Hi,
I am using Gazebo 11.10.02, CMake 3.22.1 on my Ubuntu 22.04 (Jammy) machine and MATLAB 2022a in my Windows 11 machine. The problem is that when trying to follow Gazebo Co-Sim tutorial, the plugin build process remains incomplete and throws following errors,
Can anyone provide me steps to resolve this isssue?
Thanks

採用された回答

Gaurav Bhosale
Gaurav Bhosale 2022 年 9 月 1 日
編集済み: Gaurav Bhosale 2022 年 9 月 1 日
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;
  1. Download attached CMakeLists.txt
  2. Copy and replace CMakeLists.txt from GazeboPlugin folder ( where buildPlugin.sh resides ). In your case, the location can be /home/user/src/GazeboPlugin
  3. cd /home/user/src/GazeboPlugin/build
  4. cmake ..
Check that, you should see following message, ( Using flag -std=c++17 )
If you get error in finding c++17 then try to install with this tutorial.
5. make
WIth this change, you are able to build Gazebo Co-Sim Plugin on Ubuntu Jammy (22.04) + Gazebo 11 machine.
Thanks

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRobotics についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by