Compare commits

...

5 Commits

9 changed files with 37 additions and 10 deletions

View File

@ -103,11 +103,12 @@ spec:
spec:
containers:
- name: camera
image: docker.io/cyrilix/robocar-oak-camera
image: git.cyrilix.bzh/robocars/robocar-oak-camera
args:
- "--image-width=$(CAMERA_WIDTH)"
- "--image-height=$(CAMERA_HEIGHT)"
- "--objects-threshold=$(THRESHOLD_OBJECTS)"
- "--log=info"
securityContext:
runAsUser: 1234
privileged: true
@ -146,7 +147,7 @@ spec:
- name: THRESHOLD_OBJECTS
valueFrom:
configMapKeyRef:
key: THRESHOLD
key: OBJECTS_THRESHOLD
name: robocar-objects
- name: CAMERA_WIDTH
valueFrom:

View File

@ -16,5 +16,5 @@ images:
- name: docker.io/cyrilix/robocar-pca9685
newTag: v0.6.4
- name: docker.io/cyrilix/robocar-oak-camera
newTag: v0.2.0
- name: git.cyrilix.bzh/robocars/robocar-oak-camera
newTag: v0.2.0-28-g7ebd909

View File

@ -46,8 +46,21 @@ data:
############
# Throttle #
############
THROTTLE_MIN: "0.2"
THROTTLE_MAX: "0.3"
## For manual driving
#####################
# THROTTLE_MIN: "0.10"
# THROTTLE_MAX: "0.12"
## Secure auto-pilot
####################
THROTTLE_MIN: "0.10"
THROTTLE_MAX: "0.12"
## Speed auto-pilot
###################
# THROTTLE_MIN: "0.11"
# THROTTLE_MAX: "0.13"
---
@ -128,7 +141,6 @@ data:
MODEL_IMAGE_WIDTH: "160"
MODEL_IMAGE_HEIGHT: "120"
HORIZON: "20"
---
apiVersion: v1
kind: ConfigMap
@ -173,8 +185,11 @@ data:
apiVersion: v1
kind: ConfigMap
metadata:
name: android
name: robocar-objects
data:
OBJECTS_THRESHOLD: "0.2"
# To delete?
thresholds.json: |
{
"threshold_steps": [ 0.07, 0.08, 0.09, 0.1, 0.125, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0 ],

View File

@ -107,7 +107,7 @@ spec:
type: CharDevice
- name: robocar
configMap:
name: android
name: robocar-objects
---
apiVersion: apps/v1
@ -321,7 +321,7 @@ spec:
- "-mqtt-retain=false"
- "--image-width=$(IMAGE_WIDTH)"
- "--image-height=$(IMAGE_HEIGHT)"
- "--enable-objects-correction=true"
- "--enable-objects-correction=false"
- "--enable-objects-correction-user=false"
- "--grid-map-config=/etc/robocar/grid.json"
- "--objects-move-factors-config=/etc/robocar/omf.json"

View File

@ -3,6 +3,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- deployments.yaml
- services.yaml
- configmap.yaml

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: robocar

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: mqtt-credentials
namespace: robocar
stringData:
MQTT_USERNAME: satanas
MQTT_PASSWORD: satanas

View File

@ -3,6 +3,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- https://github.com/stakater/Reloader/deployments/kubernetes
namespace: reloader

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: reloader