Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update gigemapper #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mappers/gige/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM ubuntu:16.04
WORKDIR /usr/local/bin
COPY ./res /usr/local/res
COPY ./bin /usr/local/bin
COPY ./bin/librcapi_aarch64.so /usr/local/bin/librcapi.so
COPY ./baumer/Ubuntu-16.04/arm64 /usr/local/bin/cti
ENV GENICAM_GENTL64_PATH /usr/local/bin/cti
RUN apt update && apt install -y libpng16-dev libjpeg9-dev
Expand Down
1 change: 1 addition & 0 deletions mappers/gige/Dockerfile.x64
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM ubuntu:16.04
WORKDIR /usr/local/bin
COPY ./res /usr/local/res
COPY ./bin /usr/local/bin
COPY ./bin/librcapi_linux_x64.so /usr/local/bin/librcapi.so
COPY ./baumer/Ubuntu-16.04/x86_64 /usr/local/bin/cti
ENV GENICAM_GENTL64_PATH /usr/local/bin/cti
RUN apt update && apt install -y libpng16-dev libjpeg9-dev
Expand Down
4 changes: 2 additions & 2 deletions mappers/gige/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ help:
# ARM64 : true or undefined
#
# Example:
# - make mapper modbus ARM64=true : execute `build` "modbus" mapper for ARM64.
# - make mapper modbus test : execute `test` "modbus" mapper.
# - make mapper gige ARM64=true : execute `build` "gige" mapper for ARM64.
# - make mapper gige test : execute `test` "gige" mapper.
@echo

make_rules := $(shell ls $(curr_dir)/hack/make-rules | sed 's/.sh//g')
Expand Down
66 changes: 33 additions & 33 deletions mappers/gige/crd_example/deviceinstance.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: devices.kubeedge.io/v1alpha2
kind: Device
metadata:
name: camera-instance
name: gige-camera-instance01
labels:
model: camera-instance-model
spec:
deviceModelRef:
name: camera-instance-model
name: basler-ac5472
protocol:
common:
customizedValues:
Expand All @@ -20,52 +20,52 @@ spec:
operator: In
values:
- edge51
propertyVisitors:
- propertyName: PixelFormat
collectCycle: 1000000000
reportCycle: 1000000000
propertyVisitors:
- propertyName: PixelFormat
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
configData:
FeatureName: 'PixelFormat'
- propertyName: ImageTrigger
collectCycle: -1
reportCycle: -1
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
FeatureName: 'ImageTrigger'
- propertyName: ImageFormat
collectCycle: 1000000000
reportCycle: 1000000000
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
FeatureName: 'ImageFormat'
- propertyName: ImageURL
collectCycle: 1000000000
reportCycle: 1000000000
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
FeatureName: 'ImageURL'
- propertyName: Width
collectCycle: 1000000000
reportCycle: 1000000000
- propertyName: Width
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
FeatureName: 'Width'
- propertyName: Height
collectCycle: 1000000000
reportCycle: 1000000000
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
FeatureName: 'Height'
- propertyName: OffsetX
collectCycle: 1000000000
reportCycle: 1000000000
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
Expand All @@ -78,29 +78,29 @@ spec:
configData:
FeatureName: 'OffsetY'
- propertyName: AcquisitionFrameRateAbs
collectCycle: 1000000000
reportCycle: 1000000000
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
FeatureName: 'AcquisitionFrameRateAbs'
- propertyName: AcquisitionFrameRateEnable
collectCycle: 1000000000
reportCycle: 1000000000
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
FeatureName: 'AcquisitionFrameRateEnable'
- propertyName: ExposureTimeAbs
collectCycle: 1000000000
reportCycle: 1000000000
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
FeatureName: 'ExposureTimeAbs'
- propertyName: AutoFunctionAOIUsageWhiteBalance
collectCycle: 1000000000
reportCycle: 1000000000
collectCycle: 3000000000
reportCycle: 3000000000
customizedProtocol:
protocolName: GigEVision
configData:
Expand Down Expand Up @@ -138,11 +138,11 @@ status:
desired:
metadata:
type: string
value: ''
value: 'http://127.0.0.1:5000/v2/push/picture'
reported:
metadata:
type: string
value: '192.168.137.61'
value: 'http://127.0.0.1:5000/v2/push/picture'
- propertyName: Width
desired:
metadata:
Expand All @@ -151,16 +151,16 @@ status:
reported:
metadata:
type: integer
value: '659'
value: '600'
- propertyName: Height
desired:
metadata:
type: integer
value: '494'
value: '400'
reported:
metadata:
type: integer
value: '494'
value: '400'
- propertyName: OffsetX
desired:
metadata:
Expand Down
35 changes: 24 additions & 11 deletions mappers/gige/crd_example/devicemodel.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: devices.kubeedge.io/v1alpha2
kind: DeviceModel
metadata:
name: camera-instance-model
name: basler-ac5472
spec:
properties:
- name: PixelFormat
Expand All @@ -10,29 +10,25 @@ spec:
accessMode: ReadWrite
defaultValue: 'Mono8'
- name: ImageTrigger
type:
bytes:
accessMode: ReadOnly
- name: ImageFormat
type:
boolean:
accessMode: ReadWrite
defaultValue: "jpeg"
- name: ImageURL
description: imageproc
type:
string:
accessMode: ReadWrite
defaultValue: 'stop'
- name: AutoFunctionAOIUsageWhiteBalance
description: White Balance
type:
boolean:
accessMode: ReadWrite
defaultValue: false
- name: AcquisitionFrameRateEnable
- name: AcquisitionFrameRateEnable
description: Acquisition FrameRate
type:
boolean:
accessMode: ReadWrite
defaultValue: false
- name: ExposureTimeAbs
description: Exposure Time
type:
float:
accessMode: ReadWrite
Expand All @@ -41,32 +37,49 @@ spec:
maximum: 100000
unit: 'us'
- name: AcquisitionFrameRateAbs
description: Acquisition Frame Rate
type:
float:
accessMode: ReadWrite
defaultValue: 10.0
unit: 'Hz'
- name: Width
description: picture width
type:
int:
accessMode: ReadWrite
defaultValue: 659
minimum: 0
maximum: 659
- name: Height
description: picture height
type:
int:
accessMode: ReadWrite
defaultValue: 494
minimum: 0
maximum: 494
- name: OffsetX
description: offset of x
type:
int:
accessMode: ReadWrite
defaultValue: 0
- name: OffsetY
description: offset of Y
type:
int:
accessMode: ReadWrite
defaultValue: 0
- name: ImageFormat
description: mage format, jpeg,png,pnm
type:
string:
accessMode: ReadWrite
defaultValue: "jpeg"
- name: ImageURL
description: url for post picture
type:
string:
accessMode: ReadWrite
defaultValue: "https://127.0.0.1/push/picture"
Loading