Can MATLAB control the real Baxter robot in real time? and can the VMware also control the real robot and how?
6 views (last 30 days)
Show older comments
snow John
on 8 Dec 2018
Answered: Cam Salzberger
on 10 Dec 2018
Hello everyone,i am a student from China.recently i find matlab can control the robot ,
and now i want to know when i try to use matlab to control the baxter,the code is
rosinit('011602P0019.local','NodeHost','192.168.1.128');
but after i run those code,there are error.
Cannot connect to ROS master at http://011602P0019.local:11311. Check the specified address or hostname.
can someone explain,i am sure address and hostname are all right.
best wishes!
0 Comments
Accepted Answer
Cam Salzberger
on 10 Dec 2018
Hello John,
If you are having difficulty connecting to a ROS Master, first always check that the ROS Master is running, and that machine is connected to the same network as your MATLAB computer. I know it's an obvious step, but I've seen it missed a few times.
If connecting while specifying the hostname of the machine running the master, I would suggest trying by specifying the IP address of the machine rather than the hostname. It is possible that the computer running MATLAB isn't resolving the hostname to the correct IP address. You should be able to get the IP address to use from the output after you run roscore on the machine to start the master. Or you can use ifconfig for Unix or ipconfig /all for Windows to get the IP address.
If you still cannot connect to the master, ensure that you can ping the machine running the master from MATLAB.
Also double-check that the NodeHost IP address is correct. That should be the IP for the computer running MATLAB, as it is advertising where the node is hosted. This argument is typically not necessary, so you could try omitting it.
-Cam
0 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with ROS and ROS2 Connectivity Interface in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!