Unable to create ROS2 node

I am trying to create a ROS2 node on Windows 11, MATLAB R2025b.
While either trying to create a node, or even testing with "ros2 node list", I receive an error:
>> node = ros2node("matlab_node");
Error creating the ROS 2 node matlab_node.
Error in
createNode(obj, parser.Results.name, parser.Results.id);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Caused by:
Error using
Server failed to start. Details: Transport stopped.
This was working hours ago...
reinstalling ROS toolbox and even MATLAB did not change outcome.
Thanks!

1 Kommentar

Todd
Todd vor etwa 13 Stunden
Verschoben: Jagadeesh Konakalla vor 5 Minuten
I found a soludtion. "This error is shown when some shared memory files have not been correctly freed if the Fast DDS application has crashed or has not been closed cleanly. Fast DDS CLI provides an option to clean zombie files: fastdds shm clean. The issue is that if the file is still blocked because Fast DDS was closed unexpectedly then this tool cannot remove the file. Then, the only option is to remove these files manually. The shared memory files are saved in the following folders and are named with fastrtps included in their filenames:"
The solution involved deleting the shared memory files as described in the link.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Produkte

Version

R2025b

Gefragt:

am 12 Apr. 2026 um 19:16

Verschoben:

vor etwa 16 Stunden

Community Treasure Hunt

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

Start Hunting!

Translated by