Ask Your Question
5

How to change rosbag record rate - how to undersample messages

asked 2015-07-21 13:01:14 -0500

Hi,

I am running a complex system on ROS using an Asctec Pelican multirotor helicopter. I have node runing on the Asctec Atom Board and on ground station computers. The system transfert data over wifi. I have a multitude of message that I will want to record using rosbag.

Many messages such as /pose and /imu are at 250hz for control purpose. Using rosbag to record this data is kind of CPU heavy. Since I am not required to record the data at the computed rate (250hz) for display my results, is there a way to tell rosbag to record the data at a lower rate; is there a way to undersample the data ?

Best regards,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2015-07-21 13:38:51 -0500

dornhege gravatar image

I'm not aware that rosbag can do this, but there is the throttle tools in topic_tools that throttles a topic to another one. You can record that and remap it later.

edit flag offensive delete link more

Comments

Thats what I think also. I think that it should be a good tool to have. I supose this is not possible since if you broadcast back the bag in the system, it would not have the right rate.

ETS-Dronolab gravatar imageETS-Dronolab ( 2015-07-21 14:27:03 -0500 )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

3 followers

Stats

Asked: 2015-07-21 13:01:14 -0500

Seen: 1,185 times

Last updated: Jul 21 '15