ouster.sdk.viz.scans_accumulator module

Copyright (c) 2023, Ouster, Inc. All rights reserved.

class SensorClouds(viz, sensor, track)[source]

Bases: object

Encapsulates the render state for a single sensor in ScansAccumulator.

remove_cloud(i)[source]
Return type:

None

add_cloud(i, accum_visible, active_cloud_palette, sr)[source]
Return type:

bool

update_cloud(i, active_cloud_mode_name, sr)[source]
show_clouds()[source]
hide_clouds()[source]
update(accum_visible, active_cloud_mode_name, active_cloud_palette, force_update=False)[source]
set_palette(active_cloud_palette)[source]
update_point_size(point_size)[source]
class ScansAccumulator(model, point_viz, track)[source]

Bases: AccumulatorBase

Used by LidarScanVizAccumulators to display every Nth scan or a scan at every K meters.

update_point_size(point_size)[source]
update(scan, scan_num=None, force_update=False)[source]

Register the new scan and update the states of TRACK, ACCUM and MAP

Return type:

None

property accum_visible: bool

Whether accumulated key frames (ACCUM) is visible

toggle_sensor(sensor_idx, state)[source]
toggle_visibility(state=None)[source]

Toggle or set the visibility of the accumulated scans.