Overlume 1.2.0
A real-time rendering layer for a robot's sensor and autonomy data
Loading...
Searching...
No Matches
overlume Namespace Reference

Classes

struct  AlertChip
struct  AlertPolygon
struct  BowlConfig
struct  CameraExtrinsics
struct  CameraIntrinsics
struct  CameraPose
struct  EgoState
struct  FrameView
struct  GenericMarker
struct  GeoAnchor
struct  GroundGridLayer
struct  HeightGridLayer
 A metric terrain heightfield: one height per cell, drawn as a lit 3D surface. More...
struct  Hud
struct  HudColors
struct  MapElement
struct  PathRibbon
struct  PointCloud
struct  PointCloudPoint
struct  RenderConfig
struct  SceneGraph
struct  TrackedObject
struct  TrajectoryCarpet
struct  Vec3

Enumerations

enum class  ObjectClass : uint8_t {
  CAR = 0 , TRUCK_VAN = 1 , BUS = 2 , PEDESTRIAN = 3 ,
  CYCLIST = 4 , UNKNOWN = 5
}
enum class  PathRole : uint8_t { BEHAVIOR = 0 , GLOBAL = 1 , LOCAL = 2 }
enum class  MarkerPrimitive : uint8_t {
  CUBE = 0 , SPHERE = 1 , CYLINDER = 2 , ARROW = 3 ,
  LINE_STRIP = 4 , LINE_LIST = 5 , POINTS = 6 , TEXT = 7 ,
  TRIANGLE_LIST = 8 , MESH = 9
}
enum class  MapKind : uint8_t {
  OTHER = 0 , CENTERLINE = 1 , LEFT_BOUNDARY = 2 , RIGHT_BOUNDARY = 3 ,
  CROSSWALK = 4 , STOPLINE = 5 , JUNCTION = 6 , ROAD_EDGE = 7 ,
  ROAD_SURFACE = 8
}
enum class  EnvironmentSourceState : uint8_t { NONE = 0 , BAKED = 1 , STREAMING = 2 , STREAMING_FALLBACK = 3 }

Functions

VisualRenderer * create_renderer (const RenderConfig &)
void destroy_renderer (VisualRenderer *)
bool render_frame (VisualRenderer *, const CameraPose &, FrameView out)
void set_scene (VisualRenderer *, const SceneGraph &scene)
bool set_theme (VisualRenderer *, const char *theme_name, double at_sec, double transition_sec)
bool set_ego_model (VisualRenderer *, const char *gltf_path, Vec3 fallback_dims)
uint32_t set_object_model_dir (VisualRenderer *, const char *dir)
bool theme_assets_loaded (VisualRenderer *)
HudColors get_hud_colors (VisualRenderer *)
bool project_to_screen (VisualRenderer *, Vec3 world_point, float *out_x, float *out_y)
bool theme_parses (const char *dir, const char *theme_name)
bool set_bowl_config (VisualRenderer *, const BowlConfig &)
bool set_bowl_visible (VisualRenderer *, bool visible)
bool set_self_view_masks (VisualRenderer *, bool enabled)
bool set_camera_motion_delta (VisualRenderer *, uint32_t cam_idx, const double delta_4x4_row_major[16])
bool set_camera_frame (VisualRenderer *, uint32_t cam_idx, const uint8_t *rgb, uint32_t width, uint32_t height, uint64_t frame_id, void(*release)(void *, size_t, void *)=nullptr, void *user=nullptr)
bool set_hybrid_splats (VisualRenderer *, const PointCloudPoint *rig_points, uint32_t count, float size_px)
 Hybrid (CUDA-parity) lidar splat layer: opaque square splats composited over the bowl.
bool set_environment_source (VisualRenderer *, const char *source_uri, GeoAnchor anchor)
EnvironmentSourceState environment_source_state (VisualRenderer *)
bool set_environment_visible (VisualRenderer *r, bool visible)
bool environment_visible (VisualRenderer *r)
void set_quality (VisualRenderer *, uint32_t preset)
uint32_t get_quality (VisualRenderer *)
uint32_t environment_source_credits (VisualRenderer *, char *out, uint32_t cap)
 Plain-text credits of the open streaming source's raster overlays ("; " separated, HTML stripped), written to out (NUL-terminated, truncated to cap); returns the length needed.

Variables

constexpr uint32_t kSceneVersion = 9
constexpr uint32_t kMaxBowlCameras = 6
constexpr const char * kVersionString

Enumeration Type Documentation

◆ EnvironmentSourceState

enum class overlume::EnvironmentSourceState : uint8_t
strong
Enumerator
NONE 
BAKED 
STREAMING 
STREAMING_FALLBACK 

◆ MapKind

enum class overlume::MapKind : uint8_t
strong
Enumerator
OTHER 
CENTERLINE 
LEFT_BOUNDARY 
RIGHT_BOUNDARY 
CROSSWALK 
STOPLINE 
JUNCTION 
ROAD_EDGE 
ROAD_SURFACE 

◆ MarkerPrimitive

