How do i subscribe to multiple ros topics using wildcards approach
I am currently trying to subscribe to topics of the form /myTopic/1
, /myTopic/2
, /myTopic/3
, .... , etc.
And I would like to have one single callback that gets hit when any of the mentioned topics is received by the subscriber
Any help/hints would be much appreciated thanks in advance
Additional info: I am currently implementing this using ROS1 Noetic distribution All the code is written in cpp and python is not being used as of now
Asked by anirudh_s_b on 2023-03-31 14:11:44 UTC
Comments