Configuring CycloneDDS for communication with ROS 2 in Docker Container

조회 수: 42 (최근 30일)
Ansgar
Ansgar 2024년 8월 20일
댓글: Daniel 2025년 1월 30일
Hello,
I'm using the Matlab ROS Toolbox in combination with ROS 2 running inside of WSL2+Docker. For different reasons I'm using CycloneDDS as the middleware.
The issue is, that I can neither discover Matlab topics from Docker nor Docker topics from Matlab.
I've tried to configure CycloneDDS similar to how FastDDS is configured here. However, I can't figure out how to tell Matlab which config file to use for CycloneDDS.
The issues pesists with the docker containers running both on net=host as well as net=bridge. Also the discovery seems to work with Maltab using FastDDS (which is not a feasible solution for me).
I appreciate any help on this topic!
ROS Distro: Iron
  댓글 수: 2
Abhishek
Abhishek 2024년 10월 3일
This could be an issue due to cross-distro communication. May I know what MATLAB version are you using?

댓글을 달려면 로그인하십시오.

답변 (2개)

Supraja
Supraja 2024년 9월 9일
Hello Ansgar,
I understand that you are using MATLAB ROS Toolbox with ROS 2 and using Cyclone DSS as an intermediate.
Please find the documentation links below which will guide you in using the ROS toolbox:
I hope this helps!

Ansgar
Ansgar 2024년 10월 7일
Short update: I managed to work around this issue by adding the WSL network interface to the Cyclone DDS configuration. When I posted this question I wasn't even sure how to accomplish this for Cyclone DDS.
Here's the answer: The Cyclone DDS configuration file can be set using the Windows environment variable CYCLONEDDS_URI.
The qestion why discovery fails without additional configuration remains open.

카테고리

Help CenterFile Exchange에서 Get Started with ROS Toolbox에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by