Co-simulation Simulink and Gazebo problem, Gazebo Custom Support block (without contact) makes it very slow

1 次查看(过去 30 天)
Hi, all.
I have an issue related to the too slow simulation speed due to the Gazebo Custom Support block in Simulink for Co-simulation Simuink and Gazebo. (I used MATLAB and Gazebo on the same mashine, Ubuntu)
I imagined that the contact message has too many fields, so it makes the speed slow.
But, even I selected /gazebo/default/joint in the Gazebo Custom Support block, it makes the speed very slow.
Once I remove the block, the speed is recovered.
Is this a known issue?
If it is, please let me know when it would be solved. This is very critical issue for my project, since I am using reinforcement learning. For instance, a policy is trained with a normal simulation speed. And if i try to train it further only adding the Gazebo Custom Support block to the Simulink model, the performance is changed greatly due to the slow speed. it may be not related to this issue, but it is still critical.
Thanks.

采纳的回答

Gaurav Bhosale
Gaurav Bhosale 2022-2-1
Hi Yunsik,
Which details of joint you want to use?
You can use Gazebo Read Block with gazebo_msgs/JointState message instead of custom message.
Thanks

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by