robocup_knowledge
rwc2015/challenge_person_recognition.py
Go to the documentation of this file.
1 from __future__ import print_function
2 
3 ''' colors from printing on screen '''
4 class bcolors:
5  HEADER = '\033[95m'
6  OKBLUE = '\033[94m'
7  OKGREEN = '\033[92m'
8  WARNING = '\033[93m'
9  FAIL = '\033[91m'
10  ENDC = '\033[0m'
11  BOLD = '\033[1m'
12  UNDERLINE = '\033[4m'
13 
14 ''' pose "enum" '''
15 class Pose:
16  Standing = 0
17  Sitting_down = 1
18 
19 ''' gender "enum" '''
20 class Gender:
21  Male = 0
22  Female = 1
23 
24 ''' printing shortcuts '''
25 def printOk(sentence):
26  print(prefix + bcolors.OKBLUE + sentence + bcolors.ENDC)
27 
28 def printError(sentence):
29  print(prefix + bcolors.FAIL + sentence + bcolors.ENDC)
30 
31 def printWarning(sentence):
32  print(prefix + bcolors.WARNING + sentence + bcolors.ENDC)
33 
34 prefix = bcolors.HEADER + "[Person Recognition] " + bcolors.ENDC
35 
36 
37 ''' minimum number of faces found fo proceed with the challenge '''
38 min_faces_found = 3
39 
40 
41 ''' determines if a face is discarded for being too close to another already tracked (in meters, as far as i know)'''
42 face_proximity_treshold = 0.25
43 
44 
45 ''' threshold to consider a person standing up or sitting down, in meters '''
46 sitting_height_treshold = 1.2
47 
48 
49 ''' waypoint that the robot will visit to find people '''
50 waypoint_learning = "person_rec_learning"
51 waypoint_living_room_1 = "person_rec_living_room_1"
52 waypoint_living_room_2 = "person_rec_living_room_2"
53 waypoint_living_room_3 = "person_rec_living_room_3"
54 
55 
56 ''' point in the center of the living room, to filter location of humans '''
57 room_center = {'x':1.365, 'y':0.978, 'z':0.0, 'frame_id':"map"}
58 
59 
60 '''Object types that can be recognized'''
61 object_types=['human']
challenge_person_recognition.printOk
def printOk(sentence)
Definition: reo2016/challenge_person_recognition.py:26
challenge_person_recognition.printError
def printError(sentence)
Definition: reo2016/challenge_person_recognition.py:29
challenge_person_recognition.printWarning
def printWarning(sentence)
Definition: reo2016/challenge_person_recognition.py:32