Kuavo Docs
Feature ExamplesWheel-Arm Examples

Basic Usage of the Wheeled-Arm Robot

Introduction

For ease of use, the control interfaces for the upper body of the wheeled-arm robot are fully consistent with the whole-body upper-limb interfaces, so they are compatible with all upper-limb-related examples. For configuration details, refer to the Physical Robot Operation - Wheeled-Arm Robot section of Upper-Limb Control Mode; for details on the upper-limb control interfaces, see the Interface Usage Documentation. The following sections mainly describe chassis control usage and the secondary development interfaces.

Wheeled-arm robot hotspot WIFI name: WOOSH-000000Z WIFI password: woosh888

Software Usage

  1. Leju Design
  • Function: used to modify and edit maps created by scanning with Leju Mobile, including features such as creating map feature points and predefined tasks.
  • User manual: Design User Manual
  1. Leju Mobile
  • Function: mainly used to remotely control the robot for scanning and mapping, executing predefined tasks, real-time monitoring, etc.
  • User manual: Mobile User Manual

Development Interfaces

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 requested 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 the server periodically exchange heartbeat messages.

  • Subscription request format

{
  "type": "subscribe",
  "body": {
    "topics": ["topic1", "topic2"]
  }
}
  • type: Identifies the request type; a subscription request 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": {
      // Depending on the topic, the message content varies
    }
  }
}
  • type: Identifies the response type; a notification 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 with 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 completion or entering a fault state.
  • Example: subscribing to status updates
{
  "type": "subscribe",
  "body": {
    "topics": ["status_update"]
  }
}

Example response:

{
  "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 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; a normal request 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 execute the action.
  • Response message format

{
  "type": "response",
  "body": {
    "status": "success",
    "data": {
      // Depending on the requested action, the data content varies
    },
    "error": null
  }
}
  • type: Identifies the response type; a response is response.

  • body:

    • status: Indicates the status of the processing result, 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 with 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): Instruct the chassis to start moving to a specified position.
  3. Stop moving (stop_move): Instruct the chassis to stop the current movement.
  4. Charge (start_charge): Instruct the chassis to go to the charging station to charge.
  • Example: requesting status
{
  "type": "request",
  "body": {
    "action": "get_status",
    "params": {}
  }
}

Example response:

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