ROS initiate in MATLAB
Mostrar comentarios más antiguos
Hey guys,
I'm trying to play with ROS interface to MATLAB. I tried the communication between MATLAB and an external ROS master (another computer) and let matlab playing as a node. It works perfectly but the system has a certain amout of delay. According to the description of rosinit in the MATLAB support, it could initalize a local ros master by simply using rosinit without any address. But this doesn't works for me and here are the errors MATLAB showing me.

And a command window jump out showing this:

Does anyone have any idea what's going on? Or is there any prerequsite for running ROS using MATLAB besides python?
4 comentarios
Jagadeesh Konakalla
el 25 de Nov. de 2021
Hi,
Based on the snapshot that you shared looks like rosmaster is launced but failed to detect that rosmaster is running by MATLAB.
Yes, you are right. The rosinit requires Python.
Please provide me the following information to debug further.
- What version of MATLAB that you are using ?
- Provide me the output of the following commands after you run rosinit in MATLAB command window.
>> cmd = 'tasklist /FI "WINDOWTITLE eq rosmaster - rosmaster --core -p 11311 -w 3" /FO TABLE /NH';
>> [status, result] = system(cmd);
- Please run the following command to Generate basic diagnostic information in rossupport.txt . Please share the generated file with us.
>> ros.internal.generateSupportFile
Thanks and regards,
Jagadeesh K.
zihui lang
el 25 de Nov. de 2021
Jagadeesh Konakalla
el 26 de Nov. de 2021
Hi Zihui,
The tasklist program of windows is present in the folder C:\WINDOWS\system32. This path is missing from your windows PATH environement variable. Can you please add C:\WINDOWS\system32 to windows PATH enviornement variable and then restart the MATLAB. It should work.
Thanks,
Jagadeesh K.
zihui lang
el 27 de Nov. de 2021
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre ROS Network Connection and Exploration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!