Expand description
The Rerun logging SDK
This is the bare-bones version of the rerun crate.
rerun exports everything in re_sdk, so in most cases you want to use rerun
instead.
Please read the docs for the rerun crate instead.
Feature flags
-
demo(enabled by default) — Enable thedemomodule (helpers for Rerun examples). -
glam(enabled by default) — Add support for some math operations usingglam. -
image(enabled by default) — Integration with theimagecrate, plus JPEG support. -
log(enabled by default) — Integration with thelogcrate. -
web_viewer— Support serving a web viewer over HTTP.Enabling this inflates the binary size quite a bit, since it embeds the viewer wasm.
For faster & easier builds, a pre-built web-views comes bundled with the crate as a Wasm binary. Enabling this feature will embed this pre-built web viewer.
However, when building from source in the repository, this feature adds quite a bit to the compile time since it requires compiling and bundling the viewer as wasm. You also need to install some additional tools, which you can do by running
scripts/setup_web.sh.
Modules
- Components are the basic building blocks of
archetypes. - Coordinate system helpers, for use with
components::ViewCoordinates. - The low-level datatypes that
componentsare built from. - This module contains utilities to support Rerun examples.
- Re-exports of other crates.
- Things directly related to logging.
- Different destinations for log messages.
- Time-related types.
- Transform helpers, for use with
components::Transform3D. - Methods for spawning the web viewer and streaming the SDK log stream to it.
Structs
- Archetype: The
AnnotationContextprovides additional information on how to display entities. - The user-chosen name of the application doing the logging.
- The fully-qualified name of an
Archetype, e.g.rerun.archetypes.Points3D. - Archetype: 3D arrows with optional colors, radii, labels, etc.
- Archetype: A prepacked 3D asset (
.gltf,.glb,.obj, etc.). - Archetype: A bar chart.
- Archetype: 2D boxes with half-extents and optional center, rotations, rotations, colors etc.
- Archetype: 3D boxes with half-extents and optional center, rotations, rotations, colors etc.
- Datatype: The description of a semantic Class.
- Archetype: Empties all the components of an entity.
- Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
- The fully-qualified name of a
Component, e.g.rerun.components.Position2D. - The fully-qualified name of a
Datatype, e.g.rerun.datatypes.Vec2D. - Archetype: A depth image.
- Archetype: Specifies that the entity path at which this is logged is disconnected from its parent.
- The unique identifier of an entity, e.g.
camera/"ACME Örnöga"/points - Datatype: A single-precision 32-bit IEEE 754 floating point number.
- A generic indicator component that can be specialized for any
Archetype. - Component: Half-sizes (extents) of a 2D box along its local axis, starting at its local origin/center.
- Component: Half-sizes (extents) of a 3D box along its local axis, starting at its local origin/center.
- Archetype: A monochrome or color image.
- Component: A unique numeric identifier for each individual instance within a batch.
- Datatype: A connection between two
Keypoints. - Component: A line strip in 2D space.
- Component: A line strip in 3D space.
- Archetype: 2D line strips with positions and optional colors, radii, labels, etc.
- Archetype: 3D line strips with positions and optional colors, radii, labels, etc.
- Implements a
log::Logthat forwards all events to the Rerun SDK. - Datatype: A 3x3 Matrix.
- Component: Material properties of a mesh.
- Component: A standardized media type (RFC2046, formerly known as MIME types), encoded as a utf8 string.
- Archetype: A 3D triangle mesh as specified by its per-mesh and per-vertex properties.
- Component: Optional triangle indices for a mesh.
- An arbitrary named indicator component.
- Component: An out-of-tree affine transform between two 3D spaces, represented in a given direction.
- Archetype: Camera perspective projection (a.k.a. intrinsics).
- Archetype: A 2D point cloud with positions and optional colors, radii, labels, etc.
- Archetype: A 3D point cloud with positions and optional colors, radii, labels, etc.
- Component: A position in 2D space.
- Component: A position in 3D space.
- Datatype: A Quaternion represented by 4 real numbers.
- Component: A Radius component.
- A
RecordingStreamhandles everything related to logging data into Rerun. - Construct a
RecordingStream. - Datatype: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
- Datatype: 3D rotation represented by a rotation around a given axis.
- Archetype: An image made up of integer class-ids.
- Options to control the behavior of
spawn. - A unique id per store.
- Archetype: A generic n-dimensional Tensor.
- Component: A string of text, e.g. for labels and text documents.
- Archetype: A text element intended to be displayed in its own text-box.
- Archetype: A log entry in a text log, comprised of a text body and its log level.
- Component: The severity level of a text log message.
- A date-time represented as nanoseconds since unix epoch
- A point in time on any number of
Timelines. - Archetype: Log a double-precision scalar that will be visualized as a time-series plot.
- A time frame/space, e.g.
log_timeorframe_nr, coupled with the type of time it keeps. - Archetype: A 3D transform.
- Datatype: Representation of an affine transform via a 3x3 affine matrix paired with a translation.
- Datatype: Representation of an affine transform via separate translation, rotation & scale.
- Datatype: A vector in 2D space.
- Datatype: A vector in 3D space.
- Datatype: A vector in 4D space.
- Component: A vector in 3D space.
- Archetype: How we interpret the coordinate system of an entity/space.
Enums
- Datatype: Angle in either radians or degrees.
- Holds either an owned
ComponentBatchthat lives on heap, or a reference to one. - Errors that can occur when creating/manipulating a
RecordingStream. - Datatype: A 3D rotation.
- Datatype: 3D scaling factor, part of a transform representation.
- Errors that can occur when
spawning a Rerun Viewer. - What kind of Store this is.
Traits
- An archetype is a high-level construct that represents a set of
Components that usually play well with each other (i.e. they compose nicely). - Describes the interface for interpreting an object as a bundle of
Components. - A
ComponentBatchrepresents an array’s worth ofComponentinstances. - A
DatatypeBatchrepresents an array’s worth ofDatatypeinstances. - A
Loggablerepresents a single instance in an array of loggable data. - A
LoggableBatchrepresents an array’s worth ofLoggableinstances, ready to be serialized.
Functions
- The version of the Rerun SDK.
- Check whether we are the child of a fork.
- Checks the
RERUNenvironment variable. If not found, returns the argument. - The default amount of time to wait for the TCP connection to resume during a flush
- Get
RUST_LOGenvironment variable orinfo, if not set. - The default address of a Rerun TCP server which an SDK connects to.
- Creates a new
re_log_types::StoreInfowhich can be used withRecordingStream::new. - Spawns a new Rerun Viewer process ready to listen for TCP connections.
Type Aliases
- Results that can occur when creating/manipulating a
RecordingStream.