Skip to main content

Python bindings for schiebung with Rerun visualization

Project description

Schiebung Rerun - Python Bindings

Python bindings for schiebung's Rerun visualization adapter — every transform you push is bulk-logged to a Rerun recording stream so you can visualize the graph live.

Installation

pip install schiebung-rerun

Quick Start

import time
from schiebung_rerun import RerunBufferTree, StampedIsometry, TransformType

# application_id, recording_id, timeline name, publish_static_transforms.
# Spawns a Rerun viewer by default; pass spawn=False (optionally with
# connect_addr="rerun+http://host:port/proxy") to connect to one that is
# already running instead.
tree = RerunBufferTree("my_app", "recording_1", "stable_time", True)

# stamp accepts int (ns) or float (s).
transform = StampedIsometry([1.0, 0.0, 0.0], [0.0, 0.0, 0.0, 1.0], time.time())

# Updates go through tree.buffer; the underlying observer logs each batch to Rerun.
tree.buffer.update("world", "robot", transform, TransformType.Dynamic)
tree.buffer.update_batch([("world", "robot", transform, TransformType.Dynamic)])

StampedIsometry, BufferTree, TransformType, TfError and UrdfLoader are re-exported from the schiebung package — they are the same types, so values pass freely between the two packages (schiebung_rerun.StampedIsometry is schiebung.StampedIsometry).

Sharing an existing Rerun recording

Use from_recording when Schiebung transforms and regular Python Rerun logs must share the same sink. The supplied rerun.RecordingStream owns the sink and its lifecycle, so only one writer opens the output file:

import rerun as rr
import schiebung
from schiebung_rerun import RerunObserver

rec = rr.RecordingStream("my_app", recording_id="recording_1")
rec.set_sinks(rr.FileSink("recording.rrd"))

buffer = schiebung.BufferTree()
buffer.register_observer(
    RerunObserver.from_recording(rec, "stable_time", True)
)

with rec:  # finalizes the file sink on exit
    rec.log("points", rr.Points3D([[1.0, 2.0, 3.0]]))
    # buffer.update(...) logs transforms into the same recording and file.

RerunBufferTree.from_recording(rec, timeline, publish_static_transforms) is the equivalent convenience constructor. The existing constructors remain the all-Rust path and continue to support Schiebung's sinks=[...] descriptors.

Tuning the recording stream

RerunBufferTree / RerunObserver take an optional batcher_config — a rerun.ChunkBatcherConfig (including its DEFAULT / LOW_LATENCY / ALWAYS / NEVER presets) controlling the chunk-batcher flush thresholds:

import rerun as rr
tree = RerunBufferTree("my_app", "recording_1", "stable_time", True,
                       batcher_config=rr.ChunkBatcherConfig.LOW_LATENCY())

The RERUN_FLUSH_TICK_SECS / RERUN_FLUSH_NUM_BYTES / RERUN_FLUSH_NUM_ROWS / RERUN_CHUNK_MAX_ROWS_IF_UNSORTED environment variables still override it.

Documentation

Full documentation: https://maximaerz.github.io/schiebung/ · API reference: docs.rs/schiebung-rerun

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

schiebung_rerun-0.5.2.tar.gz (159.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

schiebung_rerun-0.5.2-cp312-abi3-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.12+Windows x86-64

schiebung_rerun-0.5.2-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.17+ x86-64

schiebung_rerun-0.5.2-cp312-abi3-macosx_11_0_arm64.whl (3.6 MB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file schiebung_rerun-0.5.2.tar.gz.

File metadata

  • Download URL: schiebung_rerun-0.5.2.tar.gz
  • Upload date:
  • Size: 159.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for schiebung_rerun-0.5.2.tar.gz
Algorithm Hash digest
SHA256 4f1e17f3cce435c74ded59e289b6339dba0ce940d9837515ab1801fb665dce0d
MD5 005a29b3a0e4bf2b16295ef316fa0df8
BLAKE2b-256 0c6f3d991af86d89a1f5ab5e0c3f7e9ca4b6db7b42c4cbbcb867a71e6edf3915

See more details on using hashes here.

File details

Details for the file schiebung_rerun-0.5.2-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: schiebung_rerun-0.5.2-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for schiebung_rerun-0.5.2-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8e2790a888bccdc7ddc1ce825187926b791c8e75c9767b1c97ccb90e20bb33af
MD5 60a5a8dd59c5fb9eba9b09b873852b52
BLAKE2b-256 20964c867ae66cf6440d579d35d89e476c91711a0844d0c488e4c455a01efcba

See more details on using hashes here.

File details

Details for the file schiebung_rerun-0.5.2-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: schiebung_rerun-0.5.2-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 4.7 MB
  • Tags: CPython 3.12+, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for schiebung_rerun-0.5.2-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df71c64050d03a419139a913918abc44bbc7dfa08f448927852fb09319613ef2
MD5 1f12e7b32b17f198b0454f9eeb30b9c5
BLAKE2b-256 5d9571b646f5f1c50c7bac8e08014c97f2611b348930b9b6de1c3d33cb8a5652

See more details on using hashes here.

File details

Details for the file schiebung_rerun-0.5.2-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: schiebung_rerun-0.5.2-cp312-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: CPython 3.12+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for schiebung_rerun-0.5.2-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7393049d3f8607950b39dab05797e4d6d10d1a1c2f04f4faccd4d87bb19737a
MD5 a846a1dd166e65f9f89dddd1354faa83
BLAKE2b-256 847430e642e9a0dc96338d5197df3c06b758aa9a90d1763e9785a9dfe39f681a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page