Robotics StackExchange | Archived questions

Invalid frame ID "map" passed to canTransform argument target_frame - frame does not exist

I am following this tutorial on navigation to perform localization. I copied the exact same code that was provided in the reference but I am getting errors in RViz and terminal.

  1. Warning: Invalid frame ID "map" passed to canTransform argument targetframe - frame does not exist at line 93 in ./src/buffercore.cpp
  2. Global Status: Error - Fixed Frame [map] does not exist.
  3. Map Status: Warning - No map received
  4. RobotModel Status:Error - No transform from [link_name] to [map]

I am also not able to visualize the robot and map as shown in RViz in the tutorial. I tried searching a lot on this issue but was not able to find a resolution. Appreciate your help.

Asked by Noob8899 on 2023-07-25 19:03:17 UTC

Comments

Answers

I got to know that adding a static transform publisher solves the problem.

<launch>
static_transform_publisher_node = Node(
    package='tf2_ros',
    executable='static_transform_publisher',
    name='link1_broadcaster',
    arguments=['0', '0', '0', '0', '0', '0', '1', 'map', 'odom'],
    output='screen',
</launch>

 ld.add_action(static_transform_publisher_node)  # Add the static transform publisher node

Asked by Noob8899 on 2023-07-25 19:45:30 UTC

Comments