- 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
조회 수: 3 (최근 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에서 Connectivity to ROS-Enabled Simulators에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!