Documentation
¶
Index ¶
- Constants
- Variables
- func GetSDKVersion() string
- func StartEventListener() (<-chan EventData, error)
- func StopEventListener()
- type Device
- func (d *Device) Close() error
- func (d *Device) ExportSettings() (DeviceSettings, error)
- func (d *Device) GetDeviceVersion() (string, error)
- func (d *Device) GetSerialNumber() (string, error)
- func (d *Device) IsConnect() bool
- func (d *Device) IsStart() bool
- func (d *Device) SaveSettings() error
- func (d *Device) SetDeviceUserID(userID uint8) error
- func (d *Device) SetDistanceFilterConf(enable bool, K float32) error
- func (d *Device) SetDistanceOffset(offset int16) error
- func (d *Device) SetEdgeFilterEnable(enable bool) error
- func (d *Device) SetMultiCameraCode(cameraCode uint8) error
- func (d *Device) SetOpticalPathCalibration(enable bool) error
- func (d *Device) SetROIGroupID(groupID uint8) error
- func (d *Device) SetSmoothFilterConf(filterType SmoothFilter, args int) error
- func (d *Device) SingleCapture() (*EventData, error)
- func (d *Device) StartCapture() error
- func (d *Device) StopCapture() error
- type DeviceSettings
- type EventData
- type EventType
- type FullDepthData
- type MeasureData
- type Point
- type PointCloudData
- type SimpleDepthData
- type SmoothFilter
- type Status
Constants ¶
View Source
const ( SmoothFilterDisable = SmoothFilter(C.HPS3D_SMOOTH_FILTER_DISABLE) SmoothFilterAverage = SmoothFilter(C.HPS3D_SMOOTH_FILTER_AVERAGE) SmoothFilterGauss = SmoothFilter(C.HPS3D_SMOOTH_FILTER_GAUSS) )
View Source
const ( EventNull = EventType(C.HPS3D_NULL_EVEN) EventSimpleROI = EventType(C.HPS3D_SIMPLE_ROI_EVEN) EventFullROI = EventType(C.HPS3D_FULL_ROI_EVEN) EventFullDepth = EventType(C.HPS3D_FULL_DEPTH_EVEN) EventSimpleDepth = EventType(C.HPS3D_SIMPLE_DEPTH_EVEN) EventSysException = EventType(C.HPS3D_SYS_EXCEPTION_EVEN) EventDisconnect = EventType(C.HPS3D_DISCONNECT_EVEN) )
View Source
const MaxPixelNumber = int(C.HPS3D_MAX_PIXEL_NUMBER)
Variables ¶
View Source
var ( ErrOk = errors.New("OK") ErrError = errors.New("Error") ErrBusy = errors.New("Busy") ErrConnectFailed = errors.New("Connection Failed") ErrCreateThreadErr = errors.New("Thread Creation Error") ErrWriteErr = errors.New("Write Error") ErrReadErr = errors.New("Read Error") ErrPacketHeadErr = errors.New("Packet Header Error") ErrPacketErr = errors.New("Packet Error") ErrBuffEmpty = errors.New("Buffer Empty") ErrVersionMismatch = errors.New("Version Mismatch") )
Functions ¶
func GetSDKVersion ¶
func GetSDKVersion() string
func StartEventListener ¶
func StopEventListener ¶
func StopEventListener()
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) ExportSettings ¶
func (d *Device) ExportSettings() (DeviceSettings, error)
func (*Device) GetDeviceVersion ¶
func (*Device) GetSerialNumber ¶
func (*Device) SaveSettings ¶
func (*Device) SetDeviceUserID ¶
func (*Device) SetDistanceFilterConf ¶
func (*Device) SetDistanceOffset ¶
func (*Device) SetEdgeFilterEnable ¶
func (*Device) SetMultiCameraCode ¶
func (*Device) SetOpticalPathCalibration ¶
func (*Device) SetROIGroupID ¶
func (*Device) SetSmoothFilterConf ¶
func (d *Device) SetSmoothFilterConf(filterType SmoothFilter, args int) error
func (*Device) SingleCapture ¶
func (*Device) StartCapture ¶
func (*Device) StopCapture ¶
type DeviceSettings ¶
type DeviceSettings struct {
UserID int
MaxResolutionX int
MaxResolutionY int
MaxROIGroups int
MaxROINumber int
MaxThresholds int
MaxMultiCameraCode int
DistFilterEnable bool
DistFilterK float32
SmoothFilterType int
SmoothFilterArgs int
CurGroupID int
CurMultiCameraCode int
DistOffset int
OpticalPathCalib bool
EdgeFilterEnable bool
}
func (DeviceSettings) String ¶
func (s DeviceSettings) String() string
String returns a formatted string representation of DeviceSettings.
type EventData ¶
type EventData struct {
Handle int
EventType EventType
Data *MeasureData
}
type FullDepthData ¶
type FullDepthData struct {
DistanceAverage uint16
DistanceMin uint16
SaturationCount uint16
FrameCount uint32
Distance []uint16
PointCloudData PointCloudData
}
FullDepthData representa os dados de profundidade completa
type MeasureData ¶
type MeasureData struct {
SimpleDepthData SimpleDepthData
FullDepthData FullDepthData
}
MeasureData representa os dados medidos convertidos para Go
type PointCloudData ¶
PointCloudData representa os dados de nuvem de pontos
type SimpleDepthData ¶
type SimpleDepthData struct {
DistanceAverage uint16
DistanceMin uint16
SaturationCount uint16
FrameCount uint32
}
SimpleDepthData representa os dados de profundidade simples
type SmoothFilter ¶
type SmoothFilter C.HPS3D_SmoothFilterType_t
Click to show internal directories.
Click to hide internal directories.