Can MATLAB control the real Baxter robot in real time? and can the VMware also control the real robot and how?

1 回表示 (過去 30 日間)
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!

採用された回答

Cam Salzberger
Cam Salzberger 2018 年 12 月 10 日
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 件)

カテゴリ

Help Center および File ExchangeNetwork Connection and Exploration についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by