From 219cf830dd29668ab333a7b156895f5f9e7f52f2 Mon Sep 17 00:00:00 2001
From: Johannes Mey <johannes.mey@tu-dresden.de>
Date: Fri, 17 Dec 2021 10:19:11 +0100
Subject: [PATCH] make colors more distinguishable in virtual scene

---
 config/config_scene_virtual-table.json | 26 +++++++++++++-------------
 config/config_scene_virtual-table.yaml | 22 +++++++++++-----------
 2 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/config/config_scene_virtual-table.json b/config/config_scene_virtual-table.json
index 71aaf35..1025e77 100644
--- a/config/config_scene_virtual-table.json
+++ b/config/config_scene_virtual-table.json
@@ -36,7 +36,7 @@
         "w": 1
       },
       "color": {
-        "b": 1
+        "b": 0.5
       }
     },
     {
@@ -56,7 +56,7 @@
         "w": 1
       },
       "color": {
-        "g": 1
+        "g": 0.5
       }
     },
     {
@@ -76,7 +76,7 @@
         "w": 1
       },
       "color": {
-        "r": 1
+        "r": 0.5
       }
     },
     {
@@ -96,7 +96,7 @@
         "w": 1
       },
       "color": {
-        "b": 0.8
+        "b": 0.5
       }
     },
     {
@@ -116,7 +116,7 @@
         "w": 1
       },
       "color": {
-        "g": 0.8
+        "g": 0.5
       }
     },
     {
@@ -136,7 +136,7 @@
         "w": 1
       },
       "color": {
-        "r": 0.8
+        "r": 0.5
       }
     },
     {
@@ -156,8 +156,8 @@
         "w": 1
       },
       "color": {
-        "r": 0.8,
-        "g": 0.8
+        "r": 0.5,
+        "g": 0.5
       }
     },
     {
@@ -177,7 +177,7 @@
         "w": 1
       },
       "color": {
-        "b": 0.8
+        "b": 0.5
       }
     },
     {
@@ -197,7 +197,7 @@
         "w": 1
       },
       "color": {
-        "g": 0.8
+        "g": 0.5
       }
     },
     {
@@ -217,7 +217,7 @@
         "w": 1
       },
       "color": {
-        "r": 0.8
+        "r": 0.5
       }
     },
     {
@@ -237,8 +237,8 @@
         "w": 1
       },
       "color": {
-        "r": 0.8,
-        "g": 0.8
+        "r": 0.5,
+        "g": 0.5
       }
     },
     {
diff --git a/config/config_scene_virtual-table.yaml b/config/config_scene_virtual-table.yaml
index d5db79d..642d9e2 100644
--- a/config/config_scene_virtual-table.yaml
+++ b/config/config_scene_virtual-table.yaml
@@ -7,19 +7,19 @@
   { 'id': 'table', 'pos': { 'z': 0.25 },'size': { 'length': 1,'width': 2,'height': .5 },'orientation': { 'w': 1 },'color': { 'r': 0.3,'g': 0.3,'b': 0.3 } },
 
   # idea: all elements are sorted by name
-  { 'id': 'binBlue', 'type': 'BIN','pos': { 'x': -0.35,'y': -0.60,'z': 0.65 },'size': { 'length': 0.20,'width': 0.4,'height': 0.3 },'orientation': { 'w': 1 },'color': { 'b': 1 } },
-  { 'id': 'binGreen',  'type': 'BIN','pos': { 'x': -0.35,'y': 0,'z': 0.65 },'size': { 'length': 0.20,'width': 0.4,'height': 0.3 },'orientation': { 'w': 1 },'color': { 'g': 1 } },
-  { 'id': 'binRed','type': 'BIN','pos': { 'x': -0.35,'y': 0.60,'z': 0.65 },'size': { 'length': 0.20,'width': 0.4,'height': 0.3 },'orientation': { 'w': 1 },'color': { 'r': 1 } },
+  { 'id': 'binBlue', 'type': 'BIN','pos': { 'x': -0.35,'y': -0.60,'z': 0.65 },'size': { 'length': 0.20,'width': 0.4,'height': 0.3 },'orientation': { 'w': 1 },'color': { 'b': 0.5 } },
+  { 'id': 'binGreen',  'type': 'BIN','pos': { 'x': -0.35,'y': 0,'z': 0.65 },'size': { 'length': 0.20,'width': 0.4,'height': 0.3 },'orientation': { 'w': 1 },'color': { 'g': 0.5 } },
+  { 'id': 'binRed','type': 'BIN','pos': { 'x': -0.35,'y': 0.60,'z': 0.65 },'size': { 'length': 0.20,'width': 0.4,'height': 0.3 },'orientation': { 'w': 1 },'color': { 'r': 0.5 } },
 
-  { 'id': 'bigBlue',  'type': 'BOX','pos': { 'x': 0.2,'y': -0.300000,'z': 0.58 },'size': { 'length': .1, 'width': .16,'height': 0.16 },'orientation': { 'w': 1 },'color': { b: 0.8 } },
-  { 'id': 'bigGreen', 'type': 'BOX','pos': { 'x': 0.2,'y': -0.100000,'z': 0.58 },'size': { 'length': .1, 'width': .16,'height': 0.16 },'orientation': { 'w': 1 },'color': { g: 0.8 } },
-  { 'id': 'bigRed',   'type': 'BOX','pos': { 'x': 0.2,'y': 0.100000, :q'z': 0.58 },'size': { 'length': .1, 'width': .16,'height': 0.16 },'orientation': { 'w': 1 },'color': { r: 0.8 } },
-  { 'id': 'bigYellow','type': 'BOX','pos': { 'x': 0.2,'y': 0.300000, :q'z': 0.58 },'size': { 'length': .1, 'width': .16,'height': 0.16 },'orientation': { 'w': 1 },'color': { r: 0.8, 'g': 0.8 } },
+  { 'id': 'bigBlue',  'type': 'BOX','pos': { 'x': 0.2,'y': -0.300000,'z': 0.58 },'size': { 'length': .1, 'width': .16,'height': 0.16 },'orientation': { 'w': 1 },'color': { 'b': 0.5 } },
+  { 'id': 'bigGreen', 'type': 'BOX','pos': { 'x': 0.2,'y': -0.100000,'z': 0.58 },'size': { 'length': .1, 'width': .16,'height': 0.16 },'orientation': { 'w': 1 },'color': { 'g': 0.5 } },
+  { 'id': 'bigRed',   'type': 'BOX','pos': { 'x': 0.2,'y': 0.100000, 'z': 0.58 },'size': { 'length': .1, 'width': .16,'height': 0.16 },'orientation': { 'w': 1 },'color': { 'r': 0.5 } },
+  { 'id': 'bigYellow','type': 'BOX','pos': { 'x': 0.2,'y': 0.300000, 'z': 0.58 },'size': { 'length': .1, 'width': .16,'height': 0.16 },'orientation': { 'w': 1 },'color': { 'r': 0.5, 'g': 0.5 } },
 
-  { 'id': 'smallBlue',  'type': 'BOX','pos': { 'x': 0.4,'y': -0.200000,'z': 0.54 },'size': { 'length': .1, 'width': .08,'height': 0.08 },'orientation': { 'w': 1 },'color': { b: 0.8 } },
-  { 'id': 'smallGreen', 'type': 'BOX','pos': { 'x': 0.4,'y': 0.000000, 'z': 0.54 },'size': { 'length': .1, 'width': .08,'height': 0.08 },'orientation': { 'w': 1 },'color': { g: 0.8 } },
-  { 'id': 'smallRed',   'type': 'BOX','pos': { 'x': 0.4,'y': 0.200000, 'z': 0.54 },'size': { 'length': .1, 'width': .08,'height': 0.08 },'orientation': { 'w': 1 },'color': { r: 0.8 } },
-  { 'id': 'smallYellow','type': 'BOX','pos': { 'x': 0.4,'y': 0.400000, 'z': 0.54 },'size': { 'length': .1, 'width': .08,'height': 0.08 },'orientation': { 'w': 1 },'color': { r: 0.8, 'g': 0.8 } },
+  { 'id': 'smallBlue',  'type': 'BOX','pos': { 'x': 0.4,'y': -0.200000,'z': 0.54 },'size': { 'length': .1, 'width': .08,'height': 0.08 },'orientation': { 'w': 1 },'color': { 'b': 0.5 } },
+  { 'id': 'smallGreen', 'type': 'BOX','pos': { 'x': 0.4,'y': 0.000000, 'z': 0.54 },'size': { 'length': .1, 'width': .08,'height': 0.08 },'orientation': { 'w': 1 },'color': { 'g': 0.5 } },
+  { 'id': 'smallRed',   'type': 'BOX','pos': { 'x': 0.4,'y': 0.200000, 'z': 0.54 },'size': { 'length': .1, 'width': .08,'height': 0.08 },'orientation': { 'w': 1 },'color': { 'r': 0.5 } },
+  { 'id': 'smallYellow','type': 'BOX','pos': { 'x': 0.4,'y': 0.400000, 'z': 0.54 },'size': { 'length': .1, 'width': .08,'height': 0.08 },'orientation': { 'w': 1 },'color': { 'r': 0.5, 'g': 0.5 } },
 
   { 'id': 'arm','type': 'ARM','pos': { },'size': { },'orientation': { 'w': 1 },'color': { } }
 ] }
-- 
GitLab