esc
Start typing to search the docs
Navigate Open
Examples

Feature showcase

State timeline

This example simulates a robot work cell and demonstrates every feature of the state timeline view.

Used Rerun types

StateChange, StateConfiguration, TextDocument

Logging and visualizing with Rerun

Discrete states are logged with the StateChange archetype. Each logged StateChange marks a transition into a new state, and the state timeline view displays these as horizontal colored lanes over time.

The example covers all features of the view:

Run the code

To run this example, make sure you have the Rerun repository checked out and the latest SDK installed:

pip install --upgrade rerun-sdk  # install the latest Rerun SDK
git clone git@github.com:rerun-io/rerun.git  # Clone the repository
cd rerun

Install the necessary libraries specified in the requirements file:

pip install -e examples/python/state_timeline

To experiment with the provided example, simply execute the main Python script:

python -m state_timeline

If you wish to customize it, explore additional features, or save it, use the CLI with the --help option for guidance:

python -m state_timeline --help