Ask Your Question

Revision history [back]

I would go with having a subscriber constantly updating a variable through a callback. You may see that as wasteful, but that is basically how ROS works. When you need them, you can make a copy of the the updatable vars, so they won't change on the fly.