Ask Your Question

Revision history [back]

I have not seen that done before. You might be better served by looking at roslaunch args and ROS parameters that will let you specify values that you can use to setup your node at runtime or save them in member variables and use them later. However, if what you are asking is to subscribe to multiple topics and go to a single callback function when you have all of the desired topics then you can look at message filters, specifically the ExactTime and ApproximateTime policies.