Using Robotics Toolbox in Simulink with Multiple Robots
1 view (last 30 days)
Show older comments
Hello,
I've recently implemented a control system for a Turtlebot using the Robotics System Toolbox inside Simulink to communicate with it. I now wish to start working with formation control, which demands that I communicate with multiple robots at a time, and even though it says that the Toolbox is able to communicate with multiple ROS Masters in the features page, I'm not quite clear on how to do it, since in the Simulink settings I can only set one IP address. Do I need to run multiple Simulink models in parallel and communicate between them or is there a way to configure multiple addresses for communication inside the same simulation?
Thanks in advance for your help.
0 Comments
Answers (1)
Sebastian Castro
on 27 Jul 2017
Actually, the multiple ROS master support only works for MATLAB workflows, and not Simulink...
In MATLAB, you can create multiple robotics.ros.Node objects that connect to different masters. Take a look at https://www.mathworks.com/help/robotics/ref/node-object.html, particularly the example in that page.
In Simulink, the best thing I can think of is (if you have Embedded Coder) generating C++ nodes from multiple models, which can then connect to different ROS masters.
- Sebastian
0 Comments
See Also
Categories
Find more on Robotics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!