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_stop_behavior()[source]
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

async test.test_expression.test_control_mouth_lamp()[source]

Test control mouth light

Let the robot’s mouth light turn off and wait for the result

#ControlMouthResponse.isSuccess: Is it successful

#ControlMouthResponse.resultCode: Return code

async test.test_expression.main()[source]