Skip to content
Snippets Groups Projects
Commit a9ceabcd authored by Antonio Andriella's avatar Antonio Andriella
Browse files

remove mouth

parent a8efaaf3
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ class Face: ...@@ -57,7 +57,7 @@ class Face:
self.robot_gender = rospy.get_param("/gender") self.robot_gender = rospy.get_param("/gender")
# determine the path and set the default path place # determine the path and set the default path place
os.chdir(r'/home/{}/cognitive_game_ws/src/robot_facial_expression/scripts'.format(getpass.getuser())) os.chdir(r'/home/{}/pal/cognitive_game_ws/src/robot_facial_expression/scripts'.format(getpass.getuser()))
''' Parts of the face of baxter are defined.''' ''' Parts of the face of baxter are defined.'''
self.backgroundImage = Image.open("data/"+self.robot_gender+"/baxter_background.png") # Background behind the eyes self.backgroundImage = Image.open("data/"+self.robot_gender+"/baxter_background.png") # Background behind the eyes
# Face partions objects # Face partions objects
...@@ -77,7 +77,7 @@ class Face: ...@@ -77,7 +77,7 @@ class Face:
faceImage.paste(self.eye.getEyes(), (int(self.eye.getPositionX()), int(self.eye.getPositionY())), self.eye.getEyes()) faceImage.paste(self.eye.getEyes(), (int(self.eye.getPositionX()), int(self.eye.getPositionY())), self.eye.getEyes())
faceImage.paste(self.eyelid.getEyelid(), (0, self.eyelid.getPosition()), self.eyelid.getEyelid()) faceImage.paste(self.eyelid.getEyelid(), (0, self.eyelid.getPosition()), self.eyelid.getEyelid())
faceImage.paste(self.skin.getSkin(), (0, 0), self.skin.getSkin()) faceImage.paste(self.skin.getSkin(), (0, 0), self.skin.getSkin())
faceImage.paste(self.mouth.getMouth(), (0, 0), self.mouth.getMouth()) #faceImage.paste(self.mouth.getMouth(), (0, 0), self.mouth.getMouth())
faceImage.paste(self.eyebrow.getEyebrow(), (0, 0), self.eyebrow.getEyebrow()) faceImage.paste(self.eyebrow.getEyebrow(), (0, 0), self.eyebrow.getEyebrow())
image = array(faceImage) image = array(faceImage)
return image return image
...@@ -194,7 +194,7 @@ class Face: ...@@ -194,7 +194,7 @@ class Face:
# Emotions # Emotions
def showEmotion(self, mouthIndex, eyebrowIndex, cv2, publish): def showEmotion(self, mouthIndex, eyebrowIndex, cv2, publish):
self.mouth.setMouth(mouthIndex) #self.mouth.setMouth(mouthIndex)
self.eyebrow.setEyebrow(eyebrowIndex) self.eyebrow.setEyebrow(eyebrowIndex)
self.show(publish) self.show(publish)
......
scripts/data/male/skin/baxter_skin_0_1.png

78.2 KiB | W: | H:

scripts/data/male/skin/baxter_skin_0_1.png

92.8 KiB | W: | H:

scripts/data/male/skin/baxter_skin_0_1.png
scripts/data/male/skin/baxter_skin_0_1.png
scripts/data/male/skin/baxter_skin_0_1.png
scripts/data/male/skin/baxter_skin_0_1.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment