Skip to main content

Interactive Rerun viewer for DimOS with click-to-navigate support

Project description

Advanced example showing how to control an external application from the Rerun viewer, by extending the viewer UI.

Custom Viewer Callback example screenshot

[!NOTE] #2337: In order to spawn a web viewer with these customizations applied, you have to build the web viewer of the version yourself. This is currently not supported outside of the Rerun repository.

Overview

This example is divided into two parts:

In the app, an additional gRPC server is opened to allow the viewer to send messages to the app. Similar to the extend_viewer_ui example, the viewer is wrapped in an eframe app, which allows us to handle the extra communication logic and define our own control UI using egui.

The communication between the viewer and the app is implemented in the comms module. It defines a simple protocol to send messages between the viewer and the app using bincode. The protocol supports basic commands that the viewer can send to the app, such as logging a Boxes3D or Point3D to an entity, or changing the radius of a set of points that is being logged.

Usage

First start the Rerun SDK app with cargo run -p custom_callback --bin custom_callback_app, and then start the extended viewer with cargo run -p custom_callback --bin custom_callback_viewer.

Relationship with Viewer callbacks

The [re_viewer] crate also exposes some baseline Viewer events through the StartupOptions.on_event field, which can exist alongside your own events from widgets added by extending the UI.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

dimos_viewer_jeff-0.30.0a6-cp312-cp312-manylinux_2_28_x86_64.whl (41.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

dimos_viewer_jeff-0.30.0a6-cp312-cp312-manylinux_2_28_aarch64.whl (39.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

dimos_viewer_jeff-0.30.0a6-cp312-cp312-macosx_11_0_arm64.whl (35.4 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

dimos_viewer_jeff-0.30.0a6-cp311-cp311-manylinux_2_28_x86_64.whl (41.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

dimos_viewer_jeff-0.30.0a6-cp311-cp311-manylinux_2_28_aarch64.whl (39.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

dimos_viewer_jeff-0.30.0a6-cp311-cp311-macosx_11_0_arm64.whl (35.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

dimos_viewer_jeff-0.30.0a6-cp310-cp310-manylinux_2_28_x86_64.whl (41.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

dimos_viewer_jeff-0.30.0a6-cp310-cp310-manylinux_2_28_aarch64.whl (39.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ ARM64

dimos_viewer_jeff-0.30.0a6-cp310-cp310-macosx_11_0_arm64.whl (35.4 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file dimos_viewer_jeff-0.30.0a6-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dimos_viewer_jeff-0.30.0a6-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bea0082e0e91ce6ec72e3708931e77eabd2eb06f7a5f2e12d167d69532f3d5e4
MD5 8a8a96c848f6ef80e4319311536bd77c
BLAKE2b-256 787340e5b8b5273415a627e8b87a3e38ab7d02536d0f86177f72097c77c86123

See more details on using hashes here.

File details

Details for the file dimos_viewer_jeff-0.30.0a6-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for dimos_viewer_jeff-0.30.0a6-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8c416c78bcc547dee0f54d8c716ac25f7845e837e5476304372a61e72a17338a
MD5 ed718a48ef9381bac43ae2d4bdaf142f
BLAKE2b-256 39eabf9120f4805389f0271268249e89e9481aa3b24f89ff76a97a5282ab4b5d

See more details on using hashes here.

File details

Details for the file dimos_viewer_jeff-0.30.0a6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dimos_viewer_jeff-0.30.0a6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f3353455b1f6837959ff0aaf2f174cfd693c29002c3308db168577ea179ca963
MD5 06eda7b7aa71918624bd599249dbd033
BLAKE2b-256 20512bacf0908ecad659aec097e3496e96a47f1946ff9776bfed43ed27192e08

See more details on using hashes here.

File details

Details for the file dimos_viewer_jeff-0.30.0a6-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dimos_viewer_jeff-0.30.0a6-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 55e2bfba382b60c629086747fe7576c61b65af1b2619e0684690938a885bfcbc
MD5 affbb128a103faf2c2d61fea1b44f03b
BLAKE2b-256 398144ebeb30799ce25edb8af9a592c9a51a5fcc8781399cc501797478e41552

See more details on using hashes here.

File details

Details for the file dimos_viewer_jeff-0.30.0a6-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for dimos_viewer_jeff-0.30.0a6-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fef9a96b1e9fbec3c2c0d3d93c759390653320787c528d759b6fdbfd4dd5fa8a
MD5 829f9d24e5aa2705a31091b05a5e6dd1
BLAKE2b-256 abd5a69defe574abfdcc3d0a08f3f2eae9976f25c4ddff19a0c4cc0073b968bb

See more details on using hashes here.

File details

Details for the file dimos_viewer_jeff-0.30.0a6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dimos_viewer_jeff-0.30.0a6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63ffba6b26ca3c354b993fcf8515659963a38b8e70bd74feb0409de6a4c7fc9c
MD5 26c3de4cdf9474d8c58519ee6f79e2c0
BLAKE2b-256 81a933adeac19824dba5eb5a957779da7cfb4c510eab686747f7582fe8e62b21

See more details on using hashes here.

File details

Details for the file dimos_viewer_jeff-0.30.0a6-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for dimos_viewer_jeff-0.30.0a6-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5caf31610773a50b60480e0d9dcee8cb5995559922a94898fcd703881616a717
MD5 3d0237b02194284d08dce51a6802ec01
BLAKE2b-256 1b5b0c4bb9d4486edccb4723a1efda4f68b032075432c7c1be6df1e0b88dacc9

See more details on using hashes here.

File details

Details for the file dimos_viewer_jeff-0.30.0a6-cp310-cp310-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for dimos_viewer_jeff-0.30.0a6-cp310-cp310-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4baa716c2e42d867d2bb78089a5c1fee9b13ea534988c587b154141a2fc48ee1
MD5 6e734cfa77c8e63404aefcd19cb45a84
BLAKE2b-256 6d9de54da16ee4e690a47ede16a438b985c8726d79704ebbc7e10375d73a936e

See more details on using hashes here.

File details

Details for the file dimos_viewer_jeff-0.30.0a6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dimos_viewer_jeff-0.30.0a6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30030ee2e99f6b619fc68e137e7fb7f4f89566e5a8ff53e56f099bca10149029
MD5 3c24a2cde3cc84cee469b56c469fb398
BLAKE2b-256 f10ce5a6e4ee544d8d99487e9a72af8a9afea517d1e58c8610f3566146105a11

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