I have assigned all topic nodes to a workspace and implemented TF remapping. Now, all nodes and topics have an extra "/0" appended to their names, which causes RViz to fail finding the default nodes and topics. How can I resolve this issue?
2 Answers
The display plugins shown in the left panel of rviz typically get their data from subscribing to a ros topic. Most of the plugins will have a config property which lets you choose the full topic name you want it to use.
Note that if you have renamed the topics /tf and /tf_static, that's going to cause you problems.
Some advice: the separate components of a node name or topic name should not start with a numeric character. Your use of numeric 0 is a bad idea, and doing this is very likely to create hard-to-debug ros failures.
If you don’t actually need the /0 namespace, remove it in your launch file:
<!-- Instead of --> <group ns="0"> ... </group> <!-- Use --> <group> ... </group> or explicitly set the namespace to root:
<group ns="/"> ... </group>