C++ file for Gazebo plugin "GazeboCoSimPlugin.so"

조회 수: 5 (최근 30일)
JAEYONG HAN
JAEYONG HAN 2021년 7월 28일
댓글: Gaurav Bhosale 2022년 6월 20일
Hi, I successfully tried two examples, named "Perform Co-Simulation between Simulink and Gazebo" and "Control a Differential Drive Robot in Gazebo with Simulink" with the plugin named"libGazeboCoSimPlugin.so". Now I want to see how they built the plugin, and want to write my own.
But, I can't find C++ file for the plugin.
Where can I find it? or someone can send me?
please share your knowledge about it.
Thanks

답변 (2개)

Gaurav Bhosale
Gaurav Bhosale 2021년 7월 29일
Hi Jaeyong,
As you already have ROS2 and Gazebo VM, I will provide you details with respect to same VM.
The Gazebo plugin source files and executables are present /home/user/src/GazeboPlugin
Further, /home/user/src/GazeboPlugin/src/gazeboplugin/GazeboPlugin.cpp is the main 'World_Plugin' initializes and controls several handalers. In addition, /home/user/src/GazeboPlugin/src/gazeboplugin/CMakeLists.txt generates libGazeboCoSimPlugin.so at /home/user/src/GazeboPlugin/export/lib location. So, you can modify GazeboPlugin.cpp or write your own plugin and link with libGazeboCoSimPlugin.so in the world file.
Please, let me know, if you have further doubts or questions.
Thanks.
With Regards,
Gaurav Bhosale

bo zhang
bo zhang 2022년 6월 19일
Hello!
i didn't finish the example of Ur10BasicWithPlugin.world,can you help me? can yoi show your Ur10BasicWithPlugin.world?
Looking forward to your reply!
  댓글 수: 1
Gaurav Bhosale
Gaurav Bhosale 2022년 6월 20일
Ur10BasicWithPlugin.world is present in this VM. Make sure, you download latest VM (v6).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Gazebo Co-Simulation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by