In the launcher of the Static Broadcaster there is a mistyping error, instead of st_pub, it must be static_tf_pub
publish_static_transform_odom_to_world.launch.py
#! /usr/bin/env python3
from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
static_tf_pub = Node(
package='tf2_ros',
executable='static_transform_publisher',
name='static_transform_publisher_turtle_odom',
output='screen',
emulate_tty=True,
arguments=['0', '0', '0', '0', '0', '0', 'world', 'odom']
)
return LaunchDescription(
[
st_pub
]
)