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 件のコメント

Todd
Todd 2026 年 4 月 12 日 19:35
移動済み: Jagadeesh Konakalla 2026 年 4 月 13 日 8:29
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.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCustom Message Support についてさらに検索

製品

リリース

R2025b

質問済み:

2026 年 4 月 12 日 19:16

移動済み:

2026 年 4 月 13 日 8:29

Community Treasure Hunt

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

Start Hunting!

Translated by