1 ''' colors from printing on screen '''
2 from __future__
import print_function
25 ''' printing shortcuts '''
27 print(prefix + bcolors.OKBLUE + sentence + bcolors.ENDC)
30 print(prefix + bcolors.FAIL + sentence + bcolors.ENDC)
33 print(prefix + bcolors.WARNING + sentence + bcolors.ENDC)
36 prefix = bcolors.HEADER +
"[Person Recognition] " + bcolors.ENDC
39 ''' minimum number of faces found fo proceed with the challenge '''
43 ''' determines if a face is discarded for being too close to another already tracked (in meters, as far as i know)'''
44 face_proximity_treshold = 0.2
47 ''' threshold to consider a person standing up or sitting down, in meters '''
48 sitting_height_treshold = 0.8
51 ''' waypoint that the robot will visit to find people '''
52 waypoint_learning =
"person_rec_learning"
53 waypoint_living_room_1 =
"person_rec_living_room_1"
54 waypoint_living_room_2 =
"person_rec_living_room_2"
55 waypoint_living_room_3 =
"person_rec_living_room_3"
58 ''' point in the center of the living room, to filter location of humans '''
59 room_center = {
'x':1.365,
'y':0.978,
'z':0.0,
'frame_id':
"map"}
62 '''Object types that can be recognized'''
63 object_types=[
'human']