- Please ensure that both uses same Domain ID. You can ceck the Domain ID of Turtlebot 3 terminal and use the same in the MATLAB.
- I advice that both use the same RMW middlwware. You can check the environemnet variable RMW_IMPLEMENTATION.
- Sometimes it is observed that different distributions of ROS 2 may not communicate. Which version of MATLAB that you are using ? Which version of ROS 2 distribution that you are using on Turtlebot3 ?
I cannot connect matlab with ros2 toolbox
4 次查看(过去 30 天)
显示 更早的评论
when I use the "ros2node" function create a ros node and enter "ros2 topic list" in command line, just one topic "parameter_events" be found , but I find topics normally in my turtlebot3's terminal , and my notebook and turtlebot3 connects to the same internet.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1317290/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1317290/image.png)
1 个评论
Jagadeesh Konakalla
2023-3-13
Hi,
For the communication between MATLAB and ROS 2 network (in this case Turtlebot 3) , please make sure that following are set correctly.
Let me know if this solves your issue.
Thanks,
Jagadeesh K.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!