tf2 patterns for high update rates
I'm looking for a good pattern for using tf2
to provide two things:
- A set of static transforms for the robot that define things like the wheel positions and sensor locations. These are fixed but they need to be used in a variety of nodes. The transforms come from URDF mainly but there may be some calculated from parameter input when a node starts or from a launch file.
- A high-update-rate transform from the world frame to the robot's frame, produced and used only in a small number of nodes.
The problem we have is that we want to be able to get the static transforms in a lot of nodes, but we don't want the overhead of distributing the high rate transform to every node, just the small number that need it. I hope someone has a nice solution within tf2
for this, but I'm happy to hear any other suggestions.