Expression API test¶
- async test.test_expression.test_play_expression()[source]¶
Test playing emoji
Let the robot play a built-in emoticon named “codemao1” and wait for the reply result
#PlayExpressionResponse.isSuccess: Is it successful
#PlayExpressionResponse.resultCode: Return code
- async test.test_expression.test_control_behavior()[source]¶
Test control performance
Let the robot start a dance named “dance_0004” and wait for the response result
- async test.test_expression.test_set_mouth_lamp()[source]¶
Test setting mouth light
Set the robot’s mouth light to normal mode, green and always on for 3s, and wait for the reply result
When mode=NORMAL, the duration parameter works, indicating how long it will stay on
When mode=BREATH, the breath_duration parameter works, indicating how often to breathe
#SetMouthLampResponse.isSuccess: Is it successful
#SetMouthLampResponse.resultCode: Return code