Programming Mode

Introduction

Aside from the basic navigational and mapping functions that are built into the control system, the RobotDog can be manually programmed to perform automated functions. This can be useful for tasks that need to be repeated.

Through the Unitree Go App, you can access a visual interface for basic programming. You can create and save multiple scripts and run them as required.

To access the program menu, select Function from the home screen.

Function Menu
Programming
Select the + to create a new program

On the left-hand side of the screen, you will see a list of selectable commands that can be used for putting together a script. These are all drag and drop elements, and once placed into the sequence the individual settings can be adjusted.

Movement
Pose Action
Operation Mode
Media Action
Lighting Action
Control

Creating a Script

We are going to ask the RobotDog to perform some simple movement actions, by dragging and dropping the appropriate commands and adding them to the sequence. Watch the video below for a demonstration.

  1. Move forward 1.5m.

  2. Rotate 180 Degrees

  3. Take a photo

  4. Turn on headlight to yellow

  5. Move forward 1m

  6. Rotate 180 Degrees

  7. Reverse back .5m

  8. Pause then Snap another photo

  9. Lay Down

Creating a simple script

Before sending the script to the RobotDog, we will preview the simulation by pressing the play button labeled Simulator on the bottom right of the screen.

Simple Script Simulation

Once you are ready to execute the script with the RobotDog, close the simulator mode by tapping the arrow on the simulation window. You will notice the play button change from Simulator to Robot.

Pushing play now will execute the script.

Tap here to exit simulation mode.
Check Robot is activated prior to executing.

Advanced Techniques

There are some more advanced techniques you could utilise such as using the Defining Function command. This could be useful if there are particular steps or functions that need to be repeated multiple times within a larger script. Here's how to set this up:

Scroll to the bottom of the menu on the left-hand side of the screen. You will see the purple functions menu. Any defined functions you create will become listed and selectable from this menu.

To get started, drag and drop the define function tool to the workspace. Give your function a name, to make it easier to identify later. Defined functions will only be available within the current program you are working in.

Watch the video below to see the function groups in action.

Name the function groups
Function Groups appear in menu
Create a script linking function groups.
Defined Functions in use
Executing a Script on the RobotDog

Last updated

Was this helpful?