ok
CHOOSE YOUR LANGUAGE

Blocks Detail Description

APP Builder displays each of the different behavioral functions of Zenbo using a simple block. Blocks could be used stand alone or serialized combination by pulling them out from web graphical interface. These different behavioral functions are listed on blow:

Neck
Body
Face
Speech
Audio
LED
Camera
Detection
Multimedia
Interface
Built-in Movement
Loop
Variable
Logic

Event
Others

 

Neck 


Neck Movement

Ask robot to turn its head with specified speed level.

 Parameters
 Blocking  Run next block after current function has finished.
 Non-Blocking  Run next block after current function has started.
 Speed  1 ~ 3
 Vertical  -15° ~ 55° 
 Positive value means that the Zenbo will look up.
 Horizontal  -45° ~ 45°
 Positive value means that the Zenbo will turn to the left.

 

 

Body 


Body Movement

Move a relative distance with specified direction and speed level.

 Parameters
 Blocking  Run next block after current function has finished.
 Non-Blocking  Run next block after current function has started.
 Speed  1 ~ 7
 Direction  Up, down, left, right.
 Forward: Go forward
 
Backward: 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 centimeters.

 

 

Body Rotation

Rotate a relative angle with specified speed level.

 Parameters
 Blocking  Run next block after current function has finished.
 Non-Blocking  Run next block after current function has started.
 Speed  1 ~ 7
 Angle  Relative rotational angle in degrees.

 

 

Face 


Face Expression

Set the robot expression.

 Parameters
 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  25. hide face

 

 

Speech 


Speak

Ask robot to speak given string.

 Parameters
 Speak  Sentence of text to speech.
 Speed  Slow, medium, fast.

 

 

Speak

Ask robot to speak one string among three strings.

 Parameters
 Speed  Slow, medium, fast.
 String  Candidate sentences of text to speech.

 

 

Audio 


Audio Recording

Ask robot to record sound.

 Parameters
 Duration  The length of the recoding in seconds.

 

 

Play Recorded Audio

Ask robot to play the sound that was just recorded.

 Parameters
 Volume  Volume of media sound.
 Duration  The length of time that the recording would be played in seconds.

 

 

Stop Audio Recording

Ask robot to stop recording sound.

 Parameters
 None

 

 

Stop Playing Recorded Audio

Ask robot to stop playing the recorded sound.

 Parameters
 None

 

 

LED 


Wheel LED at Non-Blocking

Control wheel lights.

 Parameters
 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, Static.
 Display  Number for turning on led. 8 LEDs on each side.
 
One: Turn on one LED.
 
Quarter: Turn on 2 LEDs.
 
Half: Turn on 4 LEDs.
 
All: Turn on all LEDs.
 Color  The color for LED lights. 
 Select color by the color picker.
 Brightness  0~100, 0 means turning off the light.
 Duration  The length of time that the LED would be turned on in seconds.

 

 

Stop Wheel LED

Stop wheel lights.

 Parameters
 None

 

 

Camera 


Video Recording

Ask robot to record video.

 Parameters
 Duration  The length of the recoding in seconds.

 

 

Play Recorded Video

Ask robot to play the video that was just recorded.

 Parameters
 Volume  Volume of media sound.
 Duration  The length of time that the video would be played in seconds.

 

 

Stop Video Recording

Ask robot to stop recording video.

 Parameters
 None

 

 

Stop Recorded Video

Ask robot to stop playing the recorded video.

 Parameters
 None

 

 

Take a Picture

Ask robot to take a picture.

 Parameters
 None

 

 

Show Took Picture

Ask robot to display the picture that was just captured.

 Parameters
 Duration  The length of time that the picture would be displayed in seconds.

 

 

Detection 


When Face was Detected

If the robot detects a person's face, run inner blocks.

 Parameters
 None

 

 

When Not in Charge

If the robot detects that the hardware is not in charge, run inner blocks.

 Parameters
 None

 

 

When In Charge

If the robot detects that the hardware is in charge, run inner blocks.

 Parameters
 None

 

 

When Battery

If the battery encounters the condition, run inner blocks.

 Parameters
 Condition  Above, below.
 Value  Percentage of battery remaining (0~100).

 

 

