stream.point_cloud

class blickfeld_scanner.stream.point_cloud.point_cloud(connection=None, from_file=None, filter=None, reference_frame=None)

Class to request a point cloud stream

Parameters

connection (blickfeld_scanner.scanner.connection) – connection to the device

REF_FRAME_XYZ = <Blickfeld Frame 0: 0 returns, 0.0x0.0 FoV, 1 scanlines>

Reference frame: XYZ coordinates, intensity

REF_FRAME_XYZ_I = <Blickfeld Frame 0: 0 returns, 0.0x0.0 FoV, 1 scanlines>

Reference frame: XYZ coordinates, intensity, frame id, scanline id, point id, return id

REF_FRAME_XYZ_I_ID = <Blickfeld Frame 0: 0 returns, 0.0x0.0 FoV, 1 scanlines>

Reference frame: XYZ coordinates, intensity, frame id, scanline id, point id, return id, timestamps

REF_FRAME_XYZ_I_ID_TS = <Blickfeld Frame 0: 0 returns, 0.0x0.0 FoV, 1 scanlines>

Reference frame: ambient_light_level, intensity, range, frame id, scanline id, point id

REF_FRAME_DEPTH_MAP = <Blickfeld Frame 0: 0 returns, 0.0x0.0 FoV, 1 scanlines>
close()

Close point cloud stream and connection

get_metadata()

Get metadata of point cloud stream

Returns

Point cloud metadata, see: Protobuf definitions PointCloud.Metadata

recv_frame()

Receive point cloud frame

Returns

point cloud frame with all the data in it, see: Protobuf definitions Frame

end_of_stream()

Check whether stream has ended. This function is required for point cloud streams of files

Returns

Bool if end of stream is reached

record_to_file(file_name)

Record point cloud stream to file

Parameters

file_name – Path to the file where it should be dumped

stop_recording()

Stop recording