Open HaFred opened 3 years ago
I was referring to this one (https://www.mathworks.com/help/nav/ug/localize-turtlebot-using-monte-carlo-localization.html).
Previously the matlab script test.m (localizaiton.m)
gets stuck in the line:
waitForTransform(tftree,'/base_link','/base_scan', 5);
Now it works as below:
It is because rosinit
initializes the ROS_IP
incorrectly with some other unrelated IPs? Maybe it is because I picked wrong Matlab host IP from the so many ifconfig...
Just tested, as long as the ip can be ping in the gazebo virtual machine, it works to be set as $ROS_IP
at matlab side, but the gazebo side $ROS_IP
has to be its own 192.168.235.128
and used in the localizaiton.m
script.
A Great Starting Blog for TurtleBot Installation
https://edu.gaitech.hk/turtlebot/turtlebot-first-tests.html