CVBpy 15.0
PointCloudStream Class Reference

The point cloud stream class. More...

Inherits CompositeStreamBase.

Public Member Functions

Tuple[Optional[Union[cvb.DensePointCloud, cvb.SparsePointCloud]], int, Optional[cvb.NodeMapEnumerator]] wait (self, Optional[cvb.CancellationToken] token)
 Waits forever for the next acquired point cloud.
 
cvb.AsyncWaitResultPointCloudTuple wait_async (self, int time_span)
 Waits asynchronously for the next acquired point cloud.
 
cvb.AsyncWaitResultPointCloudTuple wait_async_for (self, int time_span)
 Waits asynchronously for the given time span for the next acquired point cloud.
 
Tuple[Optional[Union[cvb.DensePointCloud, cvb.SparsePointCloud]], int, Optional[cvb.NodeMapEnumerator]] wait_for (self, int time_span, Optional[cvb.CancellationToken] token)
 Waits for the given time span for the next acquired point cloud.
 
- Public Member Functions inherited from CompositeStreamBase
None deregister_flow_set_pool (self)
 Removes an existing flow set pool from the acquisition engine.
 
None device_abort (self)
 Stops the stream in the device immediately.
 
None device_start (self, int buffer_count_to_acquire=-1)
 Starts the stream on the device.
 
None device_stop (self)
 Stops the stream in the device.
 
None engine_abort (self)
 Stops the acquisition engine immediately.
 
None engine_start (self, int buffer_count_to_acquire=-1)
 Starts the acquisition engine on the host.
 
None engine_stop (self, int timeout=-1)
 Stops the acquisition engine.
 
None register_managed_flow_set_pool (self, int flow_set_count)
 Registers an internal flows set pool.
 
bool try_device_abort (self)
 Stops the stream in the device immediately.
 
bool try_device_stop (self)
 Stops the stream in the device.
 
bool try_engine_abort (self)
 Stops the acquisition engine immediately.
 
bool try_engine_stop (self, int timeout=-1)
 Stops the acquisition engine.
 
- Public Member Functions inherited from StreamBase
None abort (self)
 Stops the acquisition of images immediately.
 
None start (self)
 Starts the acquisition.
 
None stop (self)
 Stops the acquisition.
 
bool try_abort (self)
 Stops the acquisition of images immediately.
 
bool try_stop (self)
 Stops the acquisition.
 

Additional Inherited Members

- Properties inherited from CompositeStreamBase
 acquisition_state = property
 int: Returns the current acquisition state (see cvb.AcquisitionState).
 
 flow_set_count = property
 int: Gets the number of registered flow sets.
 
 min_required_flow_set_count = property
 int: Gets minimum number of flow sets required for the acquisition.
 
 node_maps = property
 Dict[str, Optional[cvb.NodeMap]]: Gets the dictionary holding all available NodeMaps.
 
- Properties inherited from StreamBase
 is_indexed = property
 bool: Returns whether this stream is an indexed stream.
 

Detailed Description

The point cloud stream class.

Member Function Documentation

◆ wait()

Tuple[Optional[Union[cvb.DensePointCloud, cvb.SparsePointCloud]], int, Optional[cvb.NodeMapEnumerator]] wait ( self,
Optional[cvb.CancellationToken] token )

Waits forever for the next acquired point cloud.

Parameters

token : Optional[cvb.CancellationToken] A token to cancel this individual wait.

Returns

Tuple[Optional[Union[cvb.DensePointCloud, cvb.SparsePointCloud]], int, Optional[cvb.NodeMapEnumerator]] A tuple containing a point cloud, the wait status (see cvb.WaitStatus), and an node map enumerator.

◆ wait_async()

cvb.AsyncWaitResultPointCloudTuple wait_async ( self,
int time_span )

Waits asynchronously for the next acquired point cloud.

Parameters

time_span : int Time (in ms) to wait for a point cloud.

Returns

cvb.AsyncWaitResultPointCloudTuple An async wait result that is awaitable.

◆ wait_async_for()

cvb.AsyncWaitResultPointCloudTuple wait_async_for ( self,
int time_span )

Waits asynchronously for the given time span for the next acquired point cloud.

Parameters

time_span : int Time (in ms) to wait for a point cloud.

Returns

cvb.AsyncWaitResultPointCloudTuple An async wait result that is awaitable.

◆ wait_for()

Tuple[Optional[Union[cvb.DensePointCloud, cvb.SparsePointCloud]], int, Optional[cvb.NodeMapEnumerator]] wait_for ( self,
int time_span,
Optional[cvb.CancellationToken] token )

Waits for the given time span for the next acquired point cloud.

Parameters

time_span : int Time to wait for data (in ms).

token : Optional[cvb.CancellationToken] A token to cancel this individual wait.

Returns

Tuple[Optional[Union[cvb.DensePointCloud, cvb.SparsePointCloud]], int, Optional[cvb.NodeMapEnumerator]] A tuple containing a point cloud, the wait status (see cvb.WaitStatus), and an node map enumerator.