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