enum class overlume::MarkerPrimitive : uint8_t
strong
Enumerator
CUBE 
SPHERE 
CYLINDER 
ARROW 
LINE_STRIP 
LINE_LIST 
POINTS 
TEXT 
TRIANGLE_LIST 
MESH 

◆ ObjectClass

enum class overlume::ObjectClass : uint8_t
strong
Enumerator
CAR 
TRUCK_VAN 
BUS 
PEDESTRIAN 
CYCLIST 
UNKNOWN 

◆ PathRole

enum class overlume::PathRole : uint8_t
strong
Enumerator
BEHAVIOR 
GLOBAL 
LOCAL 

Function Documentation

◆ create_renderer()

VisualRenderer * overlume::create_renderer ( const RenderConfig & )

◆ destroy_renderer()

void overlume::destroy_renderer ( VisualRenderer * )

◆ environment_source_credits()

uint32_t overlume::environment_source_credits ( VisualRenderer * ,
char * out,
uint32_t cap )

Plain-text credits of the open streaming source's raster overlays ("; " separated, HTML stripped), written to out (NUL-terminated, truncated to cap); returns the length needed.

0 and an empty string when no source or no overlay is open. The length leaves the NUL out, as snprintf's does: a result >= cap means out was cut. Call on the render_frame thread.

◆ environment_source_state()

EnvironmentSourceState overlume::environment_source_state ( VisualRenderer * )

◆ environment_visible()

bool overlume::environment_visible ( VisualRenderer * r)

◆ get_hud_colors()

HudColors overlume::get_hud_colors ( VisualRenderer * )

◆ get_quality()

uint32_t overlume::get_quality ( VisualRenderer * )

◆ project_to_screen()

bool overlume::project_to_screen ( VisualRenderer * ,
Vec3 world_point,
float * out_x,
float * out_y )

◆ render_frame()

bool overlume::render_frame ( VisualRenderer * ,
const CameraPose & ,
FrameView out )

◆ set_bowl_config()

bool overlume::set_bowl_config ( VisualRenderer * ,
const BowlConfig &  )

◆ set_bowl_visible()

bool overlume::set_bowl_visible ( VisualRenderer * ,
bool visible )

◆ set_camera_frame()

bool overlume::set_camera_frame ( VisualRenderer * ,
uint32_t cam_idx,
const uint8_t * rgb,
uint32_t width,
uint32_t height,
uint64_t frame_id,
void(* release )(void *, size_t, void *) = nullptr,
void * user = nullptr )

◆ set_camera_motion_delta()

bool overlume::set_camera_motion_delta ( VisualRenderer * ,
uint32_t cam_idx,
const double delta_4x4_row_major[16] )

◆ set_ego_model()

bool overlume::set_ego_model ( VisualRenderer * ,
const char * gltf_path,
Vec3 fallback_dims )

◆ set_environment_source()

bool overlume::set_environment_source ( VisualRenderer * ,
const char * source_uri,
GeoAnchor anchor )

◆ set_environment_visible()

bool overlume::set_environment_visible ( VisualRenderer * r,
bool visible )

◆ set_hybrid_splats()

bool overlume::set_hybrid_splats ( VisualRenderer * ,
const PointCloudPoint * rig_points,
uint32_t count,
float size_px )

Hybrid (CUDA-parity) lidar splat layer: opaque square splats composited over the bowl.

Points are in RIG frame (same as BowlConfig); the library anchors them with the bowl's ego transform. Colour comes from rgba (alpha ignored). size_px <= 0 selects the theme token hybrid_splat.size_px. count == 0 or rig_points == nullptr clears the layer. Drawn only while the bowl is visible. The points are copied. Call on the render_frame thread. Returns false for a null renderer.

◆ set_object_model_dir()

uint32_t overlume::set_object_model_dir ( VisualRenderer * ,
const char * dir )

◆ set_quality()

void overlume::set_quality ( VisualRenderer * ,
uint32_t preset )

◆ set_scene()

void overlume::set_scene ( VisualRenderer * ,
const SceneGraph & scene )

◆ set_self_view_masks()

bool overlume::set_self_view_masks ( VisualRenderer * ,
bool enabled )

◆ set_theme()

bool overlume::set_theme ( VisualRenderer * ,
const char * theme_name,
double at_sec,
double transition_sec )

◆ theme_assets_loaded()

bool overlume::theme_assets_loaded ( VisualRenderer * )

◆ theme_parses()

bool overlume::theme_parses ( const char * dir,
const char * theme_name )

Variable Documentation

◆ kMaxBowlCameras

uint32_t overlume::kMaxBowlCameras = 6
constexpr

◆ kSceneVersion

uint32_t overlume::kSceneVersion = 9
constexpr

◆ kVersionString

const char* overlume::kVersionString
inlineconstexpr
Initial value:
#define OVERLUME_VERSION_MAJOR
Definition version.h:6
#define OVERLUME_STR(x)
Definition version.h:13
#define OVERLUME_VERSION_MINOR
Definition version.h:7
#define OVERLUME_VERSION_PATCH
Definition version.h:8