RMW Implementation questions in MATLAB R2022a

7 views (last 30 days)
Hello, I'm using the r2022a version now, and want to connect matlab and simulink with ros2.
I have already set the rmw_implementation to the same rmw_fastrtps_cpp in both matlab and ros environment, as is shown in picture.
But the matlab cannot receive any topic, when I use ros2 topic list im the matlab, and also the simulink blocks cannot receive any topic.
Do you know why I have this trouble?
This is the topics in the terminal
And this is the topics in the matlab

Answers (1)

Cam Salzberger
Cam Salzberger on 21 Mar 2022
Edited: Cam Salzberger on 21 Mar 2022
Hello Xiaochen,
Here is a similar question I answered with relevant information, and links to other similar questions with additional troubleshooting steps. Please try those steps out and see what works for you.
If you have tried these steps and are still not able to get communication, please detail what you have tried, what works (if anything) and what specific situation does not work.
-Cam

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!