race 2024-01

This commit is contained in:
Cyrille Nofficial 2024-01-26 12:25:36 +01:00
parent 9335b69c74
commit c3ed6e6a9d
5 changed files with 37 additions and 9 deletions

View File

@ -110,6 +110,8 @@ spec:
- "--objects-threshold=$(THRESHOLD_OBJECTS)" - "--objects-threshold=$(THRESHOLD_OBJECTS)"
- "--camera-fps=$(CAMERA_FPS)" - "--camera-fps=$(CAMERA_FPS)"
- "--log=info" - "--log=info"
- "--camera-tuning-exposition=8300us"
#- "--camera-tuning-exposition=500us"
securityContext: securityContext:
runAsUser: 0 runAsUser: 0
privileged: true privileged: true
@ -167,6 +169,8 @@ spec:
name: robocar-camera name: robocar-camera
- name: MQTT_QOS - name: MQTT_QOS
value: "0" value: "0"
#- name: DEPTHAI_LEVEL
# value: debug
- name: TZ - name: TZ
value: "Europe/Paris" value: "Europe/Paris"
hostNetwork: true hostNetwork: true

View File

@ -17,4 +17,4 @@ images:
newTag: v0.6.4 newTag: v0.6.4
- name: git.cyrilix.bzh/robocars/robocar-oak-camera - name: git.cyrilix.bzh/robocars/robocar-oak-camera
newTag: v0.4.0 newTag: v0.5.0

View File

@ -84,6 +84,10 @@ data:
#THROTTLE_MIN: "0.11" #THROTTLE_MIN: "0.11"
#THROTTLE_MAX: "0.15" #THROTTLE_MAX: "0.15"
# Throttle acceleration boost
#############################
THROTTLE_ACCELERATOR_FACTOR: "1.2"
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
@ -160,9 +164,9 @@ data:
CAMERA_WIDTH: "160" CAMERA_WIDTH: "160"
CAMERA_HEIGHT: "120" CAMERA_HEIGHT: "120"
CAMERA_FPS: "40" CAMERA_FPS: "35"
MQTT_CAMERA_PUB_FREQUENCY: "40" MQTT_CAMERA_PUB_FREQUENCY: "35"
--- ---
apiVersion: v1 apiVersion: v1
@ -229,6 +233,18 @@ metadata:
name: steering name: steering
data: data:
grid.json: | grid.json: |
{
"steering_steps": [ -1, -0.66, -0.33, 0, 0.33, 0.66, 1],
"distance_steps": [ 0, 0.3, 0.4, 0.5, 0.8, 1],
"data": [
[ 0, 0, 0, 0, 0, 0],
[ 0, 0, 0, 0, 0, 0],
[ 0, 0.5, 0.75, -0.75, 0.5, 0],
[ 0.5, 0.75, 1, -1, -0.75, 0.5],
[ 0.75, 1, 1, -1, -1, -0.75]
]
}
grid2.json: |
{ {
"steering_steps": [ -1, -0.66, -0.33, 0, 0.33, 0.66, 1], "steering_steps": [ -1, -0.66, -0.33, 0, 0.33, 0.66, 1],
"distance_steps": [ 0, 0.3, 0.4, 0.5, 0.8, 1], "distance_steps": [ 0, 0.3, 0.4, 0.5, 0.8, 1],
@ -291,12 +307,14 @@ data:
"data": [ -0.26, -0.4, -0.7, -0.8, -1.0 ] "data": [ -0.26, -0.4, -0.7, -0.8, -1.0 ]
} }
speed_custom_steering.json: | # speed_custom
custom_steering.json: |
{ {
"steering_values": [0.0, 0.20, 0.50, 0.70], "steering_values": [0.0, 0.20, 0.50, 0.70],
"throttle_steps": [0.17, 0.16, 0.15, 0.13] "throttle_steps": [0.17, 0.16, 0.15, 0.13]
} }
# good_custom_steering
good_custom_steering.json: | good_custom_steering.json: |
{ {
"steering_values": [0.0, 0.20, 0.50, 0.70], "steering_values": [0.0, 0.20, 0.50, 0.70],
@ -309,7 +327,7 @@ data:
"throttle_steps": [0.16, 0.15, 0.14, 0.12] "throttle_steps": [0.16, 0.15, 0.14, 0.12]
} }
custom_steering.json: | very_speed_custom_steering.json: |
{ {
"steering_values": [0.0, 0.20, 0.50, 0.70], "steering_values": [0.0, 0.20, 0.50, 0.70],
"throttle_steps": [0.21, 0.17, 0.15, 0.12] "throttle_steps": [0.21, 0.17, 0.15, 0.12]

View File

@ -25,8 +25,8 @@ spec:
- "-mqtt-retain=false" - "-mqtt-retain=false"
- "--image-width=$(IMAGE_WIDTH)" - "--image-width=$(IMAGE_WIDTH)"
- "--image-height=$(IMAGE_HEIGHT)" - "--image-height=$(IMAGE_HEIGHT)"
- "--enable-objects-correction=false" - "--enable-objects-correction=true"
- "--enable-objects-correction-user=false" - "--enable-objects-correction-user=true"
- "--grid-map-config=/etc/robocar/grid.json" - "--grid-map-config=/etc/robocar/grid.json"
- "--objects-move-factors-config=/etc/robocar/omf.json" - "--objects-move-factors-config=/etc/robocar/omf.json"
- "--delta-middle=0.1" - "--delta-middle=0.1"
@ -127,6 +127,7 @@ spec:
- "--brake-configuration=/etc/robocar/brake.json" - "--brake-configuration=/etc/robocar/brake.json"
- "--enable-custom-steering-processor=true" - "--enable-custom-steering-processor=true"
- "--custom-steering-processor-config=/etc/robocar/custom_steering.json" - "--custom-steering-processor-config=/etc/robocar/custom_steering.json"
- "--accelerator-factor=$(THROTTLE_ACCELERATOR_FACTOR)"
- "--log=info" - "--log=info"
securityContext: securityContext:
runAsUser: 1234 runAsUser: 1234
@ -194,6 +195,11 @@ spec:
configMapKeyRef: configMapKeyRef:
key: THROTTLE_MAX key: THROTTLE_MAX
name: robocar-throttle name: robocar-throttle
- name: THROTTLE_ACCELERATOR_FACTOR
valueFrom:
configMapKeyRef:
name: robocar-throttle
key: THROTTLE_ACCELERATOR_FACTOR
- name: MQTT_QOS - name: MQTT_QOS
value: "0" value: "0"
- name: TZ - name: TZ

View File

@ -11,7 +11,7 @@ resources:
images: images:
- name: docker.io/cyrilix/robocar-throttle - name: docker.io/cyrilix/robocar-throttle
newTag: v0.8.0 newTag: v0.9.0
- name: docker.io/cyrilix/robocar-record - name: docker.io/cyrilix/robocar-record
newTag: v0.6.0 newTag: v0.6.0
@ -20,7 +20,7 @@ images:
newTag: v0.3.0 newTag: v0.3.0
- name: docker.io/cyrilix/robocar-steering - name: docker.io/cyrilix/robocar-steering
newTag: v0.6.0-4-gf97c9cf newTag: v0.7.1
- name: docker.io/cyrilix/robocar-road - name: docker.io/cyrilix/robocar-road
newTag: v0.2.0 newTag: v0.2.0