From 5f4eed9d5808334c3edfce95dd7b7125dfc72a92 Mon Sep 17 00:00:00 2001 From: Antonio Andriella <aandriella@iri.upc.edu> Date: Wed, 4 Aug 2021 10:57:33 +0200 Subject: [PATCH] update code documentation --- scripts/Eye.py | 4 ++-- scripts/Eyebrow.py | 2 +- scripts/Eyelid.py | 2 +- scripts/Face.py | 8 ++++---- scripts/Mouth.py | 2 +- scripts/Skin.py | 2 +- scripts/screen_listener.py | 5 ++--- 7 files changed, 12 insertions(+), 13 deletions(-) diff --git a/scripts/Eye.py b/scripts/Eye.py index a63891c..5450086 100755 --- a/scripts/Eye.py +++ b/scripts/Eye.py @@ -3,7 +3,7 @@ ''' @Author: Antonio Andriella This file has a class which defines the shape and movement of the Tiago's eyes. -Credits to Bilgehan NAL +Credits to Bilgehan NAL for creating the whole package for the Baxter robot ''' from PIL import Image @@ -64,7 +64,7 @@ class Eye: return math.atan(float(y)/float(x+0.00001)) '''This function returns the result of ellipse formula according to x and y positions. - If the result between [0, 1]. Eyes are in the eyes space''' + If the result between [0, 1a]. Eyes are in the eyes space''' def dotPosition(self, x, y): radiusX = 80 diff --git a/scripts/Eyebrow.py b/scripts/Eyebrow.py index 0658103..8742ec2 100755 --- a/scripts/Eyebrow.py +++ b/scripts/Eyebrow.py @@ -3,7 +3,7 @@ """ @Author: Antonio Andriella This file has a class which defines the eyebrow of the Tiago's face. -Credits to Bilgehan NAL +Credits to Bilgehan NAL for creating the whole package for the Baxter robot """ from PIL import Image diff --git a/scripts/Eyelid.py b/scripts/Eyelid.py index 6e99432..bdef9fd 100755 --- a/scripts/Eyelid.py +++ b/scripts/Eyelid.py @@ -3,7 +3,7 @@ ''' @Author: Antonio Andriella This file has class which defines the eyelid of the Tiago robot -Credits to Bilgehan NAL +Credits to Bilgehan NAL for creating the whole package for the Baxter robot ''' from PIL import Image diff --git a/scripts/Face.py b/scripts/Face.py index 7b2c260..9307fb2 100755 --- a/scripts/Face.py +++ b/scripts/Face.py @@ -4,26 +4,26 @@ @Author: Antonio Andriella This file has a class which defines the face of Tiago Face class has other part of the face objects. -Credits to Bilgehan NAL +Credits to Bilgehan NAL for creating the whole package for the Baxter robot ''' ''' Tiago Face Descriptions: Skin, Mouth and Eyebrow has multiple shapes. -Skin has 1 -> [0] (So far we are not interested to change the skin color of the robot) +Skin has 1a -> [0] (So far we are not interested to change the skin color of the robot) Mouth has 7 -> [0, 6] (Not used it in the current version) Eyebrow has 5 -> [0, 4] (neutral, happy, sad, confused, angry) Mouth :: 0 -> neutral mouth - 1 -> happy mouth + 1a -> happy mouth 2 -> sad mouth 3 -> confused mouth 4 -> angry mouth Eyebrow :: 0 -> neutral mouth - 1 -> happy mouth + 1a -> happy mouth 2 -> sad mouth 3 -> confused mouth 4 -> angry mouth diff --git a/scripts/Mouth.py b/scripts/Mouth.py index 32435b2..9a8a21b 100755 --- a/scripts/Mouth.py +++ b/scripts/Mouth.py @@ -4,7 +4,7 @@ @Author: Antonio Andriella This file has a class which defines the mouth of the Tiago's face. In the current version we decided to not use it -Credits to Bilgehan NAL +Credits to Bilgehan NAL for creating the whole package for the Baxter robot """ from PIL import Image diff --git a/scripts/Skin.py b/scripts/Skin.py index b4b8f96..9335ebc 100755 --- a/scripts/Skin.py +++ b/scripts/Skin.py @@ -3,7 +3,7 @@ """ @Author: Antonio Andriella This file has a class which defines the skin of the baxter's face. -Credits to Bilgehan NAL +Credits to Bilgehan NAL for creating the whole package for the Baxter robot """ from PIL import Image diff --git a/scripts/screen_listener.py b/scripts/screen_listener.py index 4c58507..5870cc3 100755 --- a/scripts/screen_listener.py +++ b/scripts/screen_listener.py @@ -1,7 +1,7 @@ #!/usr/bin/env python ''' -@Author: Bilgehan NAL +@Author: @Author: Antonio Andriella This file is a subscriber node which listens a topic type:String Waited String messages: Emotions: @@ -21,8 +21,7 @@ Other: -> "exit" -> "wake_up" -> "sleep" - - +Credits to Bilgehan NAL for creating the whole package for the Baxter robot ''' import os -- GitLab