How to publish several topics for a single node?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
James Ang
am 21 Apr. 2015
Bearbeitet: Tohru Kikawada
am 2 Mai 2019
Hi all,
I'm able to create a publisher for a topic by typing
>> robot = rospublisher('/mobile_base/commands/velocity')
How do I create publishers for multiple topics?
e.g
>> robot = rospublisher({'/mobile_base/commands/velocity','/odom'}) % not working
Thanks.
0 Kommentare
Akzeptierte Antwort
Tohru Kikawada
am 2 Mai 2019
Bearbeitet: Tohru Kikawada
am 2 Mai 2019
You'll need to create two publshers corresponding to each topic. Regarding the single node, you can control nodes running on MATLAB using the following expression: https://mathworks.com/help/robotics/ref/robotics.publisher.html
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with ROS and ROS2 Connectivity Interface finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!