i have some weird trouble here with the turtlebot and hope somebody can help me find where i did wrong. Up until now I can't make the turtlebot move when I publish on /cmd_vel
PC with matlab : 192.168.43.76
Rpi : 192.168.43.215
On the Rpi of the turtlebot:
I did modify the ~/.bashrc :
then I did: source ~/.bashrc
Next on matlab I wrote:
So the weird thing are that when i write :
velocity = 1.0;
robot = rospublisher('/cmd_vel','geometry_msgs/Twist');
msg = rosmessage(robot);
the robot doesn't move, although I have verified that the matlab is a publisher on /cmd_vel node on the RPi ( with the command rostopic info /cmd_vel), but i doesn't receive anything from the matlab ( I have also check with rostopic echo /cmd_vel)
I have already verify if the trouble was on the turtlebot but I can make the turtlebot move by using the command:
rostopic pub -1 /cmd_vel geometry_msgs/Twist --'[1.0, 0.0, 0.0]' '[0.0, 0.0, 0.0]'
but this time I try to check if I was seeing anything on the matlab by using rostopic('echo','/cmd_vel') but it doesn't show any modification of the topic on this either.
So I guess I have communication trouble between matlab and Rpi but I can't find where.
If anybody has an hint, you're more than welcome.
Thank you in advance community.