Ask Your Question
2

Record tf_static with rosbag

asked 2014-06-29 17:58:53 -0500

Federico gravatar image

Hi all,

I'm trying to record all my topics into a bag, running rosbag record -a. However, rosbag doesn't record the /tf_static topic. How can I arrange this?

Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-06-29 19:13:32 -0500

ahendrix gravatar image

I think rosbag only records topics that are actually publishing messages. From what I can tell, /tf_static is only used by new tf2 publishers, and very few packages currently make use of it.

I would verify that there are messages published on /tf_static before worrying that they're not being recorded.

If you do have a node publishing messages to /tf_static and they're not being recorded, that's probably a bug in rosbag.

edit flag offensive delete link more
0

answered 2021-01-03 17:35:45 -0500

Vignesh_93 gravatar image

updated 2021-01-03 17:39:45 -0500

jayess gravatar image

You have to supply/ add a node robot_state_publisher which publishes the tf transformations at any instant of time

example :

<node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher">
<param name="publish_frequency" type="double" value="50.0" />
<param name="tf_prefix" value="$(arg multi_robot_name)"/>
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-06-29 17:58:53 -0500

Seen: 609 times

Last updated: Jan 03