- Set up Gazebo Simulation Environment - https://www.mathworks.com/help/supportpkg/vexv5/ug/setup-gazebo.html
- Troubleshooting Gazebo Simulation – https://www.mathworks.com/help/supportpkg/vexv5/ug/troubleshooting-gazebo-simulation.html
(ROS) Matlab not publishing to Gazebo while still being able to subscribe
2 ビュー (過去 30 日間)
古いコメントを表示
Hi! I’m new to ros and I am doing a series of small projects for an exam in which we control the turtlebot through matlab&simulink (working on ubuntu 20.04).
I had never had any problem with publishing from matlab/simulink to gazebo until a couple of hours ago, when suddenly simulink stopped being able to send commands to gazebo. It can subscribe without problems (e.g, I can get the odometry), but if I try, for example, to set a velocity from matlab with the setVelocity function, the bot in Gazebo doesn’t move.
I read other posts on this forum that mentioned similar issues, and I have tried the proposed solutions: I checked if gazebo and matlab are connected to the same IP and they are, I checked nodes and topics between matlab and terminal and they are the same. I've seen mentioned also checking the firewall status, and it says 'inactive'.
Also, I think it’s worth mentioning that I have not changed anything in my setup. Everything happened suddenly, without apparent reason.
Could you please help me find a solution?
Thank you!
0 件のコメント
回答 (1 件)
Animesh
2023 年 8 月 31 日
Based on your post, it seems that you haven't provided any specific error codes.
I would like to suggest the following resources to help you with setting up the Gazebo Simulation Environment and troubleshooting any issues you may encounter:
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!