ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
My cursory solution uses mongodb and rospy_message_converter, seems easy so far but I haven't actually gotten to the stage of loading gigabytes of data and experiencing how well it performs:
from pymongo import MongoClient
from rospy_message_converter import message_converter
# connect to mongodb, get/create a collection
...
# get messages out of bag
...
msg_dict = message_converter.convert_ros_message_to_dictionary(msg)
collection.insert(msg_dict)
I haven't used mongodb_store at all, if I run into problems I'll investigate if they are already solved there.
There will be some nuances with inserting images in a way that other tools can view, converting the stamps to a datetime (which should make time filtering easy), storing topic names in a useful way. Messages larger than 16MB require gridfs.