- 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
18 次查看(过去 30 天)
显示 更早的评论
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 个评论
Jagadeesh Konakalla
2021-6-17
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
回答(1 个)
Jagadeesh Konakalla
2021-6-17
移动:Remo Pillat
2024-1-25
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Network Connection and Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!