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 Comment

Todd
Todd about 13 hours ago
Moved: Jagadeesh Konakalla less than a minute ago
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.

Sign in to comment.

Answers (0)

Categories

Products

Release

R2025b

Asked:

on 12 Apr 2026 at 19:16

Moved:

about 14 hours ago

Community Treasure Hunt

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

Start Hunting!