Action API test

async test.test_action.test_play_action()[source]

Perform an action demo

Control the robot to execute a local (built-in/custom) action with a specified name and wait for the execution result to reply

Action name can be obtained with GetActionList

#PlayActionResponse.isSuccess: Is it successful

#PlayActionResponse.resultCode: Return code

async test.test_action.test_move_robot()[source]

Control the robot mobile demo

Control the robot to move 10 steps to the left (LEFTWARD) and wait for the execution result

#MoveRobotResponse.isSuccess: Is it successful

#MoveRobotResponse.code: Return code

async test.test_action.test_get_action_list()[source]

Get action list demo

Get the list of built-in actions of the robot and wait for the reply result

async test.test_action.main()[source]