How to Launch specific topic(s) from launch file?!

asked 2020-10-25 10:58:43 -0600

spirteno gravatar image

Hello, I have a launch file from which various topics are published, Is there anyway let me launch only specific topic from this launch file?!

edit retag flag offensive close merge delete


Topics are not launched, only nodes.

Please clarify what it is you actually want to do, and why, just so we can avoid an xy-problem.

gvdhoorn gravatar image gvdhoorn  ( 2020-10-26 15:24:57 -0600 )edit

The idea is I am dealing withRealSense camera and I have the following launch file link here from which a lot of topics are launched.

I want to pick only one of these topics and do a new launch file by which only this specific topic is launched

The issue in all that the RealSense camera which is connected to raspberry pi, and also there are other sensors and cameras connected to the same raspberry pi. After turning the whole system on the RealSense gives us data for 1 to 2 mins then stops giving data, and we are trying to solve the issue.


spirteno gravatar image spirteno  ( 2020-10-27 05:36:01 -0600 )edit

Again, topics are not "launched".

Only nodes get started.

You'll have to check whether the node you're starting can be configured to not advertise those topics.

But I'm not sure there is a causal relationship between "number of topics" and the problem you are seeing.

gvdhoorn gravatar image gvdhoorn  ( 2020-10-27 05:46:24 -0600 )edit

@gvdhoorn Actually, the started node can't be configured to not advertise those topics.

Concerning the problem, what I am trying to do now is to put debugging messages to check at which level of the code the issue is happening

spirteno gravatar image spirteno  ( 2020-10-27 13:25:03 -0600 )edit