rerun-io / rerun

Visualize streams of multimodal data. Fast, easy to use, and simple to integrate. Built in Rust using egui.
https://rerun.io/
Apache License 2.0
6.24k stars 290 forks source link

Python API to get dataframes out of an RRD #6811

Open jleibs opened 2 months ago

jleibs commented 2 months ago

The user should be able to open an existing RRD.

Using the open RRD object, we should expose 4 new APIs:

The inputs to the APIs that take a list of columns likely either use ColumnDescriptors returned from the Schema API, or an EntityPath expression that can be indirectly evaluated to a list of columns.

When this is done we should have an easy piece of example code that opens and rrd and constructrs a dataframe that is fed into pandas or polars.

Observed API issues:

Querying for an image is weird:

pov = schema.column_for("world/cameras/image/rgb", rr.components.Blob)
teh-cmc commented 2 months ago

Sounds like part of this should be an alternative crate to re_query that implements uncached multi-component queries, performs the join/clamping and finally packs everything into a single final Chunk.

This Chunk can then be passed to the SDKs for further native integration with the host language.

nikolausWest commented 2 weeks ago

@teh-cmc: does this issue have enough specificity to implement these queries or do you need further details on the exact semantics of the queries?

jleibs commented 2 weeks ago