Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

tf_prefix and tf2_web_republisher (URDF visualization in browser)

Hello everybody !

I have manage to display my custom urdf file in my browser by using this tutorial.

However, when I run what I've done alongside my actual robot (or simulation), the visualization does not display properly (several parts of the robot are displayed at the same point). I am guessing the problems comes from an interference between the tf tree of my robot and the tf tree of my visualization. (These two trees have some links in common but are different).

I tried adding a "tf_prefix" parameter to my robot_state_publisher by doing this

<node name="robot_state_publisher_web" pkg="robot_state_publisher" type="state_publisher">
         <rosparam param="tf_prefix">"visualisation"</rosparam>
  </node>

But when I launch everything I get the following error :

[ERROR] [1468848677.857789028]: "Link1" passed to lookupTransform argument source_frame does not exist.

Where Link1 is a link listed in my URDF file.

Am I using the tf_prefix wrong? Did I not configure something? Should I load my URDF file in a special way ? I also read that tf_prefix doesn't work with all the packages. Is this the case with tf2_web_republisher?