Robotics StackExchange | Archived questions

Is there a way to subscribe to Multiple Topics using wildcards

I am currently trying to implement a subscriber node which ahs to subscribe to topics of the form /my_topic/1 , /my_topic/2 , .... , etc. I am unable to use wildcards like /my_topic/* in the subscribe function

Can anyone please help me in getting a solution to this implementation I would need to call a single callback when any of the above mentioned ros topic is received by the subscriber

Any suggestion/hints would really help me

Thanks in advance

additional info :

I am currently working on ros1 noetic distribution

Asked by anirudh_s_b on 2023-03-31 14:05:55 UTC

Comments

Answers