MATLAB Answers

0

How to publish several topics for a single node?

Asked by James Ang on 21 Apr 2015
Latest activity Edited by Tohru Kikawada on 2 May 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 Comments

Sign in to comment.

1 Answer

回答者: 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 Comments

Sign in to comment.