When Hear

If the robot hears a specific command, run inner blocks.

 Parameters
 Context  Input Context of Dialog System.
 Intent Id  Let dialog state set to specific plan.

 

 

Multimedia 


Play Media at Non-Blocking

Play selected media source, adjust volume and duration with given value.
When robot plays the media, it will also run the inner blocks at the same time.

 Parameters
 Source  The file that you want to play, it can be video or music file.
 Volume  Volume of media sound.
 Duration  The length of time that the source would be played in seconds.
 Start Form  Start playing media at a given time in seconds.

 

 

Play Media at Blocking

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

 Parameters
 Source  The file that you want to play, it can be video or music file.
 Volume  Volume of media sound.
 Duration  The length of time that the source would be played in seconds.
 Start Form  Start playing media at a given time in seconds.

 

 

Play Music with Image at Blocking

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

 Parameters
 Music Source  The music that you want to play.
 Image Source  The image that you want to display.
 Volume  Volume of media sound.
 Duration  The length of time that the source would be played in seconds.
 Start Form  Start playing music at a given time in seconds.

 

 

Play Music with Image at Non-Blocking

Play selected media source, adjust volume and duration with given value.
When robot plays the media, it will also run the inner blocks at the same time.

 Parameters
 Music Source  The music that you want to play.
 Image Source  The image that you want to display.
 Volume  Volume of media sound.
 Duration  The length of time that the source would be played in seconds.
 Start Form  Start playing music at a given time in seconds.

 

 

Stop Media Playing

Stop playing the media source.

 Parameters
 None

 

 

Interface 


Tips UI

Show a Built-In user interface to hint user how to command robot.

 Parameters
 Tips UI’s ID  The id of Tips UI.
 Countdown UI Title  The title of hint page.
 Countdown UI Duration  The length of time that the Built-In user interface would be display in seconds.
 Item  Tips’ list.
 
Hint: The subtitle of commend.
 
Content: The detail description of command.

 

 

GridView UI

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

 Parameters
 Text-To-Speech  Ask robot to speak when grid view is shown
 Title  Title shown above grid view.
 Intent Id  Voice commands settings. 
 Plans Id: Plans id in Dialog system.
 Value: Belief settings in Intents of Dialog System.
 Context: The input context of Plans id in Dialog system.
 Tips UI’s ID  Defined that which Tips would be executed.
 Event  Event’s ID:  Call the event which the user wants when the item is selected.
 Media Source:  Select the media source which you want to show.

 

 

ListView UI

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 the "When receive" block.

 Parameters
 Text-To-Speech   Ask robot to speak when list view is shown.
 Title  Title shown above list view.
 Intent Id  Voice commands settings.
 Plans Id: Plans id in Dialog system.
 Value: Belief settings in Intents of Dialog System.
 Context: The input context of Plans id in Dialog system.
 Tips UI’s ID  Defin that which Tips would be executed.
 Event  Event’s ID:  Call the event which user wants when the item is selected.
 Event string:  Text to show on item

 

 

Built-in Movement 


One-Time Movement

Ask robot to do specific action.

 Parameters
 Action type  0. Default_1  1. Default_2  2. Nod_1  3. Head_up_1  4. Head_up_2
 5. Shake_head_1  6. Head_up_3  7. Head_up_4  8. Head_down_1  9. Head_down_2
 10. Head_down_3  11. Shake_head_2  12. Head_down_4  13. Head_up_5  14. Head_down_5
 16. Head_up_5  18. Turn_left_1  19. Turn_left_2  20. Shake_head_3  22. Body_twist_1
 23. Body_twist_2  27. Dance_3  28. Shake_head_5  42. Head_down_6  43. Head_down_7
 44. Turn_right_1  45. Turn_right_2  46. Turn_left_reverse_1  47. Turn_right_reverse_1  48. Turn_left_reverse_2
 49. Turn_right_reverse_2  54. Head_up_6      

 

 

Recursive Movement

Ask robot to do specific action.
It is a non-stop action till call “Stop Movement” is received. You also can use other blocks like “Logic” or “Detection” blocks to interrupt it

 Parameters
 Action type  15. Dance_b_1  17. Music_1  21. Dance_s_1
 24. Dance_2  25. Shake_head_4  26. Head_twist_1

 

 

