Robotics StackExchange | Archived questions

Can't send message from Simulink to ROS to control Kobuki robot in gazebo

I CAN NOT ATTACH IMAGES SO I HAVE PLACED THEM IN THE FOLLOWING GOOGLE DOC:

https://docs.google.com/document/d/1lo51BaWGFqAjbekAoIG8Gbrcx02vAL56HUgZnyGBXFo/edit?usp=sharing

Hi, I am trying to send velocity commands via Simulink (please find a screenshot of the model in the link above) to control a kobuki robot in gazebo. For some reason, the kobuki is not responding correctly to the velocity command being published from the Simulink model, as it takes at least 10 minutes to observe a minuscule change in the position of the robot (observed in both gazebo and the X-Y graph in Simulink).

I tried to manually move the robot using kobukikeyop in ROS to see if it was a problem with the master connection. However, when I moved the robot using kobukikeyop (with the approximate velocity used in Simulink model) I was able to see its change in position in the Simulink X-Y graph (and the kobuki actually moved in gazebo) which means that messages are indeed being sent between ROS and MATLAB.

The attached google doc also contains a list of rostopics and other useful bits of information.

Asked by skeggsy on 2021-06-05 06:01:54 UTC

Comments

I CAN NOT ATTACH IMAGES SO I HAVE PLACED THEM IN THE FOLLOWING GOOGLE DOC:

you can now, so please avoid using external sites to host anything and make your question stand-alone by attaching the images directly here.

The attached google doc also contains a list of rostopics

Please note: do not post screenshots of terminals. That would be unnecessary (and undesirable). Anything which is basically text can be copy-pasted into your question directly.

Asked by gvdhoorn on 2021-06-06 06:27:32 UTC

Answers