Compare commits
No commits in common. "e13e5026b5fd98d7866c4f2ac5b5f1bb2c5ba44e" and "ab50870e0fd568c32b7c1a7c0a9ee8c17b1db9d7" have entirely different histories.
e13e5026b5
...
ab50870e0f
@ -1,2 +1 @@
|
|||||||
# Set group on camera device
|
|
||||||
SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"
|
SUBSYSTEM=="vchiq", GROUP="video", MODE="0660"
|
||||||
|
@ -1 +0,0 @@
|
|||||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"
|
|
@ -30,14 +30,11 @@
|
|||||||
# notify: reboot
|
# notify: reboot
|
||||||
|
|
||||||
|
|
||||||
- name: Add udev rules
|
- name: Set group on camera device
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item }}"
|
src: 10-vchiq-permissions.rules
|
||||||
dest: /etc/udev/rules.d/{{ item }}
|
dest: /etc/udev/rules.d/10-vchiq-permissions.rules
|
||||||
notify: reboot
|
notify: reboot
|
||||||
with_items:
|
|
||||||
- 10-vchiq-permissions.rules
|
|
||||||
- 80-movidius.rules
|
|
||||||
|
|
||||||
|
|
||||||
- name: Set groups to pi user
|
- name: Set groups to pi user
|
||||||
|
@ -7,7 +7,7 @@ metadata:
|
|||||||
reloader.stakater.com/auto: "true"
|
reloader.stakater.com/auto: "true"
|
||||||
spec:
|
spec:
|
||||||
revisionHistoryLimit: 0
|
revisionHistoryLimit: 0
|
||||||
replicas: 0
|
replicas: 1
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
selector:
|
selector:
|
||||||
@ -81,87 +81,6 @@ spec:
|
|||||||
hostPath:
|
hostPath:
|
||||||
path: "/dev/video0"
|
path: "/dev/video0"
|
||||||
type: CharDevice
|
type: CharDevice
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: oak-camera
|
|
||||||
annotations:
|
|
||||||
reloader.stakater.com/auto: "true"
|
|
||||||
spec:
|
|
||||||
revisionHistoryLimit: 0
|
|
||||||
replicas: 1
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
component: oak-camera
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
component: oak-camera
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: camera
|
|
||||||
image: docker.io/cyrilix/robocar-oak-camera
|
|
||||||
args:
|
|
||||||
- "--image-width=$(CAMERA_WIDTH)"
|
|
||||||
- "--image-height=$(CAMERA_HEIGHT)"
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 1234
|
|
||||||
privileged: true
|
|
||||||
volumeMounts:
|
|
||||||
- name: sys
|
|
||||||
mountPath: /sys
|
|
||||||
- name: dev
|
|
||||||
mountPath: /dev
|
|
||||||
env:
|
|
||||||
- name: MQTT_BROKER
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: MQTT_BROKER_HOST
|
|
||||||
name: robocar
|
|
||||||
- name: MQTT_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: MQTT_USERNAME
|
|
||||||
name: mqtt-credentials
|
|
||||||
- name: MQTT_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: MQTT_PASSWORD
|
|
||||||
name: mqtt-credentials
|
|
||||||
- name: MQTT_CLIENT_ID
|
|
||||||
value: rc-oak-camera
|
|
||||||
- name: MQTT_TOPIC_CAMERA
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: MQTT_TOPIC_CAMERA_OAK_COLOR
|
|
||||||
name: robocar
|
|
||||||
- name: CAMERA_WIDTH
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: CAMERA_WIDTH
|
|
||||||
name: robocar-camera
|
|
||||||
- name: CAMERA_HEIGHT
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: CAMERA_HEIGHT
|
|
||||||
name: robocar-camera
|
|
||||||
- name: MQTT_QOS
|
|
||||||
value: "0"
|
|
||||||
- name: TZ
|
|
||||||
value: "Europe/Paris"
|
|
||||||
hostNetwork: true
|
|
||||||
volumes:
|
|
||||||
- name: sys
|
|
||||||
hostPath:
|
|
||||||
path: /sys
|
|
||||||
- name: dev
|
|
||||||
hostPath:
|
|
||||||
path: "/dev"
|
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
@ -14,7 +14,4 @@ images:
|
|||||||
newTag: v0.3.0
|
newTag: v0.3.0
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-pca9685
|
- name: docker.io/cyrilix/robocar-pca9685
|
||||||
newTag: v0.5.0
|
newTag: v0.4.0-1-gc42086a
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-oak-camera
|
|
||||||
newTag: v0.1.0
|
|
@ -4,13 +4,11 @@ metadata:
|
|||||||
name: robocar
|
name: robocar
|
||||||
data:
|
data:
|
||||||
# Broker configuration
|
# Broker configuration
|
||||||
MQTT_BROKER_HOST: 192.168.2.221
|
MQTT_BROKER_HOST: localhost
|
||||||
MQTT_BROKER: "tcp://192.168.2.221:1883"
|
MQTT_BROKER: "tcp://192.168.2.221:1883"
|
||||||
#MQTT_BROKER: "tcp://mqtt.robocar.svc.cluster.local:1883"
|
|
||||||
|
|
||||||
# Camera
|
# Camera
|
||||||
MQTT_TOPIC_CAMERA: car/satanas/part/camera/camera/color
|
MQTT_TOPIC_CAMERA: car/satanas/part/camera
|
||||||
MQTT_TOPIC_CAMERA_OAK_COLOR: car/satanas/part/camera/color
|
|
||||||
|
|
||||||
|
|
||||||
# Radio command
|
# Radio command
|
||||||
@ -80,9 +78,8 @@ metadata:
|
|||||||
name: robocar-models
|
name: robocar-models
|
||||||
data:
|
data:
|
||||||
# model to use for steering
|
# model to use for steering
|
||||||
MODEL_STEERING: model_160x120h0_edgetpu.tflite
|
|
||||||
MODEL_STEERING3: model_edgetpu.tflite
|
MODEL_STEERING3: model_edgetpu.tflite
|
||||||
MODEL_STEERING4: model_160x120h20_edgetpu.tflite
|
MODEL_STEERING: model_160x120h20_edgetpu.tflite
|
||||||
MODEL_STEERING2: model-sim-bigimg_edgetpu.tflite
|
MODEL_STEERING2: model-sim-bigimg_edgetpu.tflite
|
||||||
|
|
||||||
MODEL_IMAGE_WIDTH: "160"
|
MODEL_IMAGE_WIDTH: "160"
|
||||||
|
@ -10,7 +10,7 @@ resources:
|
|||||||
|
|
||||||
images:
|
images:
|
||||||
- name: docker.io/cyrilix/robocar-arduino
|
- name: docker.io/cyrilix/robocar-arduino
|
||||||
newTag: v0.6.0
|
newTag: v0.5.0-2-g9b5e9c2
|
||||||
|
|
||||||
- name: docker.io/cyrilix/robocar-led
|
- name: docker.io/cyrilix/robocar-led
|
||||||
newTag: v0.5.0
|
newTag: v0.5.0
|
||||||
|
Loading…
Reference in New Issue
Block a user