ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Emulate missing messages from rosbag; publish only every 2nd/4th/8th message

asked 2015-09-03 02:07:40 -0600

Wolf gravatar image

I would like to check would stable some of my processing nodes work if there is data lost somehow. I would like to do so by feeding them only with every 2nd/4th/8th message of each topic of a rosbag. Is there anything ready to use for this?

If not there might be the following approaches for this:

  1. Use rosbag API to convert the bag and create a copied bag file that contains only every 2nd/4th/8th message.
  2. Set up a republisher node between the rosbag and the processing chain that only passes every 2nd/4th/8th message.
  3. Anything else you suggest;)

Which approach do you think is perferable?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2015-09-03 02:44:35 -0600

Procópio gravatar image

I am not sure this is what you are looking for, but I suggest using the throttle tool .

edit flag offensive delete link more

Comments

rosbag filter might also work.

dornhege gravatar image dornhege  ( 2015-09-03 04:24:01 -0600 )edit

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: 2015-09-03 02:07:40 -0600

Seen: 218 times

Last updated: Sep 03 '15