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

Running rostests with bag data

asked 2014-09-18 13:41:52 -0500

Tom Moore gravatar image

I'm in the processing of standing up some regression tests, and my tests require that I can play back bag data against my node, and then monitor the output. rostest conveniently provides all the tools I need to complete this, but what's considered best practice for where the bag data should be stored? I can't have my tests failing on Jenkins because the bags are missing, but then I also don't want my repo to get unreasonably large, and I will have quite a few of these regression tests to run. Should I just run them offline?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-09-18 15:25:24 -0500

Dirk Thomas gravatar image

If the test data is small it is usually ok to put them into the repo beside the tests. In cases where the test data is bigger I would recommend to place them in a publically fetchable location.

E.g. the tests for rosbag itself are fetching several bag files for verifying that the behavior has no regressions. See

edit flag offensive delete link more


Great, thank you!

Tom Moore gravatar image Tom Moore  ( 2014-09-18 15:39:14 -0500 )edit

Question Tools

1 follower


Asked: 2014-09-18 13:41:52 -0500

Seen: 1,530 times

Last updated: Sep 18 '14