static_transform_publisher: tf vs tf2_ros
When adding a static_transform_publisher
to the launch file, we have two options:
Version1: Old style with tf
:
<node pkg="tf" type="static_transform_publisher" name="link1_broadcaster" args="1 0 0 0 0 0 1 link1_parent link1 100" />
Version2: New style with tf2_ros
:
<node pkg="tf2_ros" type="static_transform_publisher" name="link1_broadcaster" args="1 0 0 0 0 0 1 link1_parent link1" />
It is probably advisable to use the tf2_ros
version. Can someone explain, why we don't need to specify a frame rate for the new version? Are there any other benefits of the second version?