ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

[ROS2_Matlab]RTPS_TRANSPORT_SHM Error

asked 2022-05-15 11:38:37 -0500

Robobo gravatar image

updated 2022-05-15 11:40:31 -0500

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 line 'ros2 node list' to check my nodes It gives me an error.

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_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 was expect that command 'ros2 node list' will show me an iternalROS node and the 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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-05-16 21:32:49 -0500

Robobo gravatar image

I had received a message from staff of Matlab. This issue is observed when trying to communicate MATLAB R2022a ROS Toolbox with other version of FastDDS in ROS2 Foxy terminal.

So, the first step is

ros2 daemon stop

the next,

export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp

finally

ros2 node list

If you encounter an below error,

RMW implementation not installed

You need to install rmw_cyclonedds_cpp.

sudo apt-get update
sudo apt-get install -y ros-<your_ROS_version>-rmw-cyclonedds-cpp

Thank you : >

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-05-15 11:38:37 -0500

Seen: 228 times

Last updated: May 16 '22