Kuavo Docs
Common Tools

Kuavo Robot Desktop Software User Manual

1: This tool is a visual robot motion editing application that supports motion editing for the robotic arm, fingers, and head. It lets you intuitively design and preview robot motions and export them as editable JSON motion files.

2: It can connect to the robot to enable the following features (you can also edit motions without connecting to the robot): connecting to and switching the robot's Wi-Fi, downloading logs to analyze and locate problems, quickly replacing the remote controller's voice motion files, and code version management.

3: After editing motions, the tool remembers the current directory location, so you can directly import the motions you have designed and use the remote controller shortcut keys to perform a demonstration on the real robot (it is recommended to verify the motions in simulation first, then migrate them to the real robot).

Download and Installation

The tool is an application for the Windows platform; simply download the exe file and it is ready to use.

  • Download address: Kuavo Robot Desktop Software
  • After the download is complete, double-click the exe file to run it. The interface after launching is shown below:

Startup interface

Motion Design

Usage Notes

  • The motor's rotation direction is consistent with the positive direction of the robot's coordinate system and follows the right-hand rule. Grip the motor's rotation axis with your right hand so that your thumb points in the positive direction of the rotation axis (the positive direction of the rotation axis is consistent with the positive direction of the robot's coordinate system); the direction in which your remaining four fingers curl indicates the positive rotation direction.
  • The frame rate on the timeline is 100 frames/second.
  • There must be a certain time interval between two motions; otherwise the motions cannot be fully executed.
  • It is recommended to save your current work before editing to avoid accidental loss.
  • When designing motions, pay attention to the robotic arm's range-of-motion limits to avoid collisions.
  • Tool interface description:
    • Right area: 3D robot model preview
    • Head timeline: used to edit keyframes
    • Bottom right: basic motion library
    • Top right toolbar: contains function buttons such as play and save
  • You can edit motions without connecting to the robot.

Selecting the Robot Model

Select the appropriate version according to your actual needs. This example uses the 4pro short-arm version, but the operations do not change for different robot versions.

  • Click File, then click New to select the robot version. New alt text

Learning to Edit Arm Joints

  • First click the robot's arm, and the editable joint points will pop up on the left, as shown below:

Joint point display

  • To learn and edit motions more intuitively, you can zero the angle of each joint before you start editing. This is because, in the robotic arm's coordinate system, a change in the angle of one joint affects the motion of the other joints. When all joint angles are zeroed, you can more clearly observe and understand the independent motion effect of a single joint. Once you understand how a single joint rotates, you can start editing motions.

Actual Motion Design

  • A robotic arm's motion is composed of multiple independent joint motions. Each joint's motion can be regarded as a sub-motion, and these sub-motions are combined in a certain order and logic to form a complete arm motion. For example, a waving motion can be decomposed into several sub-motions such as raising the shoulder joint, bending the elbow joint, and rotating the wrist. By precisely controlling the motion of each joint, complex arm motions can be achieved. The following example explains how to design a waving motion.

  • Set the robotic arm angles, then click OK:

Wave 1

  • Right-click at about frame 60, select Insert Keyframe, then click Full Body:

Keyframe 1

  • Right-click again; Save Motion is now available. Click Save Motion and name it Wave 1:

Save Motion 1

  • A new motion now appears in the basic motion library at the bottom right:

Motion library

  • Start designing the second sub-motion; the procedure is the same as above. The robotic arm angles and keyframe numbers are given below; for the specific steps, refer to Wave 1:

Wave 2

  • Keyframe number: around 155:

Keyframe 2

  • Save the motion and name it Wave 2.
  • Now start designing the third sub-motion; the procedure is as above. Angles:

Wave 3

  • Keyframe number: 240:

Keyframe 3

  • Save the motion and name it Wave 3.

Finger Control

  • The tool can also control the fingers and head. Similar to arm control, there are only 6 finger joints in total — two for the thumb and one for each of the other fingers — and only two head joints, so finger and head control are relatively simple.

  • Continuing from frame 240 above, insert a fist-clenching motion at frame 320. The joint angles are as follows:

Clench fist

Head Control

  • Insert a head-raising motion at frame 380. The joint angles are as follows:

