1 from __future__
import print_function
3 ''' colors from printing on screen '''
24 ''' printing shortcuts '''
26 print(prefix + bcolors.OKBLUE + sentence + bcolors.ENDC)
29 print(prefix + bcolors.FAIL + sentence + bcolors.ENDC)
32 print(prefix + bcolors.WARNING + sentence + bcolors.ENDC)
34 prefix = bcolors.HEADER +
"[Person Recognition] " + bcolors.ENDC
37 ''' minimum number of faces found fo proceed with the challenge '''
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.2
45 ''' threshold to consider a person standing up or sitting down, in meters '''
46 sitting_height_treshold = 0.8
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"
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"}
60 '''Object types that can be recognized'''
61 object_types=[
'human']