HaFred / ROS-DiLearnNavi

Yet Another Navigation Package
0 stars 0 forks source link

TurtleBot Related #2

Open HaFred opened 3 years ago

HaFred commented 3 years ago

A Great Starting Blog for TurtleBot Installation

https://edu.gaitech.hk/turtlebot/turtlebot-first-tests.html

HaFred commented 3 years ago

Matlab & ROS Co-simulation

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: image 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... image

HaFred commented 3 years ago

image image 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. image image