ROS initiate in MATLAB

5 Ansichten (letzte 30 Tage)
zihui lang
zihui lang am 23 Nov. 2021
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 Kommentare
zihui lang
zihui lang am 27 Nov. 2021
Jagadeesh,
It works! Really appriciate your help!

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jagadeesh Konakalla
Jagadeesh Konakalla am 29 Nov. 2021
Good to know that your problem solved.
For others who run into similar issue, the solution is to add C:\WINDOWS\system32 to windows PATH enviornement variable and then restart the MATLAB.
  2 Kommentare
Jagadeesh Konakalla
Jagadeesh Konakalla am 2 Dez. 2021
Hi Zihui,
It is not very clear about the issue that you are facing with rosnode list.
As per the roshsutdown warning, i guess that rosmaster window is closed.
The rosinit command launches a Windows command window. Please do not close the window. You need to keep the window open. The rosshutdown command closes this window automatically.
Please provide more details on the issue that you are facing with rosnode list if you not accidentally closed the window.
Thanks,
Jagadeesh K.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by