swri-robotics / bag-database

A server that catalogs bag files and provides a web-based UI for accessing them.
Other
345 stars 71 forks source link

Tagging a specific timespan #160

Open Magnusgaertner opened 2 years ago

Magnusgaertner commented 2 years ago

Hey,

would it be possible to adapt the tagging framework such that one can not only annotate a whole bag file as such but a specific timespan within the bag?

Best, Magnus

danthony06 commented 2 years ago

It might be possible. I think there could be some corner cases to think about, because the messages aren't necessarily written in the bag in strict time order, which could cause problems.

pjreed commented 2 years ago

Out of curiosity, what's the use case for this? How would you imagine it working and what would it be useful for?

Magnusgaertner commented 2 years ago

The use-case would be a relatively long bag, with certain short events that one needs to locate quickly.

I think my main takeaway is that this requested feature is indirectly already available through topics from which tags can be extracted. In this case, the time information is not visible through the detail view directly but is present when investigating the dataset through the annotation topic itself. Yet, say you have something interesting in a bag at time x, you might wish to annotate this time as metadata through the web interface to let others find the interesting part quickly.

As a no-code solution, one could (miss-)use the key-value tags to have the value of a tag hold the timestamp information.

Thank you for the great work :)