SmartRay_GrabPointCloud_WithTimeout
Captures a point cloud with timeout using SmartRay.
Syntax
C++
Python
def SmartRay_GrabPointCloud_WithTimeout( state: SmartRay_State, inAddress: str, inPort: int, inConnectionTimeout: int, inTransportResolution: float, inNumberOfProfiles: int, /, *, inInputQueueSize: int = 4, inTimeout: int | None = 100, inCalibrationFile: str | None = None, inDataTrigger: SmartRayDataTrigger = SmartRayDataTrigger(SmartRayDataTriggerMode.FreeRun, None, None, None, None, None), inRegionOfInterest: SmartRayRegionOfInterest | None = None, inExposure: SmartRayExposure | None = None, inLaser: SmartRayLaser | None = None, inStartTrigger: SmartRayStartTrigger | None = None, inReflectionFilter: SmartRayReflectionFilter | None = None, inLaserLineThreshold: list[int] | None = None, inMinLaserLineThicknessLimit: int | None = None, inMaxLaserLineThicknessLimit: int | None = None, inSmartXtract: bool | None = None, inSmartXtractAlgorithm: SmartRaySmartXtractAlgorithm | None = None, inSmartXactMode: SmartRaySmartXactMode | None = None ) -> ( outResult: bool, outPointCloud: Point3DGrid | None, outIntensity: Image | None, outLaserLineThickness: Image | None )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | SmartRay_State | |||
![]() |
inAddress | str | Device identifying address | ||
![]() |
inPort | int | Device identifying network port | ||
![]() |
inConnectionTimeout | int | 1 - 1000 | Timeout in seconds | |
![]() |
inInputQueueSize | int | 1 - 200 | 4 | Capacity of output frames queue |
![]() |
inTimeout | int | None | 100 | Frame timeout in milliseconds | |
![]() |
inTransportResolution | float | 0.0 - ![]() |
Defines x-axis step for every profile | |
![]() |
inNumberOfProfiles | int | Number of profiles to capture | ||
![]() |
inCalibrationFile | str | None | None | Do not set file to load data from device internal memory | |
![]() |
inDataTrigger | SmartRayDataTrigger | SmartRayDataTrigger(SmartRayDataTriggerMode.FreeRun, None, None, None, None, None) | ||
![]() |
inRegionOfInterest | SmartRayRegionOfInterest | None | None | ||
![]() |
inExposure | SmartRayExposure | None | None | ||
![]() |
inLaser | SmartRayLaser | None | None | ||
![]() |
inStartTrigger | SmartRayStartTrigger | None | None | ||
![]() |
inReflectionFilter | SmartRayReflectionFilter | None | None | ||
![]() |
inLaserLineThreshold | list[int] | None | None | ||
![]() |
inMinLaserLineThicknessLimit | int | None | None | ||
![]() |
inMaxLaserLineThicknessLimit | int | None | None | ||
![]() |
inSmartXtract | bool | None | None | ||
![]() |
inSmartXtractAlgorithm | SmartRaySmartXtractAlgorithm | None | None | ||
![]() |
inSmartXactMode | SmartRaySmartXactMode | None | None | ||
![]() |
outPointCloud | Point3DGrid | None | |||
![]() |
outIntensity | Image | None | |||
![]() |
outLaserLineThickness | Image | None |
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.




