Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
robot_face_expression
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antonio Andriella
robot_face_expression
Commits
a9ceabcd
Commit
a9ceabcd
authored
5 years ago
by
Antonio Andriella
Browse files
Options
Downloads
Patches
Plain Diff
remove mouth
parent
a8efaaf3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/Face.py
+3
-3
3 additions, 3 deletions
scripts/Face.py
scripts/data/male/skin/baxter_skin_0_1.png
+0
-0
0 additions, 0 deletions
scripts/data/male/skin/baxter_skin_0_1.png
with
3 additions
and
3 deletions
scripts/Face.py
+
3
−
3
View file @
a9ceabcd
...
...
@@ -57,7 +57,7 @@ class Face:
self
.
robot_gender
=
rospy
.
get_param
(
"
/gender
"
)
# 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.
'''
self
.
backgroundImage
=
Image
.
open
(
"
data/
"
+
self
.
robot_gender
+
"
/baxter_background.png
"
)
# Background behind the eyes
# Face partions objects
...
...
@@ -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
.
eyelid
.
getEyelid
(),
(
0
,
self
.
eyelid
.
getPosition
()),
self
.
eyelid
.
getEyelid
())
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
())
image
=
array
(
faceImage
)
return
image
...
...
@@ -194,7 +194,7 @@ class Face:
# Emotions
def
showEmotion
(
self
,
mouthIndex
,
eyebrowIndex
,
cv2
,
publish
):
self
.
mouth
.
setMouth
(
mouthIndex
)
#
self.mouth.setMouth(mouthIndex)
self
.
eyebrow
.
setEyebrow
(
eyebrowIndex
)
self
.
show
(
publish
)
...
...
This diff is collapsed.
Click to expand it.
scripts/data/male/skin/baxter_skin_0_1.png
+
0
−
0
View replaced file @
a8efaaf3
View file @
a9ceabcd
78.2 KiB
|
W:
|
H:
92.8 KiB
|
W:
|
H:
2-up
Swipe
Onion skin
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment