How to establish Reinforcement Learning setup between simulink and ROS2 Gazebo?
6 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to establsh communication between the Reinforcement Learning (RL) agent block defined in simulink and the Gazebo Simulator that responds to ROS2 action calls. I am using a ROS2 Service call block in Simulink, and a pythoin script is used in the middle to call the appropriate action for each service request.
In this setup, I want to ensure that every action of the RL agent is passed as a discrete service request, and that returns with a response.
However, as soon as I begin the simulation, too many service requests are continuously placed, even before the RL agent produces the next action.
I need assistance on controlling the rate of service requests placed, and especially I want the RL agent to be dictator of calling each and every service requests.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1551317/image.png)
0 个评论
回答(1 个)
Gaurav Bhosale
2023-11-27
Hi,
Look like this issue migh be due to ROS-Simulink and Gazebo are not in synchronization.
We are providing Gazebo-Simulink connectivity without ROS, which maintains syncronization between Simulink and Gazebo. You can check Gazebo Co-Sim Example. Let me know if you need further details.
Thanks
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Network Connection and Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!