Back to Rerun

README

examples/python/eye_control/README.md

0.31.43.1 KB
Original Source
<!--[metadata] title = "Eye control" tags = ["Eye control", "3D", "Pinhole camera"] source = "https://github.com/rerun-io/eye_control_example" thumbnail = "https://static.rerun.io/eye_control_example/01288e2cd92ec68715258e281104701fc8908c37/480w.png" thumbnail_dimensions = [480, 306] --> <video width="100%" autoplay loop muted controls> <source src="https://static.rerun.io/d75d85d16b70cf6e7863367cd716c10e5725f852_eye_control_example_kth_rpl.mp4" type="video/mp4" /> </video> <video width="100%" autoplay loop muted controls> <source src="https://static.rerun.io/7ef9a59523051d45c25de02e6a844e7179e205d2_eye_control_example_ntu_viral.mp4" type="video/mp4" /> </video>

Used Rerun types

EyeControls3D, Transform3D, Points3D, Pinhole, EncodedImage, Image, LineStrips3D, Scalars, TextDocument

Background

This example demonstrates how to programmatically configure and control the 3D view camera using the Rerun Blueprint API. By defining camera states in Python, you can precisely tailor your workspace to highlight the most relevant aspects of your data.

In this example, we define several specialized perspectives:

  • Top-down overview: a global scene perspective for general spatial awareness.
  • Comparative close-up: A focused view designed to analyze trajectory deviations between different localization methods.
  • 3rd-person follow: dynamic camera that tracks the ego vehicle as it moves through the environment.

Finally, we demonstrate how to control the camera at runtime, enabling the creation of cinematic visualizations or automated data storytelling for presentations and datasets.

Useful resources

Below you will find a collection of useful Rerun resources for this example:

Run the code

This is an external example. Check the repository for more information.

To run this example, make sure you have the Pixi package manager installed.

KTH RPL (indoor handheld dataset)

sh
pixi run kth_rpl

You can type:

sh
pixi run kth_rpl -h

to see all available commands. For example, you can set the voxel size used for downsampling, where the dataset is located, and for how long to sleep in-between frames.

NTU VIRAL (drone dataset)

sh
pixi run ntu_viral