Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue to change RMW implementation #100

Open
manfer33 opened this issue Mar 19, 2024 · 5 comments
Open

Issue to change RMW implementation #100

manfer33 opened this issue Mar 19, 2024 · 5 comments

Comments

@manfer33
Copy link

I have one computer with Windows11 Unity running R2ForUHumble standalone version and another computer with Ubuntu 22 and ROS2 Humble. Both on the same local network. Humble in Ubuntu with default setup.

The computer with Windows11 works fine but the computer with Ubuntu can not see the topics from the Windows computer. I read in another posts similar issues related with FASTDDS so I tried to change it for Cyclone, but it doesn't work.

I am using the command that I saw from other posts, but no one says were to place it:
Environment.SetEnvironmentVariable("RMW_IMPLEMENTATION", "rmw_cyclonedds_cpp");

I tried to check another standalone distro but 1.3.0 is only for humble in Windows and previous versions are for Windows 10

@Shunichi09
Copy link

I would like to change the RMW implementation, too.
Has anyone solve this problem??

@adamdbrw
Copy link
Member

Setting Widnows environmental variable RMW_IMPLEMENTATION should work. See https://docs.ros.org/en/rolling/Tutorials/Beginner-CLI-Tools/Configuring-ROS2-Environment.html.

@Shunichi09
Copy link

Thank you for your response!
Ok, I'll try that!

@sdyby2006
Copy link

Thank you for your response! Ok, I'll try that!

Hello, can it be successfully modified? By changing environmental variables and executing Environment.SetEnvironmentVariable("RMW_IMPLEMENTATION", "rmw_cyclonedds_cpp"); it still doesn't take effect. Upon startup, it still shows ROS2 version: humble. Build type: standalone. RMW: rmw_fastrtps_cpp. Thank you for your help.

@adamdbrw
Copy link
Member

adamdbrw commented May 16, 2024

The API you use is too late on linux since the process is already running and has a copy of env, you can look at how ros2 does the check in rclcpputils IIRC. In short, this way of setting environment variable is not effective to modify RMW_IMPLEMENTATION for ROS. Instead, set it in your bash/profile/system before running R2FU app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants