Co-simulation Simulink and Gazebo: Gazebo Custom Support block makes it very slow

1 回表示 (過去 30 日間)
I have a trouble with the simulation speed of the Co-simulation between Simulink and Gazebo.
First of all, the simulation speed is close to the real-time without the Gazebo Custom Support block. However, I need to use this block to read the contact information.
Without the Gazebo Custom Support block: 1 sec simulation takes 3.5 sec (in real-time).
With the Gazebo Custom Support block: 1 sec simulation takes 15 sec (in real-time).
(sampling time = 0.01 sec)
Anyone has ideas or solutions to account for this issue?


Gaurav Bhosale
Gaurav Bhosale 2022 年 1 月 5 日
編集済み: Gaurav Bhosale 2022 年 1 月 5 日
Hi Yunsik,
We are working on performance improvement. Further, as per our initial findings, if Gazebo and MATLAB/SImulink is running on same machine ( Ubuntu ) then we observed performance improvement. So, if you can install MATLAB on same Gazebo machine then you might get better performance.
Also, try with light version of Contact message. The Contact message has several fields but you might not required all fields, then you can create your own Contact customized message with only those required fields and subscribe that message with Gazebo Subscribe block.
  3 件のコメント
Yunsik Jung
Yunsik Jung 2022 年 1 月 10 日
Thank you for the quick response!
I will check the documentation to get an idea who to do it.
Thanks! And I really hope you and your team get the improvement soon.


その他の回答 (0 件)


Help Center および File ExchangeGazebo Co-Simulation についてさらに検索




Community Treasure Hunt

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

Start Hunting!

Translated by