フィルターのクリア

Connecting simulink/matlab and Ros only work one way, but can't receive messages

3 ビュー (過去 30 日間)
Mariano De Luca
Mariano De Luca 2023 年 12 月 12 日
コメント済み: Mariano De Luca 2023 年 12 月 19 日
Hello guys, I'm trying to connect a Duckiebot with ROS to MATLAB Simulink (unfortunately, I'm compelled to use them), and something strange is happening. I can ping both devices, and I can also send commands from MATLAB to the robot. The problem is that MATLAB/Simulink is not able to receive messages from the robot. I've tried various guides ( like this https://it.mathworks.com/matlabcentral/answers/119559-why-is-the-ros-subscriber-callback-in-matlab-not-triggered-when-messages-are-published-from-an-exter ) on the internet, but it's not working. Do you know how to resolve this issue?
the strange thing is that sometimes (like 1 in 100 tries i can actually read the data, but if i try again i cann't recive anything., and we also tried with the same robot but connected to a macbook with matlab and it works perfectly, so the problem is windows but i really idk how to do it.

回答 (1 件)

Sarthak
Sarthak 2023 年 12 月 19 日
Hi Mariano,
This issue might be occuring because of Windows firewall configurations. You should disable any firewall software you are using or try to add a generic incoming rule.
This should resolve the issue.
  1 件のコメント
Mariano De Luca
Mariano De Luca 2023 年 12 月 19 日
We tried disable the firewall, or config ROS_IP. Nothing work.
The only thing that worked was using a macbook or a pc with ubuntu + Matlab.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangePublishers and Subscribers についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by