ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Updated :Robot-state-publisher causing error in tf..with eg. code

asked 2013-09-13 01:47:24 -0600

rnunziata gravatar image

updated 2013-09-27 07:09:20 -0600

Update: I am getting ready to open a ticket on the robot state publisher if no one can point out a specific problem with the urdf file. So please if anyone has any ideas please let me before I do this.

Update: simplified urdf that exhibits problem

The following launch file and simple urdf of a box with wheels when run produces tf errors generated by the robot state publisher. If this is a problem in the urdf can someone please point it out. I reduced this to as simple a problem eg as I can. Hopefully someone can see the issue here.

The error:[ERROR] [1379637817.041486892]: TF_NAN_INPUT: Ignoring transform for child_frame_id "left_wheel" from authority "/robot_state_publisher" because of a nan value in the transform (-nan -nan -nan) (-nan -nan -nan -nan)
[ERROR] [1379637817.041663265]: TF_NAN_INPUT: Ignoring transform for child_frame_id "right_wheel" from authority "/robot_state_publisher" because of a nan value in the transform (-nan -nan -nan) (-nan -nan -nan -nan)

 <param name="robot_description" textfile="$(find rrbot_description)/urdf_error/rrbot.urdf" />

  <!-- Show in Rviz   -->
  <node name="rqt_gui" pkg="rqt_gui" type="rqt_gui"/>

  <node pkg="joint_state_publisher" type="joint_state_publisher" 
        name="joint_state_publisher" output="screen">
        <param name="use_gui" value="True"/>

  <node pkg="robot_state_publisher" type="robot_state_publisher" 
        name="robot_state_publisher" output="screen">


<?xml version="1.0"?>
<robot name="rrbot">

   <link name='base_link'>
      <collision name='collision'>
        <origin xyz="0 0 .1" rpy="0 0 0"/>
          <box  size=".4 .2 .1"/>
      <visual name='visual'>
        <origin xyz="0 0 .1 " rpy="0 0 0"/>
          <box  size=".4 .2 .1"/>

  <link name="left_wheel">
    <collision name="collision">
      <origin xyz="0.05 0.15 0.1" rpy="0 1.5707 1.5707"/>
         <cylinder  length="0.05" radius="0.1"/>
    <visual name="visual">
      <origin xyz="0.05 0.15 0.1" rpy="0 1.5707 1.5707"/>
        <cylinder  length="0.05" radius="0.1"/>

  <joint type="revolute" name="joint1">
    <origin xyz="0.05 0.08 0.05" rpy="1.5707 1.5707 0"/>
    <child link="left_wheel"/>
    <parent link="base_link"/>
         <xyz>0 1 0</xyz>
     <limit upper="0" lower="-1.57" velocity="10" effort="10"/>

edit retag flag offensive close merge delete


Have you checked to output of the publisher? Maybe switch it to debug.

dornhege gravatar image dornhege  ( 2013-09-13 06:03:13 -0600 )edit

I will down load and compile source and put set(ROS_BUILD_TYPE Debug) in CMakefile...I think this is all I need to long as my catkin paths are frist in env.

rnunziata gravatar image rnunziata  ( 2013-09-13 07:09:33 -0600 )edit

I meant the ROS logger debug. You can set that with rxloggerlevel for each running node. Also you should look at the robot_state_publisher outputs or logfiles, not the master log -- this still doesn't guarantee you'll get usefull results. Someone must have implemented that.

dornhege gravatar image dornhege  ( 2013-09-14 02:30:07 -0600 )edit

All he data I've posted comes form the that is it. There is nothing in the rxlogger that is not also in the log files , no? If there is no other way of getting additional data then with out turning on new debug features then what you see is what I got.

rnunziata gravatar image rnunziata  ( 2013-09-14 03:32:01 -0600 )edit

This output looks to me like the output from the rosmaster. You'd be interested in the output of robot_state_publisher as that's causing your problems.

dornhege gravatar image dornhege  ( 2013-09-14 03:54:55 -0600 )edit

Can you try, if the errors in your example still appear when you use revolute instead of continuous joints?

dornhege gravatar image dornhege  ( 2013-09-20 06:14:44 -0600 )edit

Yes...same error

rnunziata gravatar image rnunziata  ( 2013-09-20 06:40:11 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-28 08:34:11 -0600

rnunziata gravatar image

I opened a ticket on this issue

edit flag offensive delete link more


For those interested, the ticket is here: .

bchr gravatar image bchr  ( 2013-12-11 01:21:58 -0600 )edit

Question Tools

1 follower


Asked: 2013-09-13 01:47:24 -0600

Seen: 1,561 times

Last updated: Sep 28 '13