Skip to content

Reader singleton startframe #20

@nimski

Description

@nimski

The current protobuf readers for cam and imu allow you to specify a startframe parameter. However this actually refers to the starting protobuf message. For example, with a visual-inertial dataset, in order to start on the 100th image, you might have to specify [startframe=23000] to skip all the relevant IMU messages.

What's more, the startframe parameter gets overwritten with every new driver that uses the reader singleton. So for example -cam proto:[startframe=2000]://blahblah -imu proto:[startframe=200] would set the starting protobuf message to 200.

Finally, because the reader has to skip a ridiculous number of messages, the seek operation can be really slow.

We should solve this by either including an index header in the log file allowing you to instantly skip to a particular offset, or by having a separate index that we build using logtool. Or some other sorcery.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions