フィルターのクリア

How to publish several topics for a single node?

5 ビュー (過去 30 日間)
James Ang
James Ang 2015 年 4 月 21 日
編集済み: Tohru Kikawada 2019 年 5 月 2 日
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.

採用された回答

Tohru Kikawada
Tohru Kikawada 2019 年 5 月 2 日
編集済み: Tohru Kikawada 2019 年 5 月 2 日
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 件)

カテゴリ

Help Center および File ExchangeSpecialized Messages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by