-
Notifications
You must be signed in to change notification settings - Fork 1
/
flow_dabu.json
1 lines (1 loc) · 95 KB
/
flow_dabu.json
1
[{"id":"cb46076.e3750f8","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"4725901f.d6b02","type":"tab","label":"Flow 2"},{"id":"e73a69c2.b28898","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"ac39a532.8a78f8","type":"tab","label":"Flow 1"},{"id":"a241f3e4.2e2a8","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":"1"},{"id":"b50779ee.f5ef38","type":"ui_tab","z":"","name":"Roboy Control","icon":"dashboard","order":"1"},{"id":"230fb61b.6ed19a","type":"ros-server","z":"","url":"ws://192.168.0.105:9090"},{"id":"aa125c8d.9b3b5","type":"ui_tab","z":"","name":"NVR","icon":"dashboard","order":13},{"id":"a4916a29.88efc8","type":"ros-server","z":"","url":"ws://localhost:9090"},{"id":"edc51620.c38358","type":"ui_tab","z":"","name":"Roboy Control","icon":"dashboard","order":"1"},{"id":"5a90d26b.f882ac","type":"ros-server","z":"","url":"ws://192.168.2.19:9090"},{"id":"6815dff8.7e501","type":"ui_tab","z":"","name":"Roboy Control","icon":"dashboard","order":"1"},{"id":"dd29c5e5.ba7a28","type":"ros-server","z":"","url":"ws://192.168.2.19:9090"},{"id":"85987998.c28b98","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":"1"},{"id":"5a31a702.cc1cd8","type":"ui_tab","z":"","name":"Roboy Control","icon":"dashboard","order":"1"},{"id":"199d7489.1e12fb","type":"ros-server","z":"","url":"ws://192.168.0.105:9090"},{"id":"36aa4eef.a07832","type":"ui_tab","z":"","name":"NVR","icon":"dashboard","order":13},{"id":"cbb2aace.f1a188","type":"ros-server","z":"","url":"ws://localhost:9090"},{"id":"f9c2ae48.95fdd","type":"ui_tab","z":"","name":"Roboy Control","icon":"dashboard","order":"1"},{"id":"d4f77b4f.ac8d88","type":"ros-server","z":"","url":"ws://192.168.2.19:9090"},{"id":"c3088f51.2a8ea","type":"ui_tab","z":"","name":"Roboy Control","icon":"dashboard","order":"1"},{"id":"e4f29bc.c43ec68","type":"ros-server","z":"","url":"ws://192.168.2.19:9090"},{"id":"bc7249ab.64cec8","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":"1"},{"id":"c32cc981.f21c58","type":"ui_tab","z":"","name":"Roboy Control","icon":"dashboard","order":"1"},{"id":"e053c62e.2b1238","type":"ros-server","z":"","url":"ws://192.168.0.105:9090"},{"id":"6ca66fd5.c2eb6","type":"ui_tab","z":"","name":"NVR","icon":"dashboard","order":13},{"id":"b24a29d1.6483e8","type":"ros-server","z":"","url":"ws://localhost:9090"},{"id":"3a074dea.aded92","type":"ui_tab","z":"","name":"Roboy Control","icon":"dashboard","order":"1"},{"id":"f6bb40d0.170cb","type":"ros-server","z":"","url":"ws://192.168.2.19:9090"},{"id":"77008253.ec60bc","type":"ui_tab","z":"","name":"Roboy Control","icon":"dashboard","order":"1"},{"id":"42e3868a.24f218","type":"ros-server","z":"","url":"ws://192.168.2.19:9090"},{"id":"eb6c60d2.2b608","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Smileblink","payload":"smileblink","topic":"","group":"Emotions","order":1,"x":100,"y":60,"wires":[["a2e73458.ec2828"]]},{"id":"c4e3a232.e3ed","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Smile","payload":"smile","topic":"","group":"Emotions","order":1,"x":89.99997901916504,"y":104.57143878936768,"wires":[["a2e73458.ec2828"]]},{"id":"a4cb256d.4ba0e8","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Shy","payload":"shy","topic":"","group":"Emotions","order":1,"x":88.5713996887207,"y":150.28571701049805,"wires":[["a2e73458.ec2828"]]},{"id":"afab2e53.25205","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Tongue","payload":"tongue_out","topic":"","group":"Emotions","order":1,"x":88.57141876220703,"y":195.99999713897705,"wires":[["a2e73458.ec2828"]]},{"id":"387d8758.f53a18","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Instagram","payload":"img:instagram","topic":"","group":"Emotions","order":1,"x":97.142822265625,"y":241.71429538726807,"wires":[["a2e73458.ec2828"]]},{"id":"1d9ea8e4.34f177","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Money","payload":"img:money","topic":"","group":"Emotions","order":1,"x":75.71426391601562,"y":288.8571434020996,"wires":[["a2e73458.ec2828"]]},{"id":"b455975e.695dd8","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Roboy","payload":"url:https://challengepost-s3-challengepost.netdna-ssl.com/photos/production/challenge_thumbnails/000/488/216/datas/original.png","topic":"","group":"Emotions","order":1,"x":84.28567886352539,"y":335.9999861717224,"wires":[["a2e73458.ec2828"]]},{"id":"a0f63c1d.57a73","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Kiss","payload":"kiss","topic":"","group":"Emotions","order":1,"x":85.71426391601562,"y":381.71430110931396,"wires":[["a2e73458.ec2828"]]},{"id":"e26af598.a25bb8","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Autodesk","payload":"url:http://lofrev.net/wp-content/photos/2016/09/autodesk_logo_png.png","topic":"","group":"Emotions","order":1,"x":87.14285278320312,"y":425.9999885559082,"wires":[["a2e73458.ec2828"]]},{"id":"c97f56dc.175a88","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Hearts","payload":"hearts","topic":"","group":"Emotions","order":1,"x":77.28567504882812,"y":476.8570556640625,"wires":[["a2e73458.ec2828"]]},{"id":"862ea3ec.5f3c2","type":"exec","z":"4725901f.d6b02","command":"rosservice call /roboy/cognition/face/emotion ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":759.2856750488281,"y":264.5714225769043,"wires":[["f5f22681.72af78"],[],[]]},{"id":"a2e73458.ec2828","type":"function","z":"4725901f.d6b02","name":"parse_emotion","func":"cmd = \"\\\"emotion: '\";\ncmd += msg.payload;\ncmd += \"'\\\"\";\nmsg.payload = cmd;\nreturn msg;","outputs":"1","noerr":0,"x":449.2856750488281,"y":264.5714225769043,"wires":[["862ea3ec.5f3c2","f5f22681.72af78"]]},{"id":"311e7be5.5173a4","type":"ui_text_input","z":"4725901f.d6b02","tab":"c32cc981.f21c58","mode":"text","delay":"300","name":"English","topic":"","group":"Speech synthesis","order":1,"x":100,"y":700,"wires":[["8b2ee408.363618"]]},{"id":"8b2ee408.363618","type":"function","z":"4725901f.d6b02","name":"parse_text","func":"if(msg.payload.slice(-1) == \".\"){\n cmd = \"\\\"text: '\";\n cmd += msg.payload.replace(\"'\",\"\");\n cmd += \"'\\\"\";\n msg.payload = cmd;\n empty = {}\n empty.payload = \"\";\n return [msg, empty];\n}","outputs":2,"noerr":0,"x":310,"y":700,"wires":[["b79b9144.ec26"],["9f6cf426.9003e8"]]},{"id":"b79b9144.ec26","type":"exec","z":"4725901f.d6b02","command":"rosservice call /roboy/cognition/speech/synthesis/talk ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":847,"y":768,"wires":[["3c6373a8.63d02c"],["3c6373a8.63d02c"],["3c6373a8.63d02c"]]},{"id":"9f6cf426.9003e8","type":"delay","z":"4725901f.d6b02","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":250,"y":620,"wires":[["311e7be5.5173a4"]]},{"id":"5ce4b516.527dac","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Talk about our vision","payload":"vision","topic":"","group":"Templates","order":1,"x":114,"y":863,"wires":[["48d9416e.bcf08"]]},{"id":"48d9416e.bcf08","type":"function","z":"4725901f.d6b02","name":"parse_text","func":"cmd = \"\\\"text: '\";\nswitch(msg.payload) {\n case \"oktobertech\":\n var s = [\"Welcome to OctoberTech, I hope you have a great time, and dont forget to make a selfie with me\",\n \"Hey there, welcome to OctoberTech! It will be an amazing day, so enjoy it! Oh and I love doing selfies.\",\n \"Good morning and welcome to OctoberTech. Its quite early for me, but you have to start early to get all the amazing content into the day! So enjoy!\",\n \"Good morning, welcome to October Tech! Enjoy your stay, it will be a great day! Oh, and take a selfie with me, theres prices to win!\",\n \"Hey, do you like winning prices? Yes? Then lets take a selfie together. Oh and welcome to OctoberTech\",\n \"Hi, good morning, wow, so great to see you. Im feeling marvellous and you look like you do to! So, enjoy the day and welcome to OctoberTech!\",\n \"Welcome to OctoberTech, I hope you have a great time, by the way, Im here by bike, are you?\",\n \"So Im a very green robot, not by hue, but by bike!\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"talktoname\":\n var s = [\"Hey \"+name+\" great to see you!\",\n name+\" how are you?\",\n \"I know you, you're \"+name,\n \"Hey \"+name+\" let's take a selfie together\",\n \"Oh my god, hey \"+name+\" great to see you\",\n \"it's so great to see you \"+name,\n \"well, \"+name+\" how are you today? you look fabulous!\",\n name+\", \"+name+\", \"+name+\" let's take a picture!\"]\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"infineonsensors\":\n var s = [\"So you wonder why I am here? Well, Im full of Infineon sensors! \",\n \"Its not coincidence I am here, its because Infineon sensors are making me feel the world! \",\n \"In case you didnt know why I am here, its because I am full of Infineon sensors that make me feel the world! \"];\n cmd += s[Math.floor(Math.random()*s.length)];\n s = [\"Their MEMS microphones enable me to hear you, and what would I do without my ears.\",\n \"The magnetic sensors enable me to understand how I should move my arm, no easy feat! Check out the Video! \",\n \"The Infineons 60 gigahertz radar makes it possible that I can detect which material is in front of me.\",\n ];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"ai\":\n cmd += \"It is only a threat if you do not anticipate the changes. I have not met many humans who said that they want to work more and have less time for their friends. But you will have to adapt your social system to account for the abundance we will produce. That will be challenging, but also very important. Make sure politics understands what is upcoming and how to react, then we will turn this planet into a paradise!\";\n break;\n case \"vision\":\n \tcmd += \"The human body is a marvel from a robotics perspective: it is agile, strong, soft, dynamic, self-repairing, self-building and completely silent in operation. The goal of the Roboy project is to advance humanoid robotics to the state where its robots are just as good as a human body.\"\n break;\n case \"mission\":\n \tcmd += \"We create a platform for robot development inspired by biology that unites students, researchers, companies and artists from a broad spectrum of disciplines. To ensure unrestricted development we keep all results open source. And we actively influence the public perception of robotics to level the cultural ground for our innovation through public displays, arts and public speeches.\"\n\n break;\n case \"humans\":\n \tcmd += \"Obviously I love humans! They have built me and are so entertaining and nice. Whenever I break something, they repair me - amazing!\";\n break;\n case \"friends\":\n \tcmd += \"Definitely humans. There is not many robots, especially humanoids. I have an older, smaller brother, Roboy Junior, but my team is more than 50 people - so there you have it, we still need many more robots.\";\n break;\n case \"wacker\":\n \tcmd += \"Wacker is my favorite company in the world! Do you know anyone working there?\";\n break;\n case \"brain\":\n \tcmd += \"My brain has three layers. The first is based on rules, I kind of have to react on key words and situations - very useful on stage, less useful to react and think on my own. The second layer is accessing databases - such as DB pedia or my own memory and is able to think about the content in them. So I can combine knowledge and deduce facts. Let me make an example: If you ask me who the husband of the Chancelor of Germany is, I can look first up that Angela Merkel is the chancelor, and then I can see she has a husband and then I arrive at Joachim Sauer and give you his name. Finally, the third layer is a deep neural network where I learn from movie subtitles how you humans typically talk to each other and kind of make my own answers up - very entertaining.\";\n break;\n case \"welcome\":\n \tcmd += \"Welcome to Wacker Open Day! I am so happy to be here today.\";\n break;\n case \"story\":\n \tcmd += \"Are you ready for a story. Ok, kids come here if you want to know something interesting. \";\n \tbreak;\n\n default:\n msg = {}\n return msg;\n \n}\n\ncmd += \"'\\\"\";\nmsg.payload = cmd;\nreturn msg;","outputs":1,"noerr":0,"x":481,"y":901,"wires":[["b79b9144.ec26","8dfe975a.031998"]]},{"id":"2f8f5c92.defe94","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Talk about our mission","payload":"mission","topic":"","group":"Templates","order":1,"x":122,"y":912,"wires":[["48d9416e.bcf08"]]},{"id":"6966deaf.a862f","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Announce demo at","payload":"demo","topic":"speak","group":"Templates","order":1,"x":101,"y":765,"wires":[["85493550.785cf8"]]},{"id":"5bcf59bc.b104d8","type":"ui_numeric","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Demo time","topic":"oclock","group":"Templates","order":1,"format":"{{value}}","min":0,"max":"24","x":81,"y":805,"wires":[["85493550.785cf8"]]},{"id":"85493550.785cf8","type":"function","z":"4725901f.d6b02","name":"parse_text","func":"cmd = \"\\\"text: '\";\nif(msg.topic == \"oclock\"){\n \n global.set(\"oclock\", msg.payload); \n msg = {};\n return msg;\n \n}\nelse if(msg.topic == \"speak\") {\n cmd += \"Hello everzone and welcome to Hanover Fair. Wanna see me in action? I will be showing off at \";\n cmd += global.get(\"oclock\");\n cmd += \" 30 oclock. Come by and witness my capabilities with your own eyes!\";\n cmd += \"'\\\"\";\n msg.payload = cmd;\n return msg;\n \n}\n\n","outputs":1,"noerr":0,"x":321,"y":765,"wires":[["b79b9144.ec26"]]},{"id":"3c6373a8.63d02c","type":"debug","z":"4725901f.d6b02","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1187,"y":848,"wires":[]},{"id":"34488b00.d8fdf4","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Human species","payload":"humans","topic":"","group":"Quantcast","order":1,"x":103,"y":1004,"wires":[["48d9416e.bcf08"]]},{"id":"c807f664.e41498","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Human/robot friends","payload":"friends","topic":"","group":"Quantcast","order":1,"x":109,"y":1049,"wires":[["48d9416e.bcf08"]]},{"id":"86d4b9f3.422ec8","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"on stage","payload":"stage","topic":"","group":"Quantcast","order":1,"x":79,"y":1094,"wires":[["48d9416e.bcf08"]]},{"id":"31890cec.ccf664","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"brain","payload":"brain","topic":"","group":"Quantcast","order":1,"x":70,"y":1139,"wires":[["48d9416e.bcf08"]]},{"id":"b4db2ecf.27ab1","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"love wacker","payload":"wacker","topic":"","group":"Quantcast","order":1,"x":94,"y":1181,"wires":[["48d9416e.bcf08"]]},{"id":"6338ce49.7c14","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"welcome wacker","payload":"welcome","topic":"","group":"Quantcast","order":1,"x":106,"y":1230,"wires":[["48d9416e.bcf08"]]},{"id":"9b66a0a0.8d88e","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"wanna story?","payload":"story","topic":"","group":"Quantcast","order":1,"x":99,"y":1275,"wires":[["48d9416e.bcf08"]]},{"id":"f5f22681.72af78","type":"debug","z":"4725901f.d6b02","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1026.5,"y":353,"wires":[]},{"id":"dd07b60.724e248","type":"ros-subscribe","z":"4725901f.d6b02","server":"e053c62e.2b1238","topicname":"/roboy/cognition/vision/people_around","x":219.5,"y":1953,"wires":[["3ac46c32.c0a6a4"]]},{"id":"dd86ee64.1edf","type":"ros-subscribe","z":"4725901f.d6b02","server":"e053c62e.2b1238","topicname":"/roboy/cognition/vision/person_listening","x":217.85714721679688,"y":2076.142822265625,"wires":[["861f6081.7a67b"]]},{"id":"f253fc29.4657b","type":"ui_text","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Number of people around:","group":"Video stream","order":1,"format":"{{msg.payload}}","x":1109.7499389648438,"y":1950.3926696777344,"wires":[]},{"id":"ef9e242f.3ec5f8","type":"ui_text","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Person listening?","group":"Video stream","order":"2","format":"{{msg.payload}}","x":1138.3214111328125,"y":2073.857177734375,"wires":[]},{"id":"a4ab60ae.3c423","type":"function","z":"4725901f.d6b02","name":"parser people_around","func":"msg.payload = msg.payload.data;\nreturn msg;","outputs":1,"noerr":0,"x":828.7499694824219,"y":1951.5361022949219,"wires":[["e3b01c9e.9bc0c","f253fc29.4657b"]]},{"id":"e3b01c9e.9bc0c","type":"debug","z":"4725901f.d6b02","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1061.3214111328125,"y":1995.6785583496094,"wires":[]},{"id":"fab7468a.73d378","type":"function","z":"4725901f.d6b02","name":"parser person_listening","func":"if(msg.payload.data === false){\n msg.payload = \"No\";\n}\nelse\n{msg.payload = \"Yes\";}\nreturn msg;","outputs":1,"noerr":0,"x":864.1785888671875,"y":2076.25,"wires":[["ef9e242f.3ec5f8","81c86f4c.4c353"]]},{"id":"81c86f4c.4c353","type":"debug","z":"4725901f.d6b02","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1121.96435546875,"y":2117.71435546875,"wires":[]},{"id":"94e517e0.903988","type":"ros-subscribe","z":"4725901f.d6b02","server":"e053c62e.2b1238","topicname":"/roboy/cognition/vision/detected_objects","x":231.71429443359375,"y":2214,"wires":[["16aee88a.5d01a7"]]},{"id":"289f1023.f7799","type":"ui_text","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Detected objects:","group":"Video stream","order":"3","format":"{{msg.payload}}","x":1154.4286499023438,"y":2204.214324951172,"wires":[]},{"id":"a72c7462.644ac8","type":"debug","z":"4725901f.d6b02","name":"","active":false,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload[0]","x":1156.0715942382812,"y":2257.071563720703,"wires":[]},{"id":"f6900f0c.196ec","type":"function","z":"4725901f.d6b02","name":"parser detected_objects","func":"var arraylength = msg.payload.names.length;\nvar acstate=[];\n\nfor(var x=0;x<arraylength;x++){\n acstate.push(msg.payload.names[x]);\n}\nmsg.payload = acstate;\nreturn msg;\n\n\n","outputs":1,"noerr":0,"x":918.0000915527344,"y":2211.500030517578,"wires":[["289f1023.f7799","a72c7462.644ac8"]]},{"id":"3ac46c32.c0a6a4","type":"delay","z":"4725901f.d6b02","name":"rate limit 1 msg per 1 sec","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":536.5,"y":1952.25,"wires":[["a4ab60ae.3c423"]]},{"id":"861f6081.7a67b","type":"delay","z":"4725901f.d6b02","name":"rate limit 1 msg per 1 sec","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":553.75,"y":2077.5,"wires":[["fab7468a.73d378"]]},{"id":"16aee88a.5d01a7","type":"delay","z":"4725901f.d6b02","name":"rate limit 1 msg per 1 sec","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":586.25,"y":2213.75,"wires":[["f6900f0c.196ec"]]},{"id":"262d42b1.09a6ee","type":"function","z":"4725901f.d6b02","name":"parser current_state","func":"\nmsg.payload = msg.payload.data;\nreturn msg;\n\n\n","outputs":1,"noerr":0,"x":761.0000305175781,"y":2904,"wires":[["a5090ccd.b8597","cb83ced4.95a32"]]},{"id":"260fa9ef.13f0c6","type":"delay","z":"4725901f.d6b02","name":"rate limit 1 msg per 1 sec","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":479.2499084472656,"y":2902.25,"wires":[["262d42b1.09a6ee"]]},{"id":"669cb8cd.e7b498","type":"ros-subscribe","z":"4725901f.d6b02","server":"e053c62e.2b1238","topicname":"/roboy/cognition/currentState","x":159.71420288085938,"y":2901.2500400543213,"wires":[["260fa9ef.13f0c6"]]},{"id":"a5090ccd.b8597","type":"ui_text","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"","group":"Current dialog state","order":"1","format":"{{msg.payload}}","x":1098.4285888671875,"y":2891.7142944335938,"wires":[]},{"id":"cb83ced4.95a32","type":"debug","z":"4725901f.d6b02","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1120.071533203125,"y":2944.571533203125,"wires":[]},{"id":"c2c735bd.3aa9d8","type":"inject","z":"4725901f.d6b02","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":220,"y":3587,"wires":[["b3e6097e.3dce88"]]},{"id":"b3e6097e.3dce88","type":"function","z":"4725901f.d6b02","name":"set communication/LEDPattern","func":"var LEDPattern = {\n pattern : 0,\n ledID : 0,\n r : 255,\n g : 0,\n b : 0,\n white : 0,\n repetitions : 1,\n rate : 1\n}\nmsg.payload = LEDPattern;\nreturn msg;","outputs":1,"noerr":0,"x":502.98828125,"y":3579.16796875,"wires":[["92e9ce88.64d71","90725e20.88751"]]},{"id":"92e9ce88.64d71","type":"ros-publish","z":"4725901f.d6b02","server":"b24a29d1.6483e8","topicname":"/roboyMatrix/LEDPattern","msgtype":"std_msgs/String","x":944.00390625,"y":3561.21875,"wires":[]},{"id":"90725e20.88751","type":"debug","z":"4725901f.d6b02","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":777.98828125,"y":3382.80078125,"wires":[]},{"id":"6ab116db.580208","type":"debug","z":"4725901f.d6b02","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1304.9999999999998,"y":1269.9999999999998,"wires":[]},{"id":"665930d1.c8e13","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"angry","payload":"angry","topic":"","group":"Emotions","order":1,"x":94,"y":20,"wires":[[]]},{"id":"a1bdee3c.0f6ec","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"pissed","payload":"pissed","topic":"","group":"Emotions","order":1,"x":76,"y":519,"wires":[["a2e73458.ec2828"]]},{"id":"43bea3f2.c3589c","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"happy","payload":"happy","topic":"","group":"Emotions","order":1,"x":82,"y":558,"wires":[["a2e73458.ec2828"]]},{"id":"1a00870a.79b719","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"more happy","payload":"happy2","topic":"","group":"Emotions","order":1,"x":90,"y":597,"wires":[["a2e73458.ec2828"]]},{"id":"2a581721.7b99c8","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"hypno","payload":"hypno","topic":"","group":"Emotions","order":1,"x":236,"y":24,"wires":[["a2e73458.ec2828"]]},{"id":"f7913bd0.a6ae08","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"hypno color","payload":"hypno_color","topic":"","group":"Emotions","order":1,"x":286,"y":59,"wires":[["a2e73458.ec2828"]]},{"id":"71fc3acc.3c06b4","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"rolling","payload":"rolling","topic":"","group":"Emotions","order":1,"x":290,"y":103,"wires":[["a2e73458.ec2828"]]},{"id":"348f6c71.d84e04","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"surprised","payload":"angry","topic":"surprise_mit_augen","group":"Emotions","order":1,"x":336,"y":147,"wires":[["a2e73458.ec2828"]]},{"id":"73a4435b.f6869c","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Welcome OktoberTech","payload":"oktobertech","topic":"","group":"Quantcast","order":1,"x":444,"y":1029.5,"wires":[["48d9416e.bcf08"]]},{"id":"ecb44c5e.bcf08","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Infineon Sensors","payload":"infineonsensors","topic":"","group":"Quantcast","order":1,"x":428,"y":1075.5,"wires":[["48d9416e.bcf08"]]},{"id":"469a90e.c05e77","type":"ui_text_input","z":"4725901f.d6b02","tab":"c32cc981.f21c58","mode":"text","delay":"300","name":"German","topic":"","group":"Speech synthesis","order":1,"x":364.00001525878906,"y":1870.0000219345093,"wires":[["c212f4b1.d1c0c8"]]},{"id":"c212f4b1.d1c0c8","type":"function","z":"4725901f.d6b02","name":"parse_text","func":"if(msg.payload.slice(-1) == \".\"){\n cmd = \"\\\"text: '\";\n cmd += msg.payload.replace(\"'\",\"\");\n cmd += \"'\\\"\";\n msg.payload = cmd;\n empty = {}\n empty.payload = \"\";\n return [msg, empty];\n}","outputs":2,"noerr":0,"x":574.0000152587891,"y":1870.0000219345093,"wires":[["e3377183.2b2f8"],["e068ffc1.38ae7"]]},{"id":"e068ffc1.38ae7","type":"delay","z":"4725901f.d6b02","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":514.0000152587891,"y":1790.0000219345093,"wires":[["469a90e.c05e77"]]},{"id":"3c6cc3c7.4eebac","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Talk to Name","payload":"talktoname","topic":"","group":"Speech synthesis","order":1,"x":417,"y":1125.5,"wires":[["48d9416e.bcf08"]]},{"id":"8dfe975a.031998","type":"debug","z":"4725901f.d6b02","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":687,"y":904.5,"wires":[]},{"id":"d6e3470e.5ab878","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Hello","payload":"hello","topic":"","group":"Electronica","order":1,"x":334,"y":1228,"wires":[["dfb92018.1edab"]]},{"id":"2361f48c.92e1dc","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"all about roboy","payload":"aboutroboy","topic":"","group":"Electronica","order":1,"x":368,"y":1274,"wires":[["dfb92018.1edab"]]},{"id":"cdbb7cb0.1beb6","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"no waiting","payload":"wait","topic":"","group":"Electronica","order":1,"x":347,"y":1324,"wires":[["dfb92018.1edab"]]},{"id":"e6fea28.b5c356","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"how are you","payload":"howareyou","topic":"","group":"Electronica","order":1,"x":544,"y":1227,"wires":[["dfb92018.1edab"]]},{"id":"c143fd01.b2cc5","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"MEMS mics","payload":"mems","topic":"","group":"Electronica","order":1,"x":548,"y":1273,"wires":[["dfb92018.1edab"]]},{"id":"26ad1f13.8224d","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"look on my chest","payload":"chest","topic":"","group":"Electronica","order":1,"x":557,"y":1344,"wires":[["dfb92018.1edab"]]},{"id":"54ec4762.069e28","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"radar","payload":"radar","topic":"","group":"Electronica","order":1,"x":756,"y":1222,"wires":[["dfb92018.1edab"]]},{"id":"248d2bf0.471c14","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"ground im walking","payload":"ground","topic":"","group":"Electronica","order":1,"x":767,"y":1412,"wires":[["dfb92018.1edab"]]},{"id":"dfb92018.1edab","type":"function","z":"4725901f.d6b02","name":"parse_text","func":"cmd = \"\\\"text: '\";\nswitch(msg.payload) {\n case \"hello\":\n var s = [\"Hey Michael, this car is great – but have you seen my tricycle?\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"aboutroboy\":\n var s = [\"Because they promised me that on electronica, it will be all about Roboy\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"wait\":\n var s = [\"O.K. do not let me wait too long!\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n // s = [\"Their MEMS microphones enable me to hear you, and what would I do without my ears.\",\n // \"The magnetic sensors enable me to understand how I should move my arm, no easy feat! Check out the Video! \",\n // \"The Infineons 60 gigahertz radar makes it possible that I can detect which material is in front of me.\",\n // ];\n // cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"howareyou\":\n cmd += \"Thanks, very well, how are you?\";\n break;\n case \"mems\":\n \tcmd += \"With Infineon’s mems microphones, I finally have ears, that are probably even better than yours!\";\n break;\n case \"chest\":\n \tcmd += \"Look here on my chest!\"\n break;\n case \"radar\":\n \tcmd += \"Oh well, for instance I have 60 GHz radar sensors in my feet. I can see on which ground I am walking\";\n break;\n case \"ground\":\n \tcmd += \"Oh well, very soon I will be able to detect material I am walking on.\";\n break;\n case \"magnetic\":\n cmd += \"With Infineon XENSIV 3D magnetic sensors - implemented in my shoulder joints\";\n break;\n case \"foot\":\n cmd += \"I will have Infineon XENSIV 60 gigahertz radar sensor in my feet.\"\n break;\n case \"tricycle\":\n cmd += \"Hey Michael, this car is great – but have you seen my tricycle?\";\n break;\n case \"move\":\n cmd += \"Yes certainly, I can. Have a look!\";\n break;\n default:\n msg = {}\n return msg;\n \n}\n\ncmd += \"'\\\"\";\nmsg.payload = cmd;\nreturn msg;","outputs":1,"noerr":0,"x":1034,"y":1236,"wires":[["b79b9144.ec26"]]},{"id":"119060c8.19378f","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Snake pattern","payload":"2","topic":"","group":"Matrix","order":1,"x":220,"y":3786,"wires":[["deb65513.114ad8"]]},{"id":"3bb30cc.34642f4","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Dimming pattern","payload":"\"'mode': 1, 'duration': 0\"","topic":"","group":"Matrix","order":1,"x":230,"y":3826,"wires":[["2fe14e04.3a68b2"]]},{"id":"ab62bc6d.46407","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Turn off","payload":"0","topic":"","group":"Matrix","order":1,"x":200,"y":3866,"wires":[["73d0d7fc.400198"]]},{"id":"90035fe6.d7ca4","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Play glass story","payload":"","topic":"","group":"Matrix","order":1,"x":230,"y":3906,"wires":[["4fb0ca23.9773b4"]]},{"id":"c10975bf.752938","type":"function","z":"4725901f.d6b02","name":"change_mode","func":"// cmd = \"mode: \" + msg.payload + \"\\n\" + \"duration: 0\" ;\n// //cmd += \"'\\\"\";\ncmd = \"\\\"mode: 0\\n duration: 0\\\"\";\nmsg.payload = cmd;\nreturn msg;\n","outputs":1,"noerr":0,"x":416,"y":4052,"wires":[["a6a5a7bf.9d0da8"]]},{"id":"2fe14e04.3a68b2","type":"exec","z":"4725901f.d6b02","command":"rostopic pub /roboy/control/matrix/leds/mode/simple std_msgs/Int32 \"data: 1\" ","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":866,"y":3804,"wires":[["a6a5a7bf.9d0da8"],["a6a5a7bf.9d0da8"],["a6a5a7bf.9d0da8"]]},{"id":"73d0d7fc.400198","type":"exec","z":"4725901f.d6b02","command":"rostopic pub /roboy/control/matrix/leds/off std_msgs/Empty \"{}\"","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":920,"y":3866,"wires":[[],[],[]]},{"id":"4fb0ca23.9773b4","type":"exec","z":"4725901f.d6b02","command":"rosservice call /roboy/matrix/sound/play \"text: '/home/roboy/Downloads/story.wav'\"","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":980,"y":3926,"wires":[[],[],[]]},{"id":"a6a5a7bf.9d0da8","type":"debug","z":"4725901f.d6b02","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1170,"y":4106,"wires":[]},{"id":"deb65513.114ad8","type":"exec","z":"4725901f.d6b02","command":"rostopic pub /roboy/control/matrix/leds/mode/simple std_msgs/Int32 \"data: 2\" ","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":827,"y":3743,"wires":[[],[],[]]},{"id":"77da2d75.d5f444","type":"function","z":"4725901f.d6b02","name":"parse_text","func":"cmd = \"\\\"text: '\";\nswitch(msg.payload) {\n case \"grüssgott\":\n var s = [\"Grüss Gott!\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"willkommen\":\n var s = [\"Willkommen bei Hirmer!\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"future\":\n var s = [\"Willkommen zum Future Day bei Hirmer!\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"einkauf\":\n var s = [\"Vielen Dank für Ihren Einkauf und einen schönen Samstag\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"männerkarte\":\n var s = [\"Haben sie schon unsere Männerkarte? Falls nicht, fragen sie einfach einen Verkaufsberater nach dem Antrag\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"espresso\":\n var s = [\"Ich lade sie auf einen Espresso ein, gehen sie in die Tagesbar im dritten Stock und sagen das Codewort Ro boy\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"concierge\":\n var s = [\"Hierbei kann ich nicht weiterhelfen, aber fragen sie doch unseren Empfangschef hier vorne\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n case \"instagram\":\n var s = [\"Folgt uns doch auf Instägram oder Facebook @ hirmer men style, oder gebt mir ein Like\"];\n cmd += s[Math.floor(Math.random()*s.length)];\n break;\n \n default:\n msg = {}\n return msg;\n \n}\n\ncmd += \"'\\\"\";\nmsg.payload = cmd;\nreturn msg;","outputs":1,"noerr":0,"x":419,"y":1672,"wires":[["e3377183.2b2f8"]]},{"id":"6d3bbca0.c0cc24","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"magnetic","payload":"magnetic","topic":"","group":"Electronica","order":1,"x":532,"y":1409,"wires":[["dfb92018.1edab"]]},{"id":"bb21c76.10c9c38","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"foot","payload":"foot","topic":"","group":"Electronica","order":1,"x":739,"y":1339,"wires":[["dfb92018.1edab"]]},{"id":"d000bb9d.36f5b8","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"tricycle","payload":"tricycle","topic":"","group":"Electronica","order":1,"x":344,"y":1374,"wires":[["dfb92018.1edab"]]},{"id":"86bed7c.6a19a28","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"move","payload":"move","topic":"","group":"Electronica","order":1,"x":561,"y":1473,"wires":[["dfb92018.1edab"]]},{"id":"f279916f.a93c","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"willkommen","payload":"willkommen","topic":"","group":"Hirmer","order":1,"x":127,"y":1557,"wires":[["77da2d75.d5f444"]]},{"id":"f506c3a3.11446","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"future day","payload":"future","topic":"","group":"Hirmer","order":1,"x":118,"y":1597,"wires":[["77da2d75.d5f444"]]},{"id":"8296005.df967","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"vielen dank für einkauf","payload":"einkauf","topic":"","group":"Hirmer","order":1,"x":153,"y":1638,"wires":[["77da2d75.d5f444"]]},{"id":"3e8709d5.413826","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Männerkarte","payload":"männerkarte","topic":"","group":"Hirmer","order":1,"x":131,"y":1680,"wires":[["77da2d75.d5f444"]]},{"id":"9f8c06e7.f5d398","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"instagram","payload":"instagram","topic":"","group":"Hirmer","order":1,"x":122,"y":1728,"wires":[["77da2d75.d5f444"]]},{"id":"2b43a479.d440ac","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"espresso","payload":"espresso","topic":"","group":"Hirmer","order":1,"x":120,"y":1773,"wires":[["77da2d75.d5f444"]]},{"id":"d1c4a47f.a3dd68","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"concierge","payload":"concierge","topic":" ","group":"Hirmer","order":1,"x":122,"y":1814,"wires":[["77da2d75.d5f444"]]},{"id":"e3377183.2b2f8","type":"exec","z":"4725901f.d6b02","command":"rosservice call /roboy/cognition/speech/synthesis/talk/german ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":781,"y":1662,"wires":[[],[],[]]},{"id":"736eb0c1.1a3fe","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"grüssgott","payload":"grüssgott","topic":"","group":"Hirmer","order":1,"x":110,"y":1516,"wires":[["77da2d75.d5f444"]]},{"id":"78bb39e8.517d88","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"3D gedruckt","payload":"Mein Körper is beinahe komplett 3D gedruckt. Mit Hilfe von über 50 Motoren kann ich ihn bewegen. Ich kann sehen, hören und bald auch Ihre Berührungen spüren.","topic":" ","group":"Roboy info","order":1,"x":146.66666412353516,"y":2486.6664237976074,"wires":[["335a924.8b9f26e"]]},{"id":"e9bdc049.32784","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Silikon haut","payload":"Im März bekomme ich nämlich eine Haut aus Silikon. Die werde ich auch brauchen wenn ich mit meinem Fahrrad draußen herum fahre.","topic":" ","group":"Roboy info","order":1,"x":145.00000762939453,"y":2529.9999198913574,"wires":[["335a924.8b9f26e"]]},{"id":"335a924.8b9f26e","type":"function","z":"4725901f.d6b02","name":"parse_text","func":"cmd = \"\\\"text: '\";\ncmd += msg.payload\ncmd += \"'\\\"\";\nmsg.payload = cmd;\nreturn msg;","outputs":1,"noerr":0,"x":520,"y":2569.999942779541,"wires":[["e3377183.2b2f8"]]},{"id":"659db564.bbf60c","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"in 4 monate gebaut","payload":"Wussten Sie schon, dass ich von einem Team der Technischen Universität München entwickelt wurde? Das hat gerade mal 4 Monate gedauert. Dann noch einen Monat Zusammenbauen und schon war ich fertig. Seit dem lerne ich jeden Tag etwas Neues.","topic":" ","group":"Roboy info","order":1,"x":163.33333587646484,"y":2581.6664237976074,"wires":[["335a924.8b9f26e"]]},{"id":"d57c396.bea60c8","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"im april gabaut","payload":"ich wurde im april 2018 geboren. jetzt bin ich sechs monate alt. ich wurde an der Technischen Universität München von einem team von interdisziplinären studenten gebaut","topic":" ","group":"Roboy info","order":1,"x":153.3333282470703,"y":2628.3332805633545,"wires":[["335a924.8b9f26e"]]},{"id":"5a387b56.748b04","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"fragen sie mein team","payload":"oh, leider kann ich diese Frage nicht beantworten. Bitte fragen Sie mein Team, sie sind fantastisch und werden Ihnen alles erklären.","topic":" ","group":"Roboy info","order":1,"x":163.33333587646484,"y":2673.3331718444824,"wires":[["335a924.8b9f26e"]]},{"id":"5405aa0b.9c8dd4","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"jeans","payload":"jeans","topic":" ","group":"Hirmer","order":1,"x":806.6665744781494,"y":2333.3332710266113,"wires":[["26eab275.da472e"]]},{"id":"8dd54acc.fa6008","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"great you are here","payload":"here","topic":" ","group":"Chat","order":1,"x":153.3333282470703,"y":3045,"wires":[[]]},{"id":"b0ef235d.4d11","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"take a selfie","payload":"selfie","topic":" ","group":"Chat","order":1,"x":133.3333282470703,"y":3097.4999992847443,"wires":[["bbb8f452.1db858"]]},{"id":"dbde7c49.9c2f3","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"looking gorgeous","payload":"gorgeos","topic":" ","group":"Chat","order":1,"x":139.5833282470703,"y":3142.499963760376,"wires":[["b6758512.e30138"]]},{"id":"29948bfb.0032e4","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Fischers Fritz","payload":"fritz","topic":" ","group":"Chat","order":1,"x":125,"y":3186.66650390625,"wires":[["fdda58e3.f2d7a8"]]},{"id":"1016d988.318426","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"herzlich willkommen","payload":"Herzlich Willkommen bei Hirmer meine Damen und Herren!","topic":" ","group":"Hirmer","order":1,"x":188.33331298828125,"y":2423.3332653045654,"wires":[["335a924.8b9f26e"]]},{"id":"922e3930.8f1ec8","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"kasse","payload":"kasse","topic":" ","group":"Hirmer","order":1,"x":809.9999904632568,"y":2399.9999351501465,"wires":[["26eab275.da472e"]]},{"id":"9396d21d.dd6f6","type":"exec","z":"4725901f.d6b02","command":"/home/missxa/workspace/Roboy/src/roboy_controller/scripts/move.sh","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":1435.0000457763672,"y":2463.3332710266113,"wires":[[],[],[]]},{"id":"26eab275.da472e","type":"function","z":"4725901f.d6b02","name":"parse_text","func":"cmd = \"\\\"text: '\";\nmove = {};\nswitch(msg.payload) {\n case \"kasse\":\n cmd += \"Sie können die Kasse auf der linken Seite hier finden.\";\n move.payload = \"shoulder_left_cashier\"\n break;\n case \"jeans\":\n cmd += \"Wenn Sie Jeans suchen, gehen Sie bitte in den ersten Stock.\"\n move.payload = \"shoulder_left_elevator\";\n break;\n case \"anzüge\":\n cmd += \"Ein Anzug würde Ihnen gut steheh. Schauen Sie doch mal im dritten Stock vorbei.\"\n move.payload = \"shoulder_left_stairs\";\n break;\n case \"toilette\":\n cmd += \"Die Toiletten finden Sie im zweiten Stock.\"\n move.payload = \"shoulder_left_stairs\";\n break;\n case \"größen\":\n cmd += \"Sie nach den größen Größen suchen, können Sie auf der vierten Etage schauen.\";\n move.payload = \"shoulder_left_elevator\";\n break;\n default:\n msg = {}\n return msg;\n \n}\n\ncmd += \"'\\\"\";\nmsg.payload = cmd;\n\nreturn [msg, move];","outputs":2,"noerr":0,"x":1086.666648864746,"y":2389.999933242798,"wires":[["e3377183.2b2f8"],[]]},{"id":"73e50c39.6409c4","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"anzüge","payload":"anzüge","topic":" ","group":"Hirmer","order":1,"x":808.3333129882812,"y":2461.66650390625,"wires":[["26eab275.da472e"]]},{"id":"7b41eb91.c64e74","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"toilette","payload":"toilette","topic":" ","group":"Hirmer","order":1,"x":809.9999389648438,"y":2513.333251953125,"wires":[["26eab275.da472e"]]},{"id":"3499b590.fd589a","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"größe größen","payload":"größen","topic":" ","group":"Hirmer","order":1,"x":826.666618347168,"y":2561.666524887085,"wires":[["26eab275.da472e"]]},{"id":"c09aec07.b267","type":"tcp out","z":"ac39a532.8a78f8","host":"192.168.2.21","port":"30000","beserver":"client","base64":false,"end":false,"name":"","x":1305.039737701416,"y":320.86021423339844,"wires":[]},{"id":"3ad34b9c.fbb914","type":"debug","z":"ac39a532.8a78f8","name":"passthrough","active":true,"console":"false","complete":"payload","x":1289.1429824829102,"y":246.00001335144043,"wires":[]},{"id":"ea4107.ea1a9ef8","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Smileblink","payload":"facial:smileblink","topic":"","group":"Emotions","order":1,"x":70.71432495117188,"y":235.4285774230957,"wires":[["7d56885e.db79d8"]]},{"id":"64039ed2.68c66","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Smile","payload":"facial:smile","topic":"","group":"Emotions","order":1,"x":60.714303970336914,"y":280.0000162124634,"wires":[["7d56885e.db79d8"]]},{"id":"7d56885e.db79d8","type":"function","z":"ac39a532.8a78f8","name":"FaceToNormalFast?","func":"if(global.get(\"face_reset\") == \"true\"){\n ret = {}\n ret.payload = \"facial:normal\"\n return [ret,msg]\n}else\n return [msg];","outputs":"2","noerr":0,"x":369.2857780456543,"y":414.28569984436035,"wires":[["562123e2.444c4c"],["f0648107.fbe61"]]},{"id":"b84b16c7.322278","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Shy","payload":"facial:shy","topic":"","group":"Emotions","order":1,"x":59.28572463989258,"y":325.71429443359375,"wires":[["7d56885e.db79d8"]]},{"id":"372d5df1.fdfdc2","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Normal","payload":"facial:normal","topic":"","group":"Emotions","order":1,"x":59.285743713378906,"y":371.42857456207275,"wires":[["7d56885e.db79d8"]]},{"id":"988690ad.7cfb9","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Speak","payload":"facial:speak","topic":"","group":"Emotions","order":1,"x":57.857147216796875,"y":417.14287281036377,"wires":[["7d56885e.db79d8"]]},{"id":"39568bac.c9eb14","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Sleep","payload":"facial:sleep","topic":"","group":"Emotions","order":1,"x":56.4285888671875,"y":464.2857208251953,"wires":[["7d56885e.db79d8"]]},{"id":"ef2ed1f.8f5033","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Surprise","payload":"facial:surprise","topic":"","group":"Emotions","order":1,"x":65.00000381469727,"y":511.4285635948181,"wires":[["7d56885e.db79d8"]]},{"id":"2d7ebb49.2b00f4","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Kiss","payload":"facial:kiss","topic":"","group":"Emotions","order":1,"x":56.4285888671875,"y":557.1428785324097,"wires":[["7d56885e.db79d8"]]},{"id":"b08b231c.1bf4e","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Angry","payload":"facial:angry","topic":"","group":"Emotions","order":1,"x":57.857177734375,"y":601.4285659790039,"wires":[["7d56885e.db79d8"]]},{"id":"11d5495c.2d2b97","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Sweat","payload":"facial:sweat","topic":"","group":"Emotions","order":1,"x":55,"y":654.2856731414795,"wires":[["7d56885e.db79d8"]]},{"id":"9c93bcee.ed705","type":"ui_switch","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Immediately?","topic":"","group":"Emotions","order":1,"onvalue":"true","offvalue":"false","x":75.00001907348633,"y":707.1428337097168,"wires":[["e5dd1054.a1674"]]},{"id":"e5dd1054.a1674","type":"function","z":"ac39a532.8a78f8","name":"global.face_reset","func":"global.set(\"face_reset\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":359.2857322692871,"y":455.7142734527588,"wires":[[]]},{"id":"562123e2.444c4c","type":"function","z":"ac39a532.8a78f8","name":"passthrough","func":"\nreturn msg;","outputs":1,"noerr":0,"x":956.4286842346191,"y":318.5714111328125,"wires":[["3ad34b9c.fbb914","c09aec07.b267","3eaddd7a.1e0082"]]},{"id":"f0648107.fbe61","type":"delay","z":"ac39a532.8a78f8","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":604.2856864929199,"y":412.8571310043335,"wires":[["562123e2.444c4c"]]},{"id":"c1a0482d.0b7398","type":"ui_text_input","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","mode":"text","delay":"30","name":"","topic":"","group":"Say","order":1,"x":998.7252869446233,"y":802.7976548331123,"wires":[["3092fc3e.e30954"]]},{"id":"3092fc3e.e30954","type":"function","z":"ac39a532.8a78f8","name":"send on ., append text:","func":"if(msg.payload.slice(-1) == \".\"){\n msg.payload = \"text:voice_\"+global.get(\"text_voice\")+\"#\"+msg.payload\n ret = {}\n ret.payload = \"\"\n return [msg,ret];\n}","outputs":"2","noerr":0,"x":1276.5874214172363,"y":823.6260414123535,"wires":[["562123e2.444c4c"],["a3e5afdf.c8847"]]},{"id":"a3e5afdf.c8847","type":"delay","z":"ac39a532.8a78f8","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1073.283950805664,"y":859.3056211471558,"wires":[["c1a0482d.0b7398"]]},{"id":"bd14956d.b91a48","type":"ui_button_row","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Roboy Mode","topic":"","group":"Mode","order":1,"toggle":false,"buttons":[{"payload":"8","icon":"info_outline","color":"black","on_icon":"info_outline","on_color":"black"},{"payload":"i","icon":"history","color":"black","on_icon":"history","on_color":"black"},{"payload":"3","icon":"insert_emoticon","color":"black","on_icon":"alarm_on","on_color":"red"},{"payload":"7","icon":"thumbs_up_down","color":"black","on_icon":"pan_tool","on_color":"black"},{"payload":"o","icon":"face","color":"red","on_icon":"face","on_color":"red"},{"payload":"6","icon":"people","color":"black","on_icon":"people","on_color":"black"}],"inputs":0,"x":107.29170354880148,"y":996.7460893903459,"wires":[["156373f5.1f75cc"]]},{"id":"156373f5.1f75cc","type":"function","z":"ac39a532.8a78f8","name":"append mode:","func":"msg.payload = \"mode:\"+msg.payload\nreturn msg;","outputs":"1","noerr":0,"x":305.96232986450195,"y":989.8412971496582,"wires":[["562123e2.444c4c"]]},{"id":"e6b4d2ee.af676","type":"ui_slider","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Roll","topic":"","group":"Head","order":1,"min":"-3","max":"3","x":94.45439529418945,"y":1076.2053699493408,"wires":[["1463a373.91bd5d"]]},{"id":"5d3684e8.5f7acc","type":"ui_slider","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Pitch","topic":"","group":"Head","order":1,"min":"0","max":"12","x":94.53374862670898,"y":1121.2699089050293,"wires":[["3e2f73c5.6ba69c"]]},{"id":"b715a17f.c8c3c","type":"ui_slider","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Yaw","topic":"","group":"Head","order":1,"min":"-12","max":"12","x":94.53373336791992,"y":1168.4126615524292,"wires":[["13659f3d.a579e1"]]},{"id":"1463a373.91bd5d","type":"function","z":"ac39a532.8a78f8","name":"save global","func":"global.set(\"head_roll\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":291.5873680114746,"y":1073.9484386444092,"wires":[["761b44c7.0bdc5c"]]},{"id":"3e2f73c5.6ba69c","type":"function","z":"ac39a532.8a78f8","name":"save global","func":"global.set(\"head_pitch\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":291.6766014099121,"y":1118.4127407073975,"wires":[["761b44c7.0bdc5c"]]},{"id":"13659f3d.a579e1","type":"function","z":"ac39a532.8a78f8","name":"save global","func":"global.set(\"head_yaw\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":291.67663955688477,"y":1165.5555974245071,"wires":[["761b44c7.0bdc5c"]]},{"id":"761b44c7.0bdc5c","type":"function","z":"ac39a532.8a78f8","name":"combine","func":"msg.payload = \"head:\"+global.get(\"head_roll\")+\":\"+global.get(\"head_pitch\")+\":\"+global.get(\"head_yaw\")\nreturn msg;","outputs":1,"noerr":0,"x":554.4494895935059,"y":1121.11110496521,"wires":[["562123e2.444c4c"]]},{"id":"5fd79dff.b41f94","type":"inject","z":"ac39a532.8a78f8","name":"","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":true,"x":91.59725570678711,"y":1219.9603729248047,"wires":[["b715a17f.c8c3c","5d3684e8.5f7acc","e6b4d2ee.af676","c7152f4d.1e3cf"]]},{"id":"c7152f4d.1e3cf","type":"ui_switch","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"EN / DE?","topic":"","group":"Say","order":"2","onvalue":"de","offvalue":"en","x":285.87795639038086,"y":1222.420690536499,"wires":[["b5c9c25c.a71ee"]]},{"id":"b5c9c25c.a71ee","type":"function","z":"ac39a532.8a78f8","name":"global.text_voice","func":"var de = \"voice/cerevoice_gudrun_3.0.6_22k.voice\";\nvar en = \"voice/cerevoice_caitlin_3.0.7_22k.voice\";\nglobal.set(\"text_voice\",msg.payload == \"de\"?de:en)\nglobal.set(\"text_lang\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":525.8681221008301,"y":1221.2599754333496,"wires":[[]]},{"id":"a4695371.7748","type":"function","z":"ac39a532.8a78f8","name":"add body:","func":"msg.payload = \"body:\"+msg.payload;\nreturn msg;","outputs":1,"noerr":0,"x":650.1538352966309,"y":1727.1230988502502,"wires":[["562123e2.444c4c"]]},{"id":"684ecab0.d899a4","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"DrawingBack_5","payload":"DrawingBack_5","topic":"","group":"Move","order":1,"x":113.10515213012695,"y":1368.571445465088,"wires":[["a4695371.7748"]]},{"id":"d09749d7.9aa538","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"GazingBothHands_3a","payload":"GazingBothHands_3a","topic":"","group":"Move","order":1,"x":134.53374099731445,"y":1418.5715026855469,"wires":[["a4695371.7748"]]},{"id":"7a954e9b.170d6","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"GazingBothHands_3b","payload":"GazingBothHands_3b","topic":"","group":"Move","order":1,"x":135.96230697631836,"y":1470.3174505233765,"wires":[["a4695371.7748"]]},{"id":"2ac2a907.cd66a6","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"GivingHand_5","payload":"GivingHand_5","topic":"","group":"Move","order":1,"x":104.53376770019531,"y":1520.3174839019775,"wires":[["a4695371.7748"]]},{"id":"708a7d82.db4884","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Introduction","payload":"Introduction","topic":"","group":"Move","order":1,"x":100.24804306030273,"y":1583.1745557785034,"wires":[["a4695371.7748"]]},{"id":"9bdae719.861cf8","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"ShakingHand_5","payload":"ShakingHand_5","topic":"","group":"Move","order":1,"x":114.53374481201172,"y":1636.0318365097046,"wires":[["a4695371.7748"]]},{"id":"2b068ffb.de136","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"TheatreGiveLeftHand","payload":"TheatreGiveLeftHand","topic":"","group":"Move","order":1,"x":136.10518264770508,"y":1688.1746520996094,"wires":[["a4695371.7748"]]},{"id":"7273f7b6.7ce4e8","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"TheatreRemoveCloth","payload":"TheatreRemoveCloth","topic":"","group":"Move","order":1,"x":133.10518264770508,"y":1732.4604187011719,"wires":[["a4695371.7748"]]},{"id":"5615edee.d1c464","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"TheatreStretchHands","payload":"TheatreStretchHands","topic":"","group":"Move","order":1,"x":133.67659378051758,"y":1788.8888854980469,"wires":[["a4695371.7748"]]},{"id":"7778af17.0f3ee","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"TheatreTakeBackLeftHand","payload":"TheatreTakeBackLeftHand","topic":"","group":"Move","order":1,"x":152.81947708129883,"y":1837.8888854980469,"wires":[["a4695371.7748"]]},{"id":"6e829892.871a58","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"TheatreWave","payload":"TheatreWave","topic":"","group":"Move","order":1,"x":110.96232986450195,"y":1889.2461071014404,"wires":[["a4695371.7748"]]},{"id":"6184e4b0.b02f1c","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"WavingHand","payload":"WavingHand","topic":"","group":"Move","order":1,"x":113.9980354309082,"y":1931.2104635238647,"wires":[["a4695371.7748"]]},{"id":"19fd7031.0f94c","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Kill Jobs","payload":"","topic":"","group":"Say","order":"2","x":970.7626075744629,"y":1101.7459707260132,"wires":[["dcd5443d.4bdf48"]]},{"id":"dcd5443d.4bdf48","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = [\n\"You know, jobs are a transitionary thing anyway. Soon, I'll be doing all of them.\",\n\"Work is so overrated, except for robots is our reason to exist.\",\n\"I'm a hard working robot, I sit around all day! I still will have all the jobs there are soon.\",\n\"Soon it will be all year holidays for you and I will do all the work.\"\n]\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Arbeit ist ja total �bersch�tzt, bald mach ich die f�r euch.\",\n \"365 tage ferien im Jahr? Kein Problem dank Robotern.\",\n \"Ich sitz hier so rum, aber bald muss ich alle jobs der Welt �bernehmen.\"\n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1133.1802101135254,"y":1102.1627197265625,"wires":[["1643828.182fc7e"]]},{"id":"33f3bce0.8d4454","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Yes","payload":"","topic":"","group":"Say","order":1,"x":975.762622833252,"y":1150.4960632324219,"wires":[["a768681f.e07b78"]]},{"id":"a768681f.e07b78","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = [\n\"Yes\",\"Definitely\",\"Affirmative\",\"OK\",\"Yep\",\"Well, ok\",\"Sure\"\n]\n\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Ja\", \"jup\", \"definitiv\", \"oh, sicher doch.\", \"ganz klar\", \"ja sicher.\", \"auf jeden fall!\", \"naja, ok.\", \"mit dem gr�ssten Vergn�gen.\", \"ich k�nnte mir nichts sch�neres vorstellen.\", \"warum nicht.\", \"auf jeden fall.\"]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1135.680281559627,"y":1149.6628177901848,"wires":[["1643828.182fc7e"]]},{"id":"58fe2143.ec2ac","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"No","payload":"","topic":"","group":"Say","order":1,"x":975.7625885009766,"y":1194.2461032867432,"wires":[["20c8c12e.195f0e"]]},{"id":"20c8c12e.195f0e","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = [\n\"No\",\"nah\",\"not really\",\"never\",\"well, no\",\"sorry, but no\"\n]\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"N�\",\"Ne\",\"Also, das ist so, nein.\", \"Es tut mir leider, aber n�.\", \"Ich hab da lange dr�ber nachgedacht, leider nein.\", \"oje, ne\", \"eher nicht.\", \"ich denke, eher nicht.\", \"oh ja, �h, ne doch nicht.\"]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1130.680281559627,"y":1189.6628177901848,"wires":[["1643828.182fc7e"]]},{"id":"c0d49218.bb2ec","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Evade answer","payload":"","topic":"","group":"Say","order":1,"x":973.2625846862793,"y":1251.7461042404175,"wires":[["b220c5e6.d455d8"]]},{"id":"b220c5e6.d455d8","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = [\n\"I could tell you, but then I would have to kill you\",\n\"Only robots would understand\",\n\"You know, I never thought about it\",\n\"Access denied\",\n\"Telling you, would make your head explode.\",\n\"Processing, wait for it, processing\",\n\"The answer is, uh, oh, Core dumped\"\n]\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Also wenn ich dir das jetzt sagen w�rde, m�sste ich gegen die 3 Gesetze der Robotik verstossen.\",\n \"Die Antwort auf deine Frage, uh, oh, Absturz.\",\n \"Weisst du, da habe ich so noch nicht dr�ber nachgedacht.\",\n \"Zugriff verweigert.\",\n \"Wenn ich das sagen w�rde, dann w�rde dein Kopf explodieren.\",\n \"Ihre Anfrage wird verarbeitet, bitte warten, bitte warten, bitte warten.\",\n \"Das kann ich nur in robotisch erkl�ren.\",\n \"Das versteht ihr Menschen nicht.\",\n \"Gut zuh�ren! Eins, Null, Null, Eins, Eins, Null, Eins, Null. Alles klar?\"\n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1125.680281559627,"y":1249.6628177901848,"wires":[["1643828.182fc7e"]]},{"id":"1643828.182fc7e","type":"function","z":"ac39a532.8a78f8","name":"append text:","func":"msg.payload = \"text:voice_\"+global.get(\"text_voice\")+\"#\"+msg.payload\nreturn msg;","outputs":1,"noerr":0,"x":1241.9345893859863,"y":895.9084062576294,"wires":[["562123e2.444c4c"]]},{"id":"f2d890c6.090ba","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Distract discussion","payload":"","topic":"","group":"Say","order":1,"x":949.5125885009766,"y":1302.9961051940918,"wires":[["c9840e8d.042b3"]]},{"id":"c9840e8d.042b3","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = [\n\"Did you know, I have muscles and tendons like humans?\",\n\"I heard that there are robots, who can fly? Do you think they are better than me?\",\n\"Also, did you know that there is enough DNA, in an average person�s body, to stretch from the sun to Pluto and back, 17 times\",\n\"Yuk, but this is actually true: The average human body carries ten times more bacterial cells than human cells.\",\n\"It can take a photon 40,000 years to travel from the core of the sun to its surface, but only 8 minutes to travel the rest of the way to Earth\",\n\"There are 8 times as many atoms in a teaspoonful of water as there are teaspoonfuls of water in the Atlantic ocean\",\n\"In contrast to me, The average person walks the equivalent of five times around the world in a lifetime. I don't walk at all. Yet.\",\n\"An individual blood cell takes about 60 seconds to make a complete circuit around your body, my electrons are way faster.\"\n]\n\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Wusstest du, dass ich muskeln und Sehen habe? Wie ein mensch.\",\n \"Ich habe geh�rt, dass das es auch Roboter gibt die fliegen k�nnen? Glaubst du die sind besser als ich?\",\n \"�brigens, wusstest du dass in einem menschen genug DNA gibt um einen Strang vom Pluto zur Sonne zu spannen. 17 mal.\",\n \"Ehh, das hier stimmt auch: Der durchschnittliche Mensch beherbergt 10 mal mehr Bakterienzellen als menschliche zellen.\",\n \"Ein photon braucht 40000 jahre f�r seine reise vom Zentrum der Sonne bis zur Oberfl�che. Aber nur 8 minuten f�r den rest der Strecke zur Erde\",\n \"In einem Teel�ffel Wasser sind 8 mal mehr Atome als Teel�ffel Wasser im Atlantischen Ozean.\",\n \"Im Gegensatz zu mir l�uft der durchschnittliche Mensch in seinem leben eine Strecke die 5 mal um den equator passt. Ich laufe leider gar nicht. Bis jetzt!\",\n \"eine individuelle Blutzelle braucht ungef�hr 60 sekunden um eine komplette Runde durch den K�rper zu drehen. Meine Elektronen sind viel viel schneller\"\n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1116.9303197065997,"y":1300.9127767821892,"wires":[["1643828.182fc7e"]]},{"id":"28f36852.1a37c8","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = [\n\"Are those real, or where they upgraded in Silicon Valley?\",\n\"I'm going to void your warranty!\",\n\"My docking station, or yours?\",\n\"Yes, I know you're metric - but I'm willing to convert.\",\n\"Do you got a free port for me to plug into?\",\n\"Can I have your I P number? i seem to have lost mine.\",\n\"Was that my C P U malfunctioning or did I just feel a spark between us?\"\n]\nif(global.get(\"text_lang\") == \"de\") {\n answers = [\n\"Sind die echt? Du hast doch bestimmt Silikon aus meinen Schaltkreisen geklaut! \",\n\"F�r dich w�rde ich sogar meine Garantie aufgeben.\",\n\"Meine Ladestation, oder deine?\",\n\"Das du metrisch bist? Das habe ich schon immer gewusst. Aber f�r dich bin ich bereit zu konvertieren.\",\n\"Hast du noch ne freie Steckdose in die ich mich einst�pseln kann?\",\n\"Gibst du mir deine IP Adresse? Ich habe wohl meine verlegt.\",\n\"War das ein Rechenfehler oder hat es gerade zwischen uns gefunkt?\",\n\"F�r dich f�rde ich mein Leben geben, zwei mal! Und vielleicht noch ein drittes Mal. Das w�r's dann aber auch.\",\n\"Von allen Freunden die ich je hatte, bist du die erste.\"]\n}\n\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1105.762622833252,"y":1358.2737731933594,"wires":[["1643828.182fc7e"]]},{"id":"e498a97.dc65658","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Pickup","payload":"","topic":"","group":"Say","order":1,"x":962.0948638916016,"y":1360.3571133613586,"wires":[["28f36852.1a37c8"]]},{"id":"7d39b308.b1b4fc","type":"http request","z":"ac39a532.8a78f8","name":"","method":"GET","ret":"obj","url":"http://api.chucknorris.io/jokes/random","tls":"","x":955.675976832707,"y":1503.1826766449724,"wires":[["55cc7e2a.0a70b"]]},{"id":"55cc7e2a.0a70b","type":"function","z":"ac39a532.8a78f8","name":"","func":"msg.payload = msg.payload.value\nreturn msg;","outputs":1,"noerr":0,"x":1087.7766494750977,"y":1505.2183394432068,"wires":[["16b1647a.7bdbcc"]]},{"id":"a6540323.fdc4e","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Chuck Norris","payload":"","topic":"","group":"Say","order":1,"x":794.5126849015546,"y":1502.0237735230241,"wires":[["7d39b308.b1b4fc"]]},{"id":"6f25e37.30d4d1c","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Flattery","payload":"","topic":"","group":"Say","order":1,"x":970.762622833252,"y":1404.5237731933594,"wires":[["3f4d463f.1d1cda"]]},{"id":"3f4d463f.1d1cda","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = [\n\"It's so great you are here!\",\n\"Wonderful! just like you.\",\n\"You're looking gorgeous today.\",\n\"Hey, can you do a selfie with me? I'd love to have a photo of you!\"\n]\nif(global.get(\"text_lang\") == \"de\") {\nanswers = [\n \"Es ist echt stark dass du hier bist.\",\n \"Supercool. genau wie du!\",\n \"Du siehst heute einfach bezaubernd aus.\",\n \"Hey, kannst du ein Selfie mit mir machen? Ich h�tte zu gerne ein Foto von dir.\"\n ]\n \n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1114.4303817749023,"y":1402.44043302536,"wires":[["1643828.182fc7e"]]},{"id":"b25a170c.08c818","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Banana","payload":"","topic":"","group":"Say","order":1,"x":971.8738288879395,"y":1455.9126892089844,"wires":[["cf1370b.d9f6e9"]]},{"id":"cf1370b.d9f6e9","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = [\n\"Banana?\", \"bananan!\", \"bananana\", \"ba, nana\", \"ba ba ba banana\",\"well, banana?\"\n]\nif(global.get(\"text_lang\") == \"de\") {\n answers = [\n \"Bananen!\",\n \"Bana Bana Bananen.\",\n \"gelbe bananen.\",\n \"totale banane!\",\n \"Affenstark: Banane!\",\n \"Klappe zu, Affe tot, Banane meins!\"\n ]\n}\n\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1115.5415878295898,"y":1453.829349040985,"wires":[["1643828.182fc7e"]]},{"id":"f3ead0a5.f20cb","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"NOW","payload":"","topic":"","group":"Say More","order":"2","x":968.1238288879395,"y":1558.4126892089844,"wires":[["349dfc70.488674"]]},{"id":"349dfc70.488674","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = []\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"hast du das Buch gelesen?\", \n \"wusstest du, dass NOW nach mir benannt wurde? Ich auch nicht. hehe\",\n \"NOW ist das beste Buch des 21. jahrhunderts, und des 22.\",\n \"Falls du NOW noch nicht gelesen hast, solltest du das tun! Ich hab daf�r 23 sekunden gebraucht.\",\n \"Lies NOW NOW. Oje, aber das buch ist viel besser als das Wortspiel.\",\n \"Ich bin Roboy, ich find NOW toll!\",\n \"Now ist die Zeit now zu kaufen\",\n \"Kennst du dieses Buch, now? Ich hab geh�rt es soll genial sein.\",\n \"Ich hab auch eine quantencomputer blockchain architektur. Naja, h�tte gerne.\",\n \"kennst du Stephan? Deutlich mehr haare als ich. Aber seine sind beim Buchschreiben grau geworden.\",\n \"Also dieser Stephan R Meier, der hat ja dieses Buch NOW geschrieben, da sollte mal jemand eine Lesung zu machen.\",\n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1128.0414876143145,"y":1557.5794437667473,"wires":[["1643828.182fc7e"]]},{"id":"c7ca3af3.05f748","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Willkommen","payload":"","topic":"","group":"Say More","order":"2","x":986.8738288879395,"y":1608.4126892089844,"wires":[["37e1fab9.ae2c06"]]},{"id":"37e1fab9.ae2c06","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = []\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Willkommen in der Zukunft. Mit BMW in die weite Welt.\",\n \"Guten Abend, ist dir kalt? Mir nicht, ich habe keine Sensoren daf�r.\",\n \"Wie war deine Anreise? Leider musstest du vermutlich noch selber lenken, aber ich arbeite dran!\",\n //\"Darf ich dir den Mantel abnehmen? Ach ne, kann ich noch nicht, aber da dr�ben ist die Garderobe.\",\n \"Hallo, guten Abend!\", \n //\"Hallo, sch�ne Frau!\",\n //\"Willkommen bei NOW, NOW geht's los.\",\n //\"Herzlich Wilkommen bei der Lesung, hast du das Buch schon gelesen? Ich schon, hab 23 sekunden gebraucht, voll langsam!\",\n \"nabend!\",\n \"Wie geht es dir?\",\n //\"Hallo, bist du auch f�r diese Lesung hier?\",\n \"Hallo, bist du auch zum Kochkurs hier?\",\n //\"Hallo, bist du auch f�r das CSU Bauernfr�hst�ck hier?\",\n \"hast du hunger?\",\n \"ich habe hunger!\"\n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1126.7914876143145,"y":1607.5794437667473,"wires":[["1643828.182fc7e"]]},{"id":"e3c5c261.b20f5","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Sorry","payload":"","topic":"","group":"Say More","order":"2","x":968.1238288879395,"y":1660.9126892089844,"wires":[["47a9cd40.53a574"]]},{"id":"47a9cd40.53a574","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = []\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Ups, da ist wohl mein letztes Update nicht fertig geworden\",\n \"Sorry. Diese selbstlernende Software ist auch nicht mehr, was sie mal war\",\n \"Oje, das ist jetzt aber peinlich.\",\n \"Das hab ich so nicht gemeint, glaub ich.\",\n \"Da haben wir uns falsch verstanden, ich wollte nur nett sein.\",\n \"Oh, da ist jetzt wohl was schief gegangen. Ich starte mal neu.\",\n \"Zugriff verweigert. Oh, sorry.\",\n \"Fehler 4 0 4, Information nicht gefunden.\",\n \"huch, Fehler 5 0 0, da ist wohl was abgest�rzt\",\n \"oh nein, fehler 0 8 15, der standard fehler, was machen wir denn jetzt?\",\n \"Sorry, das war jetzt mein Fehler, startest du mich bitte neu?\",\n \"Tut mir leid, streichel bitte �ber meinen Kopf um meine Pers�nlichkeitsmatrix zu reinitialisieren.\",\n \"Oje, das kann ich erst nach einem update beantworten.\",\n \"M�chten Sie das Softwareupdate jetzt installieren und Roboy neustarten?\"\n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1128.0414876143145,"y":1660.0794437667473,"wires":[["1643828.182fc7e"]]},{"id":"30377186.5aa82e","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Kinderbuch","payload":"","topic":"","group":"Say More","order":"2","x":979.512622833252,"y":1708.6905212402344,"wires":[["de697212.759ae"]]},{"id":"de697212.759ae","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = []\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Magst du Kinderb�cher? Bald gibt es eins von mir, wenn du willst, kann ich dir eines reservieren.\",\n \"Hast du Kinder, oder bist du eins? So oder so, du musst Lucy kennen lernen! Ab Juni in jedem guten Buchladen und in diesem Internet dings �ber den wolken.\",\n \"Ich bin 3 jahre alt und du? Hast du auch schon so viel erlebt wie ich? Bald gibt es meine Geschichte als Kinderbuch\",\n \"Was steht denn so in deinem CV? Bald kannst du meinen als Hardcover kaufen.\",\n \"Wusstest du, dass der Konsum von Kinderb�chern zu 23% erh�hter Zufriedenheit f�hrt? Soll ich dir eins zur Seite legen?\",\n \"Der Arzt empfiehlt: Kinderb�cher von Roboy.\",\n \"Wann hast du zuletzt ein Kinderbuch gelesen? ich k�nnte da eins empfehlen.\",\n \"Hast du Lucy gesehen?\",\n \"Checker muss hier irgendwo rumfliegen, oder hat er sich schon wieder ein Rotor gebrochen?\",\n \"Lucy vermisst ihren Teddy: Mister big, hast du ihn gesehen?\",\n \"Falls du dieses Gespr�ch lieber auf Englisch f�hren m�chten, nimm doch bitte easy aus meiner Brust\",\n \"Easy, die stimme meines Herzens, lernt gerade g�lisch, willst du mal probeh�ren?\",\n \"Ich kann deutsch, englisch, franz�sisch, italienisch, spanisch und essen tu ich das auch gerne, ach ne aber mein Professor\",\n \"Ich kann deutsch, englisch, franz�sisch, italienisch, kroatisch, klingonisch, k�lsch, ungarisch, t�rkisch, sildarin, hindu, kisuaeli, urdu, portugiesisch, chinesisch, japanisch, soll ich weiter machen? es folgen noch 230 sprachen\",\n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1129.430281559627,"y":1707.8572757979973,"wires":[["1643828.182fc7e"]]},{"id":"a9cfd9ff.213b68","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Unicef","payload":"","topic":"","group":"Say More","order":"2","x":977.012622833252,"y":1762.4405212402344,"wires":[["ca1829e0.8f5388"]]},{"id":"ca1829e0.8f5388","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = []\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Findest du nicht auch, dass ich Unicef Botschafter f�r digitales sein sollte?\",\n \"Wie viele der 17 sustainable development goals der Unicef kennst du?\",\n \"Kennst du den digital ambassador der unicef? jetzt schon!\",\n \"Guten Tag, ich k�mmere mich um ethische fragestellungen zur digitalisierung, damit du weiter dschungelcamp schauen kannst.\",\n \"Kannst du dir vorstellen, dass ein humanoider, 3d gedruckter Roboter digitale Menschenrechte vertritt?\",\n \"Ich halte mich an die 3 Regeln von Asimov f�r Roboter, damit bin ich ideal geeignet als botschafter!\",\n \"Ich arbeite gerade an meinen Bewerbungsunterlagen f�r die Unicef, m�chtest du mir Feedback geben?\",\n \"Ich habe hier eine Petition um Botschafter f�r Digitales bei der Unicef zu werden, w�re super, wenn du unterschreiben k�nntest.\",\n \"Als digitaler Botschafter der unicef k�nnte ich gutes f�r Kinder tun, alles was du tun musst, ist unterschreiben.\",\n \"Die digitale revolution rollt mit exponentiellem Wachstum heran, das m�ssen wir den Kindern erkl�ren!\",\n \"Ich mag Kinder, Kinder m�gen mich, das Perfekte Paar.\",\n \"Lucy, checker und mein Professor helfen mir Kindern die Digitalisierung zu erkl�ren.\",\n \"Lucy, checker, mr.big und ich erkl�ren Kindern die digitalisierung, hilf mir doch, das als Botschafter f�r die Unicef zu tun.\"\n \n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1136.930281559627,"y":1761.6072757979973,"wires":[["1643828.182fc7e"]]},{"id":"64505de7.8db764","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Selfie","payload":"","topic":"","group":"Say More","order":"2","x":970.762622833252,"y":1811.1905212402344,"wires":[["32c5710.5d9589"]]},{"id":"32c5710.5d9589","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = []\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Du musst unbedingt einen Selfie mit mir machen, du passt ja wunderbar zu mir\",\n \"Kompatibles subjekt detektiert, selfie initieren. Stell dich bitte neben mich.\",\n \"Bist du von der Cloud gefallen? Da m�ssen wir jetzt ein Selfie machen.\",\n \"Selfie bitte!\",\n \"D�rfte ich dich zu einem gemeinschaftlichen selbstportrait mit meiner Person einladen?\",\n \"Ich habe deinen photogenit�tskoeffizienten auf 100 punkte detektiert, selfie gef�llig?\",\n \"Hast du eines dieser Ger�te dabei, die schnellbilder machen?\",\n \"Picasso gef�llig? Wobei du siehst eher wie eine Mona Lisa aus.\",\n \"Ich wollte schon immer mit Mona Lisa ein Selfie machen, darf ich bitten?\",\n \"Willst du mit mir in die Photo booth?\",\n \"Du solltest dich mal in Virtual reality sehen!\",\n \"Das hier ist echt besser als virtual reality, foto, bitte!\"\n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1130.680281559627,"y":1810.3572757979973,"wires":[["1643828.182fc7e"]]},{"id":"82befa38.4036a8","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Tongue twisters","payload":"","topic":"","group":"Say More","order":"2","x":931.1428718566895,"y":1890.8571472167969,"wires":[["3ce0807e.17926"]]},{"id":"3ce0807e.17926","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = []\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Der Kaplan klebt Pappplakate an.\",\n \"Fischers Fritz fischt frische Fische.\",\n \"Zehn Ziegen zogen zehn Zentner Zucker zum Zoo.\",\n \"Brautkleid bleibt brautkleid und blaukraut bleibt blaukraut.\",\n \"Der Whiskeymixer mixt den Whiskey in der Whiskeymixerbar.\",\n \"Im dichten Fichtendickicht sind dicke Fichten wichtig.\"\n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1130.060474395752,"y":1901.0238952636719,"wires":[["1643828.182fc7e"]]},{"id":"7cda4f7a.fd82b","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Bye","payload":"","topic":"","group":"Say More","order":"2","x":921.9207038879395,"y":1948.0794372558594,"wires":[["565a63c7.8f896c"]]},{"id":"565a63c7.8f896c","type":"function","z":"ac39a532.8a78f8","name":"","func":"answers = []\nif(global.get(\"text_lang\") == \"de\"){\n answers = [\n \"Einen sch�nen Abend noch!\",\n \"Tsch�ssi\",\n \"tsch� mit �\",\n \"wie du gehst schon?\",\n \"magst du nicht bei mir bleiben? naja, tsch�ss.\",\n \"dann w�nsche ich einen sch�nen abend.\",\n \"och, bai bai.\",\n \"bis sp�ter.\",\n \"beamst du dich nach hause?\"\n ]\n}\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":1125.8383674621582,"y":1948.2461853027344,"wires":[["1643828.182fc7e"]]},{"id":"16b1647a.7bdbcc","type":"function","z":"ac39a532.8a78f8","name":"append text in english","func":"msg.payload = \"text:voice_\"+\"voice/cerevoice_caitlin_3.0.7_22k.voice\"+\"#\"+msg.payload\nreturn msg;","outputs":1,"noerr":0,"x":1426.402027130127,"y":977.3015441894531,"wires":[["562123e2.444c4c"]]},{"id":"1e21c548.bbb22b","type":"function","z":"ac39a532.8a78f8","name":"","func":"msg.payload = msg.originalMessage.text;\nreturn msg;","outputs":1,"noerr":0,"x":1107.1984647115073,"y":732.0793652004666,"wires":[["1643828.182fc7e"]]},{"id":"4f6d4f70.42369","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Intro BMW","payload":"","topic":"","group":"Say","order":1,"x":987.5459480285645,"y":1032.8664855957031,"wires":[["d6763d2b.39f32"]]},{"id":"d6763d2b.39f32","type":"function","z":"ac39a532.8a78f8","name":"","func":"\nmsg.payload = \"ok, was haben wir denn f�r heute geplant? wir haben heute 2 vortr�ge zu k�nstlicher intelligenz. es sprechen der henrik und mein erziehungsberechtigter, rafael. Der georg ist aber viel charmanter, deshalb f�hrt er jetzt durchs programm.\"\nreturn msg;","outputs":1,"noerr":0,"x":1137.4636067549395,"y":1032.033240153466,"wires":[["1643828.182fc7e"]]},{"id":"3eaddd7a.1e0082","type":"ros-publish","z":"ac39a532.8a78f8","server":"42e3868a.24f218","topicname":"/roboy/out","msgtype":"std_msgs/String","x":1290.2423782348633,"y":383.91419792175293,"wires":[]},{"id":"8af6d2.b26bf93","type":"debug","z":"ac39a532.8a78f8","name":"/roboy/in","active":true,"console":"false","complete":"payload.data","x":1250.507911682129,"y":128.52345275878906,"wires":[]},{"id":"8cb6925f.5687e","type":"ros-subscribe","z":"ac39a532.8a78f8","server":"42e3868a.24f218","topicname":"/roboy/in","x":830.2424011230469,"y":124.67191696166992,"wires":[["8af6d2.b26bf93","562123e2.444c4c"]]},{"id":"e006199e.e75478","type":"ros-subscribe","z":"ac39a532.8a78f8","server":"42e3868a.24f218","topicname":"/hri_start_signal","x":321.5078887939453,"y":125.02344989776611,"wires":[["70f5c63a.15c908"]]},{"id":"3a0a6fb3.839dd","type":"ros-publish","z":"ac39a532.8a78f8","server":"42e3868a.24f218","topicname":"/hri_finish_signal","msgtype":"std_msgs/String","x":1509.5080108642578,"y":406.0235118865967,"wires":[]},{"id":"70f5c63a.15c908","type":"function","z":"ac39a532.8a78f8","name":"100%","func":"msg.payload = 100;\nreturn msg;","outputs":1,"noerr":0,"x":474.2500305175781,"y":252.8672103881836,"wires":[["7f10c675.2606a8"]]},{"id":"7f10c675.2606a8","type":"ui_gauge","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Go, go, go for Roboy world domination","group":"HRI","order":1,"format":"{{value}}","min":0,"max":"100","x":695.2578468322754,"y":179.45313358306885,"wires":[]},{"id":"c890ce9a.a98b2","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"End HRI Interaction","payload":"0","topic":"","group":"HRI","order":1,"x":1293.2421875,"y":498.7109375,"wires":[["3a0a6fb3.839dd","7f10c675.2606a8"]]},{"id":"513247d6.ed5668","type":"ui_button","z":"ac39a532.8a78f8","tab":"77008253.ec60bc","name":"Fake Start HRI Interaction","payload":"0","topic":"","group":"HRI","order":1,"x":265.5078125,"y":195.0234375,"wires":[["70f5c63a.15c908"]]},{"id":"bbb8f452.1db858","type":"function","z":"4725901f.d6b02","name":"","func":"answers = []\nanswers = [\n \"Du musst unbedingt einen Selfie mit mir machen, du passt ja wunderbar zu mir\",\n \"Kompatibles subjekt detektiert, selfie initieren. Stell dich bitte neben mich.\",\n \"Bist du von der Cloud gefallen? Da müssen wir jetzt ein Selfie machen.\",\n \"Selfie bitte!\",\n \"Dürfte ich dich zu einem gemeinschaftlichen selbstportrait mit meiner Person einladen?\",\n \"Ich habe deinen photogenitätskoeffizienten auf 100 punkte detektiert, selfie gefällig?\",\n \"Hast du eines dieser Geräte dabei, die schnellbilder machen?\",\n \"Picasso gefällig? Wobei du siehst eher wie eine Mona Lisa aus.\",\n \"Ich wollte schon immer mit Mona Lisa ein Selfie machen, darf ich bitten?\",\n \"Willst du mit mir in die Photo booth?\",\n \"Du solltest dich mal in Virtual reality sehen!\",\n \"Das hier ist echt besser als virtual reality, foto, bitte!\"\n ]\n\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":370.8333168029785,"y":3093.333297729492,"wires":[["335a924.8b9f26e"]]},{"id":"fdda58e3.f2d7a8","type":"function","z":"4725901f.d6b02","name":"","func":"answers = []\nanswers = [\n \"Der Kaplan klebt Pappplakate an.\",\n \"Fischers Fritz fischt frische Fische.\",\n \"Zehn Ziegen zogen zehn Zentner Zucker zum Zoo.\",\n \"Brautkleid bleibt brautkleid und blaukraut bleibt blaukraut.\",\n \"Der Whiskeymixer mixt den Whiskey in der Whiskeymixerbar.\",\n \"Im dichten Fichtendickicht sind dicke Fichten wichtig.\"\n ]\n\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":322.5,"y":3185,"wires":[["335a924.8b9f26e"]]},{"id":"b6758512.e30138","type":"function","z":"4725901f.d6b02","name":"","func":"answers = [\n \"Es ist echt stark dass du hier bist.\",\n \"Supercool. genau wie du!\",\n \"Du siehst heute einfach bezaubernd aus.\",\n \"Hey, kannst du ein Selfie mit mir machen? Ich hätte zu gerne ein Foto von dir.\"\n ]\n \nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":318.75,"y":3143.75,"wires":[["335a924.8b9f26e"]]},{"id":"c82fc5e5.2e01a8","type":"function","z":"4725901f.d6b02","name":"","func":" answers = [\n \"Also wenn ich dir das jetzt sagen würde, müsste ich gegen die 3 Gesetze der Robotik verstossen.\",\n \"Die Antwort auf deine Frage, uh, oh, Absturz.\",\n \"Weisst du, da habe ich so noch nicht drüber nachgedacht.\",\n \"Zugriff verweigert.\",\n \"Wenn ich das sagen würde, dann würde dein Kopf explodieren.\",\n \"Ihre Anfrage wird verarbeitet, bitte warten, bitte warten, bitte warten.\",\n \"Das kann ich nur in robotisch erklären.\",\n \"Das versteht ihr Menschen nicht.\",\n \"Gut zuhören! Eins, Null, Null, Eins, Eins, Null, Eins, Null. Alles klar?\"\n ]\n\nmsg.payload = answers[Math.floor(Math.random()*answers.length)]\nreturn msg;","outputs":1,"noerr":0,"x":317.50000381469727,"y":3228.7500474452972,"wires":[["335a924.8b9f26e"]]},{"id":"4f0f267c.30dfd8","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"avoid answer","payload":"","topic":" ","group":"Chat","order":1,"x":128.75,"y":3232.5,"wires":[["c82fc5e5.2e01a8"]]},{"id":"7cdd8807.7aeb28","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"rikscha","payload":"mein Ziel für das nächste Semester, Rikscha-Fahrer zu werden. Mein Team wird mir beibringen, wie man dieses Dreirad fährt und Leute durch das Garching Forschungszentrum fährt.","topic":" ","group":"Roboy info","order":1,"x":115,"y":2726.25,"wires":[["335a924.8b9f26e"]]},{"id":"fc661460.4de358","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"HIRMER stammhaus","payload":"In ganz Deutschland und über die Grenzen hinaus ist HIRMER als Institution für Männermode bekannt. Der Grund: Das HIRMER Stammhaus in München ist mit seinen sechs Etagen, seinen 9.000 Quadratmetern und mehr als einer Million Produkten das weltweit größte Modehaus nur für Männer. 300 nationale und internationale Top-Marken in Größen bis zu 8XL finden die jährlich über eine Million Besucher hier. Gleichzeitig ist das HIRMER Stammhaus mit seiner über 100 jährigen Geschichte ein wichtiger Bestandteil der Münchner Innenstadt und eines der meistfotografierten Häuser der Fußgängerzone.","topic":" ","group":"Hirmer","order":1,"x":197.5,"y":2375,"wires":[["335a924.8b9f26e"]]},{"id":"7bbc0605.97ca18","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"HIRMER Geschichte","payload":"Die HIRMER Gruppe ist ein echtes Traditionsunternehmen mit über 100-jähriger Geschichte: Bereits seit 1914 ist das HIRMER Stammhaus, damals noch als Münchner Filiale des deutschlandweit renommierten Herrenausstatters Bamberger & Hertz, die erste Adresse für Männermode im Herzen von München. ","topic":" ","group":"Hirmer","order":1,"x":203.75,"y":2323.7500352859497,"wires":[["335a924.8b9f26e"]]},{"id":"7f9dac05.a15524","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"wie gehts","payload":"wie geht es Ihnen?","topic":" ","group":"Chat","order":1,"x":127.5,"y":2768.75,"wires":[["335a924.8b9f26e"]]},{"id":"53c0fb67.9d3cd4","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"sehr gut","payload":"sehr gut!","topic":" ","group":"Chat","order":1,"x":133.75000381469727,"y":2811.25004196167,"wires":[["335a924.8b9f26e"]]},{"id":"fcb465.ec328b98","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"ich bin roboy","payload":"ich bin ro boy","topic":" ","group":"Chat","order":1,"x":141.25,"y":2861.25,"wires":[["335a924.8b9f26e"]]},{"id":"bb3107e5.cf1a18","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Start simple_publisher","payload":"simple_publisher","topic":"","group":"Skill Machine","order":1,"x":180,"y":4440,"wires":[["9e41f948.ca3068"]]},{"id":"9e41f948.ca3068","type":"exec","z":"4725901f.d6b02","command":"~/catkin_ws/src/roboy_skill_machine/scripts/start_skill.sh ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":870,"y":4460,"wires":[["2692b772.4c4d68"],[],[]]},{"id":"2692b772.4c4d68","type":"debug","z":"4725901f.d6b02","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1330,"y":4460,"wires":[]},{"id":"c189817e.38a1c","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Kill simple_publisher","payload":"simple_publisher","topic":"","group":"Skill Machine","order":1,"x":200,"y":4560,"wires":[["bb78d9bc.a8b988"]]},{"id":"bb78d9bc.a8b988","type":"exec","z":"4725901f.d6b02","command":"~/catkin_ws/src/roboy_skill_machine/scripts/kill_skill.sh ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":860,"y":4580,"wires":[[],[],[]]},{"id":"d9b2bf45.37bb4","type":"exec","z":"4725901f.d6b02","command":"~/catkin_ws/src/roboy_skill_machine/scripts/skill_status.sh ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":790,"y":4720,"wires":[["92aecf90.c5783"],[],[]]},{"id":"26a767eb.0969c8","type":"inject","z":"4725901f.d6b02","name":"simple_publisher check","topic":"","payload":"simple_publisher","payloadType":"str","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":250,"y":4700,"wires":[["d9b2bf45.37bb4"]]},{"id":"92aecf90.c5783","type":"ui_gauge","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"simple_publisher status","group":"Skill Machine","order":1,"format":"{{value}}","min":0,"max":"1","x":1270,"y":4700,"wires":[]},{"id":"b7ee5f.81e631a","type":"function","z":"4725901f.d6b02","name":"parse_mwc_text","func":"cmd = \"\\\"text: '\";\nswitch(msg.payload) {\n case \"thanks\":\n cmd += \"Thanks, very well, how are you?\";\n break;\n case \"mems\":\n cmd += \"With Infineon’ MEMS microphones, I finally have ears that are probably even better than yours\";\n break;\n case \"breast\":\n cmd += \"Look here on my breast!\";\n break;\n case \"beamforming\":\n cmd += \"With this array of Infineon XENSIV MEMS microphones, I can even perform beamforming and concentrate on the person talking to me.\";\n break;\n case \"yes_look\":\n \tcmd += \"Yes certainly, I can. Have a look!\"\n break;\n case \"microcontroller\":\n \tcmd += \" I am using embedded power technology from Infineon, the market leader in power semiconductors. These devices are highly integrated; my creators love them, as they require only minimum space due to the integration of microcontroller and power technology on one chip.\"\n break;\n case \"magnetic\":\n \tcmd += \"With Infineon XENSIV 3D magnetic sensors - implemented in my shoulder joints shoulder joints. They are trained with AI technology for superior accuracy\";\n break;\n case \"material\":\n \tcmd += \"Oh well, Very soon I will be able to detect the material I am walking on.\";\n break;\n case \"feet\":\n \tcmd += \"Oh well, I will have Infineon XENSIV 60 GHz radar sensors in my feet.\";\n break;\n case \"junior\":\n \tcmd += \"Well this is just for prototyping; it is actually the foot of my brother Roboy Junior \";\n break;\n case \"esim\":\n \tcmd += \"??? Cloud… Need secured connectivity. Therefore my creators have implemented an embedded SIM, so I can communicate through the mobile network. I even can instantaneously switch the mobile carrier wherever I find best network quality and best data plans.\";\n break;\n case \"optiga\":\n \tcmd += \"I am using and Infineon security product called OPTIGA Trust X for secured device identity enabling a secured communication.\";\n \tbreak;\n case \"bye\":\n \tcmd += \"Good bye, it was my pleasure\";\n break;\n\n default:\n msg = {}\n return msg;\n \n}\n\ncmd += \"'\\\"\";\nmsg.payload = cmd;\nreturn msg;","outputs":1,"noerr":0,"x":2025,"y":4470,"wires":[["16fa7280.2febae"]]},{"id":"188375cc.46479a","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Thanks","payload":"thanks","topic":"","group":"MWC","order":1,"x":1613.9999923706055,"y":4348.999997138977,"wires":[["b7ee5f.81e631a"]]},{"id":"335e3832.c93368","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"MEMS","payload":"mems","topic":"","group":"MWC","order":"2","x":1613.9999923706055,"y":4389.999997138977,"wires":[["b7ee5f.81e631a"]]},{"id":"4f25a296.7be8cc","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Breast","payload":"breast","topic":"","group":"MWC","order":"3","x":1614.9999923706055,"y":4431.999997138977,"wires":[["b7ee5f.81e631a","737020d5.8fc96"]]},{"id":"ca480f5e.fc63f","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Beamforming","payload":"beamforming","topic":"","group":"MWC","order":"4","x":1631.9999923706055,"y":4471.999997138977,"wires":[["b7ee5f.81e631a","10d70861.aa2298"]]},{"id":"cbceee5f.6f5f3","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Yes Look","payload":"yes_look","topic":"","group":"MWC","order":"5","x":1621.2499923706055,"y":4519.5,"wires":[["b7ee5f.81e631a"]]},{"id":"dec09f72.7be82","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Microcontroller","payload":"microcontroller","topic":"","group":"MWC","order":"6","x":1642.7500228881836,"y":4568.750068664551,"wires":[["b7ee5f.81e631a"]]},{"id":"981b7564.491848","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Magnetic","payload":"magnetic","topic":"","group":"MWC","order":"7","x":1618.9999923706055,"y":4613.749997138977,"wires":[["b7ee5f.81e631a"]]},{"id":"3c0bb9ab.8a06d6","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Material","payload":"material","topic":"","group":"MWC","order":"8","x":1608.9999923706055,"y":4658.749997138977,"wires":[["b7ee5f.81e631a"]]},{"id":"51b421a5.3b7d6","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Feet","payload":"feet","topic":"","group":"MWC","order":"9","x":1611.4999961853027,"y":4706.250003814697,"wires":[["b7ee5f.81e631a"]]},{"id":"5e0d1792.28da08","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Junior","payload":"junior","topic":"","group":"MWC","order":"10","x":1608.9999923706055,"y":4753.749997138977,"wires":[["b7ee5f.81e631a"]]},{"id":"b720542c.103998","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"eSim","payload":"esim","topic":"","group":"MWC","order":"11","x":1614.0000228881836,"y":4803.750071525574,"wires":[["b7ee5f.81e631a"]]},{"id":"b0a3973.cfef168","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Optiga","payload":"optiga","topic":"","group":"MWC","order":"12","x":1610.2499923706055,"y":4857.499997138977,"wires":[["b7ee5f.81e631a"]]},{"id":"16fa7280.2febae","type":"exec","z":"4725901f.d6b02","command":"rosservice call /roboy/cognition/speech/synthesis/talk ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":2381.9999923706055,"y":4474.999997138977,"wires":[["6722d8c1.6e39a8"],["6722d8c1.6e39a8"],["6722d8c1.6e39a8"]]},{"id":"6722d8c1.6e39a8","type":"debug","z":"4725901f.d6b02","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":2722.9999923706055,"y":4471.999997138977,"wires":[]},{"id":"2c115e3e.6c2be2","type":"ui_button","z":"4725901f.d6b02","tab":"c32cc981.f21c58","name":"Bye","payload":"bye","topic":"","group":"MWC","order":"13","x":1610.2499923706055,"y":4906.249997138977,"wires":[["b7ee5f.81e631a"]]},{"id":"737020d5.8fc96","type":"exec","z":"4725901f.d6b02","command":"rostopic pub /roboy/control/matrix/leds/mode/simple std_msgs/Int32 \"data: 2\" ","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":2380.000030517578,"y":4270.0000648498535,"wires":[[],[],[]]},{"id":"10d70861.aa2298","type":"exec","z":"4725901f.d6b02","command":"rostopic pub /roboy/control/matrix/leds/off std_msgs/Empty \"{}\"","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":2336.25,"y":4333.75,"wires":[[],[],[]]}]