Monitor API test

async test.test_event.test_speech_recognise()[source]

Test monitor speech recognition

Monitor speech recognition events, verify whether the recognition is successful, whether the recognized result text has a value, and store the result in the result array

Delay 5s, end the function, check whether there is a value in the result

async test.test_event.test_face_detect()[source]

Test the number of monitored faces

Monitor the number of faces, verify the successful result, verify that the number of faces is greater than 0 (need to be in front of the robot), and store the result of the number of faces in the result array

Delay 5s, end the function, check whether the result array has a value

async test.test_event.test_face_recognise()[source]

Test monitor face recognition

Monitor the face recognition event, verify the successful result, verify whether the recognized face information is empty (the face needs to be in front of the robot), and store the face information in the result array

End monitoring after 10s

Delay 5s, end the function, check whether the result array has a value

async test.test_event.test_infrared_distance()[source]

Test monitor infrared distance

Monitor infrared distance events, verify whether the result distance is valid (distance>0), and store it in the result array

Delay 5s, end the function, check whether the result array has a value

Returns:

async test.test_event.test_robot_posture()[source]

Test and monitor robot attitude changes

Monitor the robot posture change (manually change the robot posture), verify whether the result status is valid (status>0), and store it in the result array

Delay 5s, end the function, and check whether the result array has a value

Returns:

async test.test_event.test_head_racket()[source]

Test listening for head events

Monitor the robot head event (manually tap the robot head), verify whether the result type is valid (type>0), and store it in the result array

Delay 5s, end the function, and check whether the result array has a value

Returns:

async test.test_event.main()[source]