Ask Your Question
0

Appropriate way to store data

asked 2013-09-16 20:19:41 -0500

CaptainTrunky gravatar image

updated 2013-09-16 21:05:02 -0500

Hello.

I should to store a lot of different data and history of measurements in some storage (data from MS Kinect, ultrasonic sensor, odometry and, for example, data from infrared sensor. Sensors may be used in very different ways, not only for navigation). I wonder, is there some convenient and native way to do this in ROS? May be somebody can share commentaries about http://wiki.ros.org/mongodb ? Or I should to use common DB like MariaDB?

Thanks in advance.

edit retag flag offensive close merge delete

Comments

What kind of measurement history do you want to keep? Doesn't `rosbag` suit your needs?

Boris gravatar imageBoris ( 2013-09-16 23:07:44 -0500 )edit

For example, we have some kind of a surveillance system. Several cameras that see a same scene from different points of view. By the end of a day, I would like to receive specific data from all sensors in such distributed system. I can use a timestamp as a key to filter data (in general, I may use as key anything, like "give me all objects with color = {}" ). I'm not sure that rosbag is appropriate way to organize this workflow. Or is it good way to store such data? May be I can write simple wrapper over rosbag that gives me DB-like interface?

CaptainTrunky gravatar imageCaptainTrunky ( 2013-09-16 23:26:58 -0500 )edit

Thank you for interesting and useful answers.

CaptainTrunky gravatar imageCaptainTrunky ( 2013-09-17 00:17:11 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-09-17 00:09:49 -0500

Something like this is possible with rosbag API in Python/C++. However rosbag is designed to store and retrieve data sequentially, thus you will have to iterate over the whole bunch of messages to find appropriate ones. So of it is not an everyday task, then rosbag should be sufficient. Otherwise it may be better to use a 'proper' DB indeed.

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: 2013-09-16 20:19:41 -0500

Seen: 669 times

Last updated: Sep 16 '13