maplab icon indicating copy to clipboard operation
maplab copied to clipboard

Raw Image "Timestamps"

Open geoeo opened this issue 3 years ago • 1 comments

When saving a mission the raw images / depth images are now saved via their timestamp id, but some hashed valued. What does this hashed value represent/ can I link it back to the original timestamps?

geoeo avatar May 28 '21 07:05 geoeo

So I think there's an easier way to do what you want than using the resource system (which is primarily meant for internal use with plugins and to carry data, but not really for exporting it out). How I would do if I simply wanted an association between images and vertices in the map I would simply build a map (without attaching anything) and then in the console run csv_export. This should give you a csv file with the vertex poses and timestamps, which can then in a very simple post processing step be associated to the timestamps in the image headers using simply nearest neighbor association.

If you want to do something more complicated and want to actually write code yourself then I can direct you to this part of the code where you have functions for a vertex to get the associated resources https://github.com/ethz-asl/maplab/blob/33fcdb92bf16f974a92383ee0c1201883280812d/map-structure/vi-map/include/vi-map/vertex.h#L209-L230

smauq avatar Jun 07 '21 17:06 smauq