Hello,
I want to subscribe to 2 topics in one node and then do some kind of calculations and them publish a TF.
The subscribers that I saw in the tutorials only subscribe to a single topic, do calculations and them publish. How can I make them subscribe to more then one?
For example I need to subscribe to the /odom position of my robot and to the /camera. Different topics, them I want to compute the trajectories but for that I need info from odom and camera.
I also don't understand how I store the information that I get from the callback function, can I use some global variable to store some info and them use that in the other callback function? How do you return info from a callback function?
thx so much.
Originally posted by End-Effector on ROS Answers with karma: 162 on 2015-03-23
Post score: 0