ok
CHOOSE YOUR LANGUAGE

Zenbo APP Builder – Blocks (API) Description

Name

Icon

Parameter

Description

Head 

Vertical : -15° ~ 55°

Positive value means that the robot will look up.

Horizontal : -45° ~ 45°

Positive value means that the robot will turn to the left.

Speed Level : 1 ~ 3

Blocking: run next block after current function finished.

Non-Blocking: run next block after current function started.

Ask robot to turn its head with specified speed level.

Base 

Direction: up, down, left, right;

Up: go forward

Down: go backward; turn back and go straight and then turn back again.

Left: turn left and go straight

Right: turn left and go straight

Distance: relative distance in centimeter.

Speed Level : 1 ~ 7

Blocking: run next block after current function finished.

Non-Blocking: run next block after current function started.
Move a relative distance of direction with specified speed level.

Angle: relative rotational angle in degree.

Speed Level : 1 ~ 7

Blocking: run next block after current function finished.

Non-Blocking: run next block after current function started.
Rotate a relative angle with specified speed level.
Face 

Face type:

1. interested

2. doubting

3. proud

4. default

5. happy

6. expecting

7. shocked

8 .questioning

9. impatient

10. confident

11. active

12. pleased

13. helpless

14. serious

15. worried

16. pretending

17. lazy

18. aware_R

19. tiredZenbo

20. shy

21. innocent

22. singing

23. aware_L

24. default_still
Set the robot expression.
Speech 

String: candidate sentences of text to speech

Speed: slow, medium, fast
Ask robot to speech one string among three strings.

String: sentence of text to speech

Speed: slow, medium, fast 
Ask robot to speech given string.
Sound  Duration: The length of time the recoding in seconds. Ask robot to record sound.

Volume:  volume of media sound.

Ask robot to play the sound just recorded.
none Stop playing the recorded sound.
none Stop recording sound.
LED 

Side : right, left, both

Right: Lights on right side

Left: Lights on left side.

Both: Lights on both sides.

Type: Led pattern.

Blink, Twinkle

Breathing, Marquee,

Charging, Stable

Color: the color for LED lights.

Get color by color picker.

Led Number: number for turning on led. 8 LEDs for one side.

One: turn on one LED.

Quarter: turn on 2 LEDs.

Half:  turn on 2 LEDs.

All: lights on all LEDs

Brightness: 0~100, 0 means turning off the light.

Duration: The length of time the Led would be lighted in seconds.
Control wheel lights.
none Stop wheel lights.
Camera  none Ask robot to take a picture.
Duration: The length of time the picture would be watched in seconds. Ask robot to display the picture just captured.
Duration: The length of time the recoding in seconds. Ask robot to record video.
None Ask robot to stop record.

Volume:  volume of media sound.

Duration: The length of time the video would be watched in seconds.
Ask robot to play the video just recorded.
none Stop playing the recorded video.
Sensing

Condition: above, below

Value: number of battery remaining energy (0~100)
If battery encounter condition, run inner blocks
none If detect robot hardware was in charge, run inner blocks.
none If detect robot hardware wasn't in charge, run inner blocks
none If detect person face, run inner blocks.
Multi-media

Source: the file you want to play, it can be video or music.

Volume: volume of media sound

Duration: The length of time the source would be played in seconds.

Play selected media source, adjust volume and duration with given value.

When robot plays the media, it also run the inner blocks at the same time.

Source: the file you want to play, it can be video or music.

Volume: volume of media sound

Duration: The length of time the source would be played in seconds.
Play selected media source, adjust volume and duration with given value.
none Stop playing the media source.
Interface

TTS: ask robot to speak when listview show.

Title: title show above listview.

Event name: call event which user want when the item is selected.

Event string: text to show on item.

Intent Id: voice commands settings.

Id: Let dialog state set to specific plan.

Value: Instances set in Concepts of Dialog System.

Context: Input Context of Dialog System.

Display a list view on screen, show correspond string in view, selected item by voice or click.

Each item’s behavior would be defined in Event Receive Block.

TTS: ask robot to speak when gridview show

Title: title show above gridview

item : put the image which you want to show

Event name: call event which user want when the item is selected.

Event string: text to show on item.

Intent Id: voice commands settings.

Id: Let dialog state set to specific plan.

Value: Instances set in Concepts of Dialog System.

Context: Input Context of Dialog System.
Display a grid view on screen, show correspond string in view , selected item by voice or click
SpecificAction

action type:

15.跳舞-1大點

17.音樂播放

21.跳舞-1小點

24.跳舞-2

25.搖頭      

26.搖頭晃腦  

Ask robot to do specific action.

It is a non-stop action till call “StopSpecificAction”. You also can use other blocks like “logic” or “sensing” blocks to interrupt it.

action type:

0. 輕鬆(預設)      

1. 聽指令/briefing(高) 

2. 完成任務/滿足         

3. 打招呼  

4. 一般訊息        

5. 待機(無聊)      

6. 充電(滿足)      

7. 聽指令/briefing(矮)

8. 連續任務衝突

9. 失望(使用者結束)   

10.沮喪(使用者結束)   

11.待機(疲倦)     

12.快沒電  

13.充電(愉悅)     

14.充電(慵懶)     

16.聽懂      

18.向左慢轉        

19.向左急轉        

20.搖頭(回答否定)       

22.害羞      

23.聽不懂  

27.跳舞-極快       

28.跳舞搖頭-極快

42.結束打招呼

43.一般訊息

44.向右慢轉

45.向右急轉        

46.結束向左慢轉

47.結束向右慢轉

48.結束向左急轉

49.結束向右急轉

54.解除連續任務衝突
Ask robot to do specific action.
none Stop running specific action.
Loop Repeat: how many times you want to play. How many times you want to play the inner blocks.
Variable

Item: name of variable.

Also can add new one variable with drop down menu.
Variable setting. Pass a value to specific variable.
None Get battery percentage.

Intent Id: voice commands settings.

Id: Let dialog state set to specific plan.

Context: Input Context of Dialog System.
Ask robot to open ear to listen command.
None Get TTS volume.
Logic Condition setting with other blocks, like “Variable” and “others” blocks. The if-do program to execute the inner blocks only if this condition is true.
Condition setting with other blocks, like “Variable” and “others” blocks. First variable equals to second variable.
Others none Project’s entry point. It means which block stack would be executed.
String: text to setting value of string type
Number  to setting value of integer type
Condition setting with other blocks, like “Variable” and “others” blocks. The repeat-do program to repeatedly execute the inner block stack only if this condition is true.
Go To Top