RTPS_TRANSPORT_SHM Error

36 ビュー (過去 30 日間)
Hyounjun Oh
Hyounjun Oh 2022 年 5 月 15 日
回答済み: Benny 2023 年 3 月 23 日
Hi there
I'm using ROStoolbox and ROS2 foxy, Ubuntu20.04LTS, Matlab 2022a.
I want to see my internal node and Matlab node in the Terminal.
So I have set the same ROS_DOMAIN_ID and RMWImplements for both nodes.
But when I type the command 'ros2 node list' to check my nodes It gives me an error.
2022-05-16 01:01:53.008 [RTPS_TRANSPORT_SHM Error] Failed init_port fastrtps_port8162: open_and_lock_file failed -> Function open_port_internal
2022-05-16 01:01:53.009 [RTPS_TRANSPORT_SHM Error] Failed init_port fastrtps_port8164: open_and_lock_file failed -> Function open_port_internal
2022-05-16 01:01:53.009 [RTPS_TRANSPORT_SHM Error] Failed init_port fastrtps_port8163: open_and_lock_file failed -> Function open_port_internal
2022-05-16 01:01:53.009 [RTPS_TRANSPORT_SHM Error] Failed init_port fastrtps_port8165: open_and_lock_file failed -> Function open_port_internal
I expect that command 'ros2 node list' will show me the iternalROS node and Matlab node.
How can i solve this problem?
Thank you for reading my error log and If there are someone who know about this, It will be helpful to me.
  2 件のコメント
Karthik Reddy Vennapureddy
Karthik Reddy Vennapureddy 2022 年 5 月 16 日
Hello,
This issue is observed when trying to communicate MATLAB R2022a ROS Toolbox (uses Fast-DDS 2.1.1) with other version of FastDDS in ROS 2 Foxy terminal. This is an open issue in FastDDS.
As a workaround to see the ros2 node list, please run the below commands in ROS 2 Foxy terminal:
  1. ros2 daemon stop.
  2. export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp.
  3. ros2 node list
Try step 3 to see the list of nodes running in both MATLAB and Foxy terminal.(execute the step 1-2 times incase you don't see nodes for the first time).
Thanks,
Karthik Reddy
Hyounjun Oh
Hyounjun Oh 2022 年 5 月 17 日
Thank you so much! It solved my problem : >

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

採用された回答

Jagadeesh Konakalla
Jagadeesh Konakalla 2022 年 8 月 2 日
This issue is observed when trying to communicate MATLAB R2022a ROS Toolbox (uses Fast-DDS 2.1.1) with other version of FastDDS in ROS 2 Foxy terminal. This is an open issue in FastDDS.
As a workaround to see the ros2 node list, please run the below commands in ROS 2 Foxy terminal:
  1. ros2 daemon stop.
  2. export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp.
  3. ros2 node list
Try step 3 to see the list of nodes running in both MATLAB and Foxy terminal.(execute the step 1-2 times incase you don't see nodes for the first time).

その他の回答 (1 件)

Benny
Benny 2023 年 3 月 23 日
Thank you for helping me a lot, my problem is solved.

カテゴリ

Help Center および File ExchangeSpecialized Messages についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by