Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

TF transform unknown_publisher

I want to connect base_link to two different nodes like below. image description

It works when I open a separate window and enter rosrun tf static_transform_publisher 0.0 0.0 0.0 0.0 0.0 0.0 base_link camera_link 50

rosrun tf static_transform_publisher 0.0 0.0 0.0 0.0 0.0 0.0 base_link body 100

However, if I write these two tf command in launch file

<node pkg="tf" type="static_transform_publisher" name="to_camera_link" args="0 0 0 0 0 0 0 base_link camera_link 50"/>

<node pkg="tf" type="static_transform_publisher" name="to_body" args="0 0 0 0 0 0 0 base_link body 100"/>

The error pops up "[ERROR] [1593105389.989908901]: Ignoring transform for child_frame_id "body" from authority "unknown_publisher" because of an invalid quaternion in the transform (nan nan nan nan)" which means base_link does not exist in this case. How can I fix that

TF transform unknown_publisher

I want to connect base_link to two different nodes like below. image description

It works when I open a separate in bash or command window and enter by entering rosrun tf static_transform_publisher 0.0 0.0 0.0 0.0 0.0 0.0 base_link camera_link 50

rosrun tf static_transform_publisher 0.0 0.0 0.0 0.0 0.0 0.0 base_link body 100

However, if I write these two tf command in launch file

<node pkg="tf" type="static_transform_publisher" name="to_camera_link" args="0 0 0 0 0 0 0 base_link camera_link 50"/>

<node pkg="tf" type="static_transform_publisher" name="to_body" args="0 0 0 0 0 0 0 base_link body 100"/>

The error pops up "[ERROR] [1593105389.989908901]: Ignoring transform for child_frame_id "body" from authority "unknown_publisher" because of an invalid quaternion in the transform (nan nan nan nan)" which means base_link does not exist in this case. How can I fix that