Skip to content

frame_prefix not being applied in humble #227

@agillies8

Description

@agillies8

Ros2 Humble
In a docker container that pulls from:

ARG ROS_DISTRO=humble
FROM osrf/ros:${ROS_DISTRO}-desktop AS base
ENV ROS_DISTRO=${ROS_DISTRO}

Im attempting to add a prefix to the tf names like so, since I have multiple robots Im trying to get all on the same /tf message since they interact. Im doing it in the launch file as so:

        Node(
            package='robot_state_publisher',
            executable='robot_state_publisher',
            name='robot_state_publisher',
            output='screen',
            namespace='kicker_01',
            parameters=[{
                'use_sim_time': use_sim_time,
                'robot_description': robot_desc,
                'frame_prefix': "World_Kickers_side_kicker_01_",
                'publish_frequency': 10.0,}],
            ),

However when I bring up rviz, the robot model is still using the native tf frame names - its like the frame_prefix param is not being applied. Any thoughts on how to troubleshoot?

(also as an additional note - Im pretty sure the robot model display type in rviz2 is out of date, since it still shows the old 'tf_prefix' param from ros1, and you you add in a prefix there, it adds a "/" to your prefix name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions