Skip to content

Commit

Permalink
Fixed head rotation and increased deadzone
Browse files Browse the repository at this point in the history
  • Loading branch information
philiparola committed Nov 7, 2018
1 parent a641b55 commit 17619ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion catkin_ws/src/face_detection/src/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
webcam = cv2.VideoCapture(0)
webcamWidth = webcam.get(3)
webcamHeight = webcam.get(4)
deadzone = 100
deadzone = 200

# Create the haar cascade
faceCascade = cv2.CascadeClassifier(cascPath)
Expand Down
6 changes: 3 additions & 3 deletions catkin_ws/src/gesture_controls/src/gestures.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

face_angle_global = None
face_count_global = None
deadzone = 100
deadzone = 200

def angle_callback(data):
global face_angle_global
Expand Down Expand Up @@ -37,7 +37,7 @@ def leftWave():
LArmShoulderHori.publish(0.84)
LArmElbowVert.publish(1.05)
LArmElbowHori.publish(0)
NeckHori.publish(-0.94)
NeckHori.publish(0.95)
NeckVert.publish(0.8)
time.sleep(1)
LArmElbowHori.publish(1.05)
Expand All @@ -64,7 +64,7 @@ def rightWave():
LArmShoulderHori.publish(1.89)
LArmElbowVert.publish(1.05)
LArmElbowHori.publish(0)
NeckHori.publish(0.95)
NeckHori.publish(-0.94)
NeckVert.publish(0.8)
time.sleep(1)
RArmElbowHori.publish(0)
Expand Down

0 comments on commit 17619ea

Please sign in to comment.