Unable to install Gazebo Plugin for Simulink co-simulation

4 views (last 30 days)
I am following the instructions in this page to install Gazebo Plugin - https://nl.mathworks.com/help/robotics/ug/perform-co-simulation-between-simulink-and-gazebo.html
I was unable to understand where to run this command packageGazeboPlugin
and where to download this file zip file to unzip and put it inside a path like the statements mentione below -
"Copy the GazeboPlugin.zip to your Linux machine that meets the following requirement:
Unzip the package on your Linux platform, for this example we unpack to /home/user/src/GazeboPlugin."
Please let me know

Answers (1)

Shubham
Shubham on 9 Oct 2024
Hi Vignesh,
To install the Gazebo Plugin for Simulink co-simulation, follow these steps:
  • Open MATLAB and type packageGazeboPlugin in the Command Window. This will create "GazeboPlugin.zip" in your current working directory.
  • Move "GazeboPlugin.zip" to your Linux machine where Gazebo is installed.
  • Unzip the file and navigate to the directory using the following commands:
unzip GazeboPlugin.zip -d /home/user/src/
cd /home/user/src/GazeboPlugin
  1. If a build folder exists, remove it with following command:
rm -r build
  • Install the plugin using the following commands:
mkdir build
cd build
cmake ..
make
  • The compiled plugin will be located at "/home/user/src/GazeboPlugin/export/lib/libGazeboCoSimPlugin.so".
Further details on setting up and launching the Gazebo Simulation Environment are available in the provided documentation link.
Hope this helps!

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!