<< Click to Display Table of Contents >> Navigation: Migration Guide for the Acquisition Stacks > CVBpy > Point Cloud |
This example is pretty much the same as in Single Stream, only the stream type is a point cloud stream in this case.
3rd generation stack |
|
1 2 3 4 5 6 7 8 9 |
devices = DeviceFactory.discover_from_root(DiscoverFlags.IgnoreVins) with DeviceFactory.open(devices[0].access_token, AcquisitionStack.GenTL) as device: stream = device.stream(PointCloudStream) stream.start() for _ in range(10): cloud, status, node_maps = stream.wait() with cloud: pass stream.abort() |
(3) From the device a data stream is instantiated. In our assumed scenario, only one data stream is involved, so by default, the stream at index zero is queried. The stream type is defined by the template specialization of the stream query function. With 3rd generation GenTL acquisition stack it is possible to get different stream types, which are described in Stream Types.