Gazebo Pacer setup issue

1 次查看(过去 30 天)
Minseok Jeon
Minseok Jeon 2021-3-29
I am asking my questions aftering trying this example for multiple times: https://it.mathworks.com/help/robotics/ug/perform-co-simulation-between-simulink-and-gazebo.html
I am planning to connect my Simulink model to Gazebo robot, and I have found that building a world setup is required to perform co-simulation between Gazebo and Simulink. If there is a way to do so without building a world setup or with launch file, I would like to know more about it. But, if we have to use a world file, do we need to put this in every file that the world file will be dependent on or just one world file? : <plugin name="GazeboPlugin" filename="lib/libGazeboCoSimPlugin.so"><portNumber>14581</portNumber></plugin>
Also, where exactly are we supposed to put this? : export GAZEBO_PLUGIN_PATH=${GAZEBO_PLUGIN_PATH}:/home/user/src/GazeboPlugin/export
If there is any more explanations regarding those syntax problems, I will greatly appreciate the help.
Thank you
Sam J.

回答(1 个)

Amrtanshu Raj
Amrtanshu Raj 2021-4-19
Hi,
Based on what I understand from your question here is my answer in points.
  1. libGazeboCoSimPlugin enables the Gazebo size of the function required for Gazebo Cosim to work.
  2. You need to add this plugin to all the worlds you want to interact with via Gazebo Cosim.
  3. You need to add it by editing the world file and adding it.
  4. export GAZEBO_PLUGIN_PATH=${GAZEBO_PLUGIN_PATH}:/home/user/src/GazeboPlugin/export You need to enter this into the terminal of the Linux machine/VM. (you might have to edit the path as per your need)
Hope this helps !!
  1 个评论
Minseok Jeon
Minseok Jeon 2021-4-26
Hi,
I have tried using the plugin, but it looks as though there are a lot of problems with latency for co-simulating using both Gazebo and Simulink. Would the only solution be generating C++ codes from the simulink and then run them in Gazebo separately?

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by