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

[FATAL] Usage: rosrun message_to_tf message_to_tf <topic>

asked 2019-09-02 04:54:22 -0500

Pakras gravatar image

updated 2019-09-02 05:11:21 -0500

gvdhoorn gravatar image

Hi, i trying to move my robot in rviz,so when i put

<node name="odom_to_tf" pkg="message_to_tf" type="message_to_tf"> </node>

in my launch file i get this error, how to fix it ?

[FATAL] [1567417863.872305532]: Usage: rosrun message_to_tf message_to_tf <topic>
[odom_to_tf-1] process has died [pid 28782, exit code 1, cmd /home/pavel/catkin_ws/devel/lib/message_to_tf/message_to_tf __name:=odom_to_tf __log:=/home/pavel/.ros/log/5d04e93c-cd65-11e9-94ce-d46d6d87b7ca/odom_to_tf-1.log].
log file: /home/pavel/.ros/log/5d04e93c-cd65-11e9-94ce-d46d6d87b7ca/odom_to_tf-1*.log

rospack output:

$ rospack find message_to_tf
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-09-02 05:15:02 -0500

gvdhoorn gravatar image
[FATAL] [1567417863.872305532]: Usage: rosrun message_to_tf message_to_tf <topic>

As you can see from the error message printed, message_to_tf doesn't use ROS parameters for the topic, but expects a single argument on the command line.

The <topic> bit in the error message is something you have to provide.

In a .launch file, you can do that with the args attribute of the node element:

<node name="odom_to_tf" pkg="message_to_tf" type="message_to_tf" args="<topic>">

Be sure to replace <topic> with the actual name of the topic of course.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-09-02 04:54:22 -0500

Seen: 474 times

Last updated: Sep 02 '19