def constant_id_person_turns_around(): person = PeopleTracking() person.targetId = CONST_ID person.x = randint(10, 20) / 10.0 person.y = 0.5 person.vx = 0.0 person.vy = 0.0 person.covariances = [random() for x in range(16)] return person
def random_person(): person = PeopleTracking() person.targetId = randint(0, 10) person.x = randint(10, 20) / 10.0 person.y = randint(-10, 10) / 10.0 person.vx = randint(-17, 17) / 10.0 person.vy = randint(-17, 17) / 10.0 person.covariances = [random() for x in range(16)] return person
def random_person(): person = PeopleTracking() person.x = randint(0, 1000) / 10.0 person.y = randint(0, 1000) / 10.0 person.vx = randint(0, 100) / 10.0 person.vy = randint(0, 100) / 10.0 person.covariances = [random() for x in range(16)] return person
def fixed_person(): global personx global persony person = PeopleTracking() person.x = personx person.y = persony person.vx = randint(0, 100) / 10.0 person.vy = randint(0, 100) / 10.0 person.covariances = [random() for x in range(16)] personx= personx + 0.1 persony = persony + 0.0 return person
def random_person(): person = PeopleTracking() person.targetStatus = 0 isOccluded = randint(1, 2) if (isOccluded <= 1): person.targetStatus += OCCLUDDED_MASK isLegged = randint(1, 2) if (isLegged <= 1): person.targetStatus += LEGGED_TARGET_MASK isVisually = randint(1, 10) if (isVisually <= 1): person.targetStatus += VISUALLY_CONFIRMED_MASK global id_mock id_mock += 1 person.targetId = id_mock#randint(1, 20) person.x = randint(5, 25) / 10.0 person.y = randint(2, 7) / 10.0 person.vx = randint(-17, 17) / 10.0 person.vy = randint(-17, 17) / 10.0 person.covariances = [random() for x in range(16)] return person