How to support multiple robots with tf2
I've found this question asked multiple times, but haven't found an up to date answer that fully answers the question. ROS messages have namespaces and everything works out great for examples like running two turtle sims. But when using urdfs, transforms, and the robot_state_publisher, there are no namespaces and everything goes to the /tf topic. I'd like to have two overlapping renderings of a robot arm in rviz showing both a sim and a real version. And I'm sure many people would like to have multiple robots on the same roscore using the same urdf for many reasons. How is this best accomplished right now?
Other references: https://answers.ros.org/question/2201... https://github.com/ros2/robot_state_p...
For reference 2, I don't quite understand how that solution helps the situation, so if that is up to date can someone give an example?