Ask Your Question

different packages same topics

asked 2016-07-28 07:22:17 -0500

UsmanArif gravatar image

Hi every one, I am new to ROS and Masters student. We have two packages in the same work space. I want to use a subscriber node in Package1 to a subscribe to a topic published by a node in Package2. Actually we are doing work on DJI done. DJI has provided their SDK. We want to simulate our algorithms on Matlab and create a package for our algorithm using matlab coder. Then we want to combine matlab coder generated nodes with the nodes provided by DJI SDK. Is it possible.? We are considering matlab algorithm as Package1 and DJI SDK as Package 2. So matlab package node would subscribe to DJI SDK nodes to get data and process this data. So is it possible..?

edit retag flag offensive close merge delete


There is a matlab implementation of ROS so that should be fine. I don't know DJI, in the worst case you might have to write a wrapper for that. But maybe someone else knows.

Chrissi gravatar image Chrissi  ( 2016-07-28 11:20:10 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-28 12:17:07 -0500

UsmanArif gravatar image

updated 2016-07-28 13:24:15 -0500

Thanks for helping :). But my question is that, can i run two different packages at the same time in ROS.?? The Package1 has a subscriber node which is subscribing to a topic initiated by a publisher of Package2....? If yes What should i do perform communication between two packages at same time..?

edit flag offensive delete link more


Yes; you can publish a topic from a node in one package and subscribe to that topic from a node in a different package.

ahendrix gravatar image ahendrix  ( 2016-07-28 13:36:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2016-07-28 07:22:17 -0500

Seen: 191 times

Last updated: Jul 28 '16