Programming Mode
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.
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.
Remember to save your script as you go. Changes are not automatically updated.
Move forward 1.5m.
Rotate 180 Degrees
Take a photo
Turn on headlight to yellow
Move forward 1m
Rotate 180 Degrees
Reverse back .5m
Pause then Snap another photo
Lay Down
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.
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.
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.