Gazebo | Ignition | Community
Ask Your Question

gazebo is not publishing odom tf

asked 2016-08-26 04:28:57 -0600

gleb gravatar image

Hi all,

I am trying to simulate a car-like robot with following frame tree: frame tree.png. But gazebo is not publishing the tf from odom to base-footprint and I get the following error in the terminal:

[ERROR] [1472202557.517496142, 40.405000000]: Unable to find odometry for model name /=-1

This is what my launch file looks like:

    <?xml version="1.0"?>

      <arg name="paused" default="false"/>
      <arg name="use_sim_time" default="true"/>
      <arg name="gui" default="false"/>
      <arg name="headless" default="false"/>
      <arg name="debug" default="false"/>

<param name="use_sim_time" value="true"/>

  <include file="$(find gazebo_ros)/launch/empty_world.launch">
    <arg name="world_name" value="$(find chassis_gazebo)/worlds/"/>
    <arg name="debug" value="$(arg debug)" />
    <arg name="gui" value="$(arg gui)" />
    <arg name="paused" value="$(arg paused)"/>
    <arg name="use_sim_time" value="$(arg use_sim_time)"/>
    <arg name="headless" value="$(arg headless)"/>

<param name="robot_description" command="$(find xacro)/ '$(find chassis_description)/urdf/chassis.urdf.xacro'" />

  <!-- push robot_description to factory and spawn robot in gazebo -->
  <node name="chassis_spawn" pkg="gazebo_ros" type="spawn_model" output="screen" 
    args="-urdf -param robot_description -x 28 -y 4 -z 0 -Y 1.57 -model chassis"/>

  <!-- Load joint controller configurations from YAML file to parameter server -->
  <rosparam file="$(find chassis_control)/config/chassis_control.yaml" command="load"/>

  <!-- load the controllers -->
  <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false"
output="screen" args="joint1_velocity_controller joint2_velocity_controller front_left_steering_position_controller front_right_steering_position_controller  joint_state_controller"/>

  <!-- convert joint states to TF transforms for rviz, etc -->
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"
    respawn="false" output="screen">


Does anyone have any advice?

Thank you in advance!

edit retag flag offensive close merge delete


Did you ever find a solution to that? I have the exact same problem. In the urdf I use the gazebo_ros_p3d plugin and odom is published but no tf frame.

flabrosse gravatar imageflabrosse ( 2017-10-24 04:30:56 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-08-01 20:27:10 -0600

tiagosilvadev gravatar image

At your tree doesn't have nothing about odometry.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-08-26 04:27:38 -0600

Seen: 4,324 times

Last updated: Aug 26 '16