From 9b8f8eeabfc3a8387228d155ee06ea497c0bf523 Mon Sep 17 00:00:00 2001 From: Arthur Golubtsov Date: Tue, 9 Jun 2020 21:37:13 +0300 Subject: [PATCH] builder: Update clover configuration --- builder/clever-config/launch/clever.launch | 73 ------------- .../clever-config/launch/main_camera.launch | 38 ------- builder/clever-config/map/animation_map.txt | 100 ------------------ .../camera_info/calibration.yaml | 22 ++-- .../launch/aruco.launch | 11 +- builder/clover-config/launch/led.launch | 38 +++++++ .../clover-config/launch/main_camera.launch | 37 +++++++ builder/clover-config/map/animation_map.txt | 5 + 8 files changed, 98 insertions(+), 226 deletions(-) delete mode 100644 builder/clever-config/launch/clever.launch delete mode 100644 builder/clever-config/launch/main_camera.launch delete mode 100644 builder/clever-config/map/animation_map.txt rename builder/{clever-config => clover-config}/camera_info/calibration.yaml (71%) rename builder/{clever-config => clover-config}/launch/aruco.launch (81%) create mode 100644 builder/clover-config/launch/led.launch create mode 100644 builder/clover-config/launch/main_camera.launch create mode 100644 builder/clover-config/map/animation_map.txt diff --git a/builder/clever-config/launch/clever.launch b/builder/clever-config/launch/clever.launch deleted file mode 100644 index 97ad8de..0000000 --- a/builder/clever-config/launch/clever.launch +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/builder/clever-config/launch/main_camera.launch b/builder/clever-config/launch/main_camera.launch deleted file mode 100644 index 76ab4bd..0000000 --- a/builder/clever-config/launch/main_camera.launch +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/builder/clever-config/map/animation_map.txt b/builder/clever-config/map/animation_map.txt deleted file mode 100644 index dfe273d..0000000 --- a/builder/clever-config/map/animation_map.txt +++ /dev/null @@ -1,100 +0,0 @@ -0 0.33 0.0 9.0 0 0 0 0 -1 0.33 1.0 9.0 0 0 0 0 -2 0.33 2.0 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0.0 0 0 0 0 -92 0.33 2.0 0.0 0 0 0 0 -93 0.33 3.0 0.0 0 0 0 0 -94 0.33 4.0 0.0 0 0 0 0 -95 0.33 5.0 0.0 0 0 0 0 -96 0.33 6.0 0.0 0 0 0 0 -97 0.33 7.0 0.0 0 0 0 0 -98 0.33 8.0 0.0 0 0 0 0 -99 0.33 9.0 0.0 0 0 0 0 diff --git a/builder/clever-config/camera_info/calibration.yaml b/builder/clover-config/camera_info/calibration.yaml similarity index 71% rename from builder/clever-config/camera_info/calibration.yaml rename to builder/clover-config/camera_info/calibration.yaml index 76fcd8c..4d22e59 100644 --- a/builder/clever-config/camera_info/calibration.yaml +++ b/builder/clover-config/camera_info/calibration.yaml @@ -1,17 +1,17 @@ -image_width: 320 -image_height: 240 +image_width: 640 +image_height: 480 distortion_model: plumb_bob -camera_name: raspicam +camera_name: main_camera_optical camera_matrix: rows: 3 cols: 3 data: - - 166.23942373073172 + - 332.47884746146343 - 0. - - 162.19011246829268 + - 320.0 - 0. - - 166.5880923974026 - - 109.82227735714285 + - 333.1761847948052 + - 240.0 - 0. - 0. - 1. @@ -31,13 +31,13 @@ projection_matrix: rows: 3 cols: 4 data: - - 166.23942373073172 + - 332.47884746146343 - 0. - - 162.19011246829268 + - 324.38022493658536 - 0. - 0. - - 166.5880923974026 - - 109.82227735714285 + - 333.1761847948052 + - 219.6445547142857 - 0. - 0. - 0. diff --git a/builder/clever-config/launch/aruco.launch b/builder/clover-config/launch/aruco.launch similarity index 81% rename from builder/clever-config/launch/aruco.launch rename to builder/clover-config/launch/aruco.launch index d1c6e05..6fde1bc 100644 --- a/builder/clever-config/launch/aruco.launch +++ b/builder/clover-config/launch/aruco.launch @@ -1,9 +1,9 @@ - - + + - + @@ -14,6 +14,9 @@ + + + @@ -31,7 +34,7 @@ - + diff --git a/builder/clover-config/launch/led.launch b/builder/clover-config/launch/led.launch new file mode 100644 index 0000000..17fc859 --- /dev/null +++ b/builder/clover-config/launch/led.launch @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + startup: { r: 255, g: 255, b: 255 } + connected: { effect: rainbow } + disconnected: { effect: blink, r: 255, g: 50, b: 50 } + acro: { r: 245, g: 155, b: 0 } + stabilized: { r: 30, g: 180, b: 50 } + altctl: { r: 255, g: 255, b: 40 } + posctl: { r: 50, g: 100, b: 220 } + offboard: { r: 220, g: 20, b: 250 } + low_battery: { threshold: 3.7, effect: blink_fast, r: 255, g: 0, b: 0 } + error: { effect: flash, r: 255, g: 0, b: 0 } + + + diff --git a/builder/clover-config/launch/main_camera.launch b/builder/clover-config/launch/main_camera.launch new file mode 100644 index 0000000..0d54454 --- /dev/null +++ b/builder/clover-config/launch/main_camera.launch @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/builder/clover-config/map/animation_map.txt b/builder/clover-config/map/animation_map.txt new file mode 100644 index 0000000..970a77d --- /dev/null +++ b/builder/clover-config/map/animation_map.txt @@ -0,0 +1,5 @@ +# id length x y z rot_z rot_y rot_x +1 0.33 0 0 0 0 0 0 +2 0.33 1 0 0 0 0 0 +3 0.33 0 1 0 0 0 0 +4 0.33 1 1 0 0 0 0