Co-simulation Simulink and Gazebo: Gazebo Custom Support block makes it very slow
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yunsik Jung
am 24 Dez. 2021
Kommentiert: Yunsik Jung
am 10 Jan. 2022
Hello,
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?
Thanks!
Yun
0 Kommentare
Akzeptierte Antwort
Gaurav Bhosale
am 5 Jan. 2022
Bearbeitet: Gaurav Bhosale
am 5 Jan. 2022
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.
Thanks.
3 Kommentare
Gaurav Bhosale
am 10 Jan. 2022
Hi Yunsik,
You can create any .proto file or modify existing one. You can get more idea from google protobuf documnetation.
Further, the idea is to add field name, datatype based on your requiements.
e.g. In the above example, 'x', 'y' and 'z' are scalar ( mentioned with 'required' ) of type 'double'. Similary, if you want vector then you need to use 'repeated' instead of 'required'.
Thanks
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu String finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!