- What do you mean by full restart cycle ? Do you mean that you have restarted MATLAB ?
- After restart have you tried rosinit again ?
- Can you provide the exatc error message that you see in the MATLAB command window ?
- You said that you were trying to recreate the node. Are you using the ros.Node API ?
Matlab Error creating ROS Node
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to create a ROS node using Matlab on my windows machine on a ROS network initiated on a VM on the same PC.
Code I use:
rosinit("http://x.x.x.x:11311")
I'm using 2021a. The node was created successfully. However, now when I try to recreate the node(after a full restart cycle for unrelated reasons), I get the error message:
"Error creating the ROS node /matlab_global_node_xxxxx".
Incidentally this error does not pop up when I use older versions such as 2020a or even 20b.
4 Kommentare
Jagadeesh Konakalla
am 17 Jun. 2021
Hi Saharsh,
My understanding is that you were able to run rosinit successfully. When you run into some unrelated issues, you restarted MATLAB and VM. From then you are running into issues. Is that my understanding correct ?
Have you made any changes to your VM ?
To isolate the issue, let us do the following.
- Restart the MATLAB.
- Create a Master locally and create a node on the local machine. Please use the following code.
master = ros.Core;
node = ros.Node('/test_node_1');
If the above code works, things should be mostly good on MATLAB side.
Can you make sure that in your VM, you are able to create a node using sample C++ code (running sample listener example and make sure that node is running) .
Thanks,
Jagadeesh K
Antworten (1)
Jagadeesh Konakalla
am 17 Jun. 2021
Verschoben: Remo Pillat
am 25 Jan. 2024
Hi Saharsh,
I was not sure about Cannot find module error. Are you seeing this error on the MATLAB Command window ?
It is not clear for me when you say connection lost error. Can you please elaborate ?
We have couple of backend changes from 20a release to 20b release. You mentioned that it is working on 20b, then it should work on 21 also.
I suggest you to reachout to us through the MathWorks Technical Supoort for further debugging the issue.
Thanks,
Jagadeesh K
0 Kommentare
Siehe auch
Kategorien
Mehr zu Network Connection and Exploration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!