Stop Movement 

Stop running built-in movement.

 Parameters
 None

 

 

Loop 


Repeat _ times...do

Run the inner blocks the specified number of times.  

 Parameters
 Repeat  Number of times you want to repeat.

 

 

While...do

While the condition is true, run the inner blocks continuously.

 Parameters
 Condition setting with other blocks, like “Variable” and “Others” blocks.

 

 

Break

Break the loop.

 Parameters
 None

 

 

Variable 


Number to Setting

Value of integer type.

 Parameters
 Number to setting

 

 

Set ... to

Variable setting. Pass a number to a specific variable.

 Parameters
 myVariable  Name of variable.
 You can also add one new variable from the drop down menu.

 

 

Set ... to

Variable setting. Pass a string to a specific variable.

 Parameters
 myVariable  Name of variable.
 You can also add one new variable from the drop down menu.

 

 

Number Variable

Return this number of variable.

 Parameters
 None

 

 

String Variable

Return this string of variable.

 Parameters
 None

 

 

Is In Charge

Checks if robot is in charge or not.

 Parameters
 In Charge  Checks if robot is in charge or not. If in charge, then the block becomes true.
 Not In Charge  Not In Charge: Checks if robot is in charge or not. If not in charge, then the block becomes true.

 

 

Human Body Detected

Checks if somebody is detected.

 Parameters
 None

 

 

Battery Percentage

Get battery percentage. 

 Parameters
 None

 

 

Speaker Volume

Get Text-To-Speech‘s volume.

 Parameters
 None

 

 

Listen

Ask robot to listen to command.

 Parameters
Listen  == : Checks if the values of two operands are equal or not. If yes, then the condition becomes true.
 != : Checks if the values of two operands are equal or not. If the values are not equal, then the condition becomes true.
 Intent Id  Voice commands settings. 
 Plans Id: Let dialog state set to specific plan.
 Context: The input context of Plans id in Dialog system

 

 

Variable Operation

Adds or subtracts 1 from a variable.

 Parameters
 myVariable  Select which variable value would be changed.

 

 

Logic 


If ... do

If the condition is true, run the inner blocks.

 Parameters
 Condition setting with other blocks, like “Variable” and “Others” blocks.

 

 

Operation

Call Logical AND operator. If both the operands are non-zero, then the condition becomes true.

 Parameters
 Condition setting with other blocks, like “Variable” and “Others” blocks.

 

 

Condition Setting Blocks

If the first variable is equal to the second variable, run the inner blocks.

 Parameters
 Condition setting with other blocks, like “Variable” and “Others” blocks.

 

 

Boolean

Value of boolean type.

 Parameters
 Boolean to setting

 

 

Event 


Broadcast 

The Event's behavior can be defined in "When receive" block.

 Parameters
 Call the specific event which user wants.

 

 

When receive 

The block would be triggered when "Broadcast" is running with corresponding Event's id.

 Parameters
 Event’s ID

 

 

Event's ID  and Medio Source

An element for Grid view extensions. Call the event which user wants when the item is selected.

 Parameters
 Event’s ID  Call the event which user wants when the item is selected.
 Media Source  Picture to show on item.

 

 

Event's ID and String

An element for List view extensions.    Call the event which user wants when the item is selected.

 Parameters
 Event’s ID  Call the event which user wants when the item is selected.
 String  Text to show on item.

 

 

Hint ... Content

Hint and content in Tips View.

 Parameters
 Hint  The subtitle of commend
 Content  The detail description of command.

 

 

Others 


Start 

Project’s entry point. This shows which block stack would be executed.

 Parameters
 None

 

 

Waiting(sec)

Do nothing for the specified number of seconds.The block is relative with last block.

 Parameters
 The length of the waiting in seconds.

 

 

String

Value of string type.

 Parameters
 String  Text to setting

 

 

Start at(sec)

Run block at the specified time (in seconds).The blocks is absolute with “start” block,like a timestamp

Parameters
 The specific time point to run next block.
Go To Top