Raise head

  • Finally, set an end frame a little to the right of the last motion frame, as shown by the red line in the figure:

End frame

  • Now click the play button to play the waving, fist-clenching, and head-raising motions.

Play

  • Click the button shown below, then click Generate Module, and name the module Wave Clench Raise Head:

Generate module

  • A waving module and a clench-fist raise-head module now appear in the interface, and the modules can be combined with each other.
  • Click the button shown below again, then click Export Motion to generate a .tact file that the program can read:

Generate module

  • The generated file is shown below:

Wave clench raise head
Note!! The default version generated for the fifth-generation robot's tact file is 52. If robot_version (check it with echo $ROBOT_VERSION in the terminal) is 53 or 54, you need to modify the robot_version at the end of the tact file, as shown below

Connecting to the Robot

To use this feature, first run the following commands on the robot's lower-level controller

sudo su
cd /home/lab/kuavo-ros-opensource/src/manipulation_nodes/planarmwebsocketservice/service/
chmod +x websocket_deploy_script.sh 
./websocket_deploy_script.sh
# 等待上面成功运行,然后运行下面命令
cd /home/lab/kuavo-ros-opensource/tools/user_groups_tools/
chmod +x add_user_groups.sh
./add_user_groups.sh

Hotspot Connection and Wi-Fi Connection

  • Hotspot connection means the Windows computer connects to the hotspot broadcast by the robot. The hotspot name follows the format below ("robot number" + hotspot):

alt text

  • Wi-Fi connection means the robot's lower-level controller connects to the same Wi-Fi that the Windows computer connects to

  • In either of the above two cases, you only need to implement one of them. Then left-click:

alt text

  • The IP broadcast by the robot will pop up; click it to connect:

alt text

Setting the Robot Network

  • If you have just received the robot for the first time, you can choose to connect to the robot's hotspot first, then choose Settings and then Set Robot Network, and switch to Wi-Fi. The Windows hotspot must also be switched to Wi-Fi accordingly:

alt text

  • Of course, if the robot is connected via Wi-Fi at this time, you can also switch the robot's Wi-Fi through Set Network, but afterwards the Windows Wi-Fi must also be switched accordingly.

Downloading Logs and rosbags

  • Downloading logs is usually an operation needed only when the robot has an abnormality. Both logs and rosbags are sorted by time. When a problem occurs with the robot, first check the current time so that you can extract and download the logs and rosbags afterwards.
  • Click Settings, then click Download Logs and Bags, and find the logs and bags corresponding to the time in question. Only one log file is generated, but to prevent bags from becoming too large, a bag is split at around 500M, so there are multiple bags; when downloading, download the ones for the time period in which the problem occurred.

alt text alt text

H12 Remote Controller Voice Motion Configuration

  • You need to make sure the remote controller itself has the voice motion control function before performing the following operations
  • Click Settings, then click H12 Remote Controller Binding:

alt text

  • It includes the following functions: restoring voice motions to factory settings (three sets) and importing custom voice motion files
  • If you need to restore the factory settings, just click it. After success, there will be the following three sets of matching motion voice files

alt text

  • The motions you designed earlier can now be used. Prepare the matching voice files in advance and import the voice motion files to replace them:

alt text

  • After the settings are complete, click Confirm

alt text

  • At this point, the corresponding remote controller shortcut keys will trigger the corresponding motions

When the robot is turned on, the H12's E and F toggles are in the middle positions. RR_A means flipping both E and F to the far right and then pressing A to play the corresponding motion and voice, while LL_D means flipping both E and F to the far left and then pressing D. The same applies to the other motion voices. RR means right, and LL means left.

  • E and F toggle positions: E and F toggles

Code Version Management

Notes

  • When using the tool, you can only switch by selecting a tag; otherwise problems may occur
  • The standard tag format is x.x.x; updating to the latest version is recommended
  • Code updates automatically overwrite the previous code, so you must back up your own code yourself

Procedure

  • Select Settings, then select Code Version Management; the interface below pops up,

alt text

  • Select the desired version and click Switch, and the branch will be switched and the code compiled automatically

alt text

  • If the output information is normal, the switch was successful

alt text