Kuavo Docs
Feature ExamplesKuavo 5 ExamplesKuavo 5-W Wheel-Arm Examples

Kuavo 5-W Wheeled-Arm Robot Basic Usage

Description

For ease of use, the control interface for the upper body of the wheeled-arm robot is fully identical to the full-body upper-limb interface, and is compatible with all upper-limb-related examples. For configuration, refer to the Real Robot Operation - Wheeled-Arm Robot section in Upper-Limb Control Modes. For details on the upper-limb control interface, see Interface Usage Documentation. The following mainly describes chassis control usage and the secondary development interfaces.

Software Usage

  1. Xmanger
  • Function: This tool is used to operate the xManager map editing tool. This manual guides users through map management, map editing, offline mapping, online mapping, and other operations.
  • User Manual location: kuavo-ros-opensource/docs/5功能案例/五代案例/轮臂案例/xManager用户手册.pdf
  1. JunionManager
  • Function: This tool is used for waypoint calibration and remote control operations in JunionManager.
  1. Software Acquisition and Notes
  • The above software is not open-source/available online. To obtain the installation package, please contact our relevant personnel.
  • After obtaining the software, you must contact our relevant personnel to update the license before you can use it.

Development Interfaces

  • Currently, communication with the chassis mainly uses WebSocket, including two modes: Request and Subscribe.

1. Subscribe

  • Overview The subscription mechanism allows the client to receive messages pushed by the chassis system, such as status updates and event notifications. The client establishes a WebSocket connection and sends a subscription request, and the chassis system pushes the corresponding messages according to the request content.

  • WebSocket Connection

  • Connection establishment: The client uses the WebSocket protocol to connect to a specific endpoint on the chassis server.

  • Heartbeat mechanism: To keep the connection alive, the client and server periodically exchange heartbeat messages.

  • Subscription Request Format

{
  "type": "subscribe",
  "body": {
    "topics": ["topic1", "topic2"]
  }
}
  • type: Identifies the request type; for a subscription request it is subscribe.

  • body:

    • topics: An array of strings representing the list of topics the client wants to subscribe to.
  • Subscription Response Format

{
  "type": "notification",
  "body": {
    "topic": "topic1",
    "message": {
      // 根据topic不同,消息内容会有所差异
    }
  }
}
  • type: Identifies the response type; for a notification it is notification.

  • body:

    • topic: Corresponds to the topic in the subscription request and identifies the topic to which the message belongs.
    • message: The specific message content; the format depends on the topic.
  • Supported Subscription Topics The following are the currently supported subscription topics and their brief descriptions:

  1. Status update (status_update): Subscribe to chassis status updates, such as battery level and position information.
  2. Error log (error_log): Receive error logs generated by the chassis system.
  3. Event notification (event_notification): Notifications when specific events occur in the chassis system, such as charging completed or entering a fault state.
  • Example: Subscribing to Status Updates
{
  "type": "subscribe",
  "body": {
    "topics": ["status_update"]
  }
}

Response example:

{
  "type": "notification",
  "body": {
    "topic": "status_update",
    "message": {
      "battery_level": 75,
      "position": {
        "x": 10.5,
        "y": -3.2
      }
    }
  }
}

2. Request

  • Overview The request mechanism allows the client to send commands or requests to the chassis system in order to control the robot's behavior or query its status. The client establishes a WebSocket connection and sends request messages, and the chassis system processes these requests and returns the corresponding responses.

  • Request Message Format

{
  "type": "request",
  "body": {
    "action": "get_status",
    "params": {}
  }
}
  • type: Identifies the request type; for a normal request it is request.

  • body:

    • action: A string indicating the requested action or intent, such as get_status, start_move, etc.
    • params: An object containing the parameters required to perform the action.
  • Response Message Format

{
  "type": "response",
  "body": {
    "status": "success",
    "data": {
      // 根据请求的动作,数据内容会有所不同
    },
    "error": null
  }
}
  • type: Identifies the response type; for a response it is response.

  • body:

    • status: Indicates the processing result status, such as success or error.
    • data: The data returned when the request succeeds.
    • error: The error information when the request fails.
  • Supported Request Actions The following are the currently supported request actions and their brief descriptions:

  1. Get status (get_status): Request the current status of the chassis, such as battery level and position.
  2. Start moving (start_move): Command the chassis to start moving to a specified position.
  3. Stop moving (stop_move): Command the chassis to stop its current movement.
  4. Charge (start_charge): Command the chassis to go to the charging station to charge.
  • Example: Requesting Status
{
  "type": "request",
  "body": {
    "action": "get_status",
    "params": {}
  }
}

Response example:

{
  "type": "response",
  "body": {
    "status": "success",
    "data": {
      "battery_level": 85,
      "position": {
        "x": 5.0,
        "y": 2.3
      }
    },
    "error": null
  }
}

Mapping Usage

Connecting to the Chassis

On the robot's lower-level controller terminal, connect to the chassis terminal via ssh (password: 133233).

    ssh -oKexAlgorithms=+diffie-hellman-group14-sha1 \
        -oHostKeyAlgorithms=+ssh-rsa \
        -oCiphers=+aes128-cbc,3des-cbc \
    ucore@192.168.26.22

Wireless Connection

After connecting to the chassis terminal from the robot's lower-level controller via ssh, use the following command to connect the chassis to a wireless network.

sudo nmcli device wifi connect "your_wifi_name" password "your_password"

After a successful connection, modify /etc/netplan/01-network-manager-all.yaml to remove the IP lock on the wireless network card.

# Let NetworkManager manage all devices on this system
network:
 ethernets:
    wlan0:
      dhcp4: true
      dhcp6: true
      #addresses: [172.10.24.200/22]
      #gateway4: 172.10.24.254
      #nameservers:
      #  addresses: [192.168.0.1,61.177.7.1,8.8.8.8]
 ethernets:
    eth0:
      dhcp4: no
      dhcp6: no
      addresses: [10.8.8.8/24]
      addresses: [192.168.26.22/24]
 version: 2

Creating a Map

Starting roscore on the Lower-Level Controller

Creating a map requires roscore, so you need to start roscore on the lower-level controller. Log in to the lower-level controller, open a new terminal, and enter the code below. If a message indicates that startup failed, that means roscore has already been started and is running; ignore the error message and proceed to the next step.

   roscore

image

Enter the following code in the chassis terminal to start the chassis service (password: 133233).

    sudo systemctl restart urobot.service

Starting Mapping and Initialization

  1. After starting roscore, open the xManager mapping software, click Offline Mapping, enter the chassis IP address and a map name, then click the Connect button.

  2. Once the status bar on the right shows connected, click Start Mapping below.

  3. Port: default 12345; no need to change.

  4. Click Start Collection below to control the chassis and scan the map.

image

  • Note: After clicking, wait 20 seconds for the mapping service to finish starting. You can use MobaXterm or enter top in a terminal to check the CPU status of the chassis industrial PC; once startup is complete, system CPU usage decreases. In particular, do not perform the subsequent operations while CPU usage is high, that is, while the mapping service is starting. If you perform subsequent operations without waiting for the mapping service to start properly, other problems will occur.
  1. After scanning is complete, first click Stop Collection, then click Start Mapping; the status bar on the right will now show start build map.

  2. Once the status bar shows build map success, click the End Mapping button. The created map will then be displayed in the software, and you can modify it using the toolbar on the left.

  3. Connect to the chassis by any method, return to the chassis file root directory, open the usr/local/urobot/params/map folder, open the map.json file, and enter the desired map name to complete the map switch. image

  4. Open the JunionManager software, click the connect button at the top, enter the robot's IP address, leave the other parameters at their defaults, and click to confirm the connection.

image

  1. After a successful connection, you can see the map just created (showing the map name entered in step 7). Click Localization to manually match the robot's point cloud with the map. Initialization is now complete. On the right side, you can manually control the robot's movement, and the robot will display its current coordinates. Map creation is complete.

image