#  TRON 2 Dual-Arm Mobile Robot: Mobile Base User and SDK Guide

> Source: https://www.limxdynamics.com/en/documents/913470429954445312
> Published: 2026-11-25
> Tags:  TRON 2 EDU Ed.

## 1. Mobile Base User Guide

### 1.1 Safety and Responsibility Guidelines

Operate the mobile base only in an open area, and keep it within your line of sight during remote control.

Unauthorized modification of the internal structure of the product without approval from technical support is strictly prohibited.

The output current at the rear expansion connector must not exceed 25 A, and the total output power must not exceed 600 W.

Charge the device promptly when the low-battery alarm is triggered. Use only the dedicated lithium battery charger supplied with the product. Do not charge the battery below 0 °C. Do not use batteries, power supplies, or chargers that are not supplied by the original manufacturer.

If the mobile base behaves abnormally, stop using it immediately to prevent further damage or injury, and contact technical support. Unauthorized disassembly or non-standard repair is strictly prohibited.

The mobile base has an IP22 ingress protection rating. Use it only in environments compatible with this rating.

Operating environment: The operating temperature range is -10 °C to 40 °C. Do not use the mobile base below -10 °C or above 40 °C. Do not use this product in environments containing corrosive or flammable gases, or near combustible materials. Do not use it near heat sources such as heaters or large wire-wound resistors. The recommended maximum altitude is 1000 m. The recommended maximum day-night temperature difference is 25 °C.

Storage conditions: The optimal storage temperature is -10 °C to 40 °C. When the battery is not in use, charge and discharge it about once a month, and then store it fully charged. Do not throw the battery into fire or heat it. Do not store the battery at high temperatures.

### 1.2 Product Overview

![Mobile base overview](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/chassis_overview_en.png)

This mobile chassis is a programmable omnidirectional unmanned ground vehicle (UGV) that combines the motion characteristics of differential-drive and Ackermann-steering chassis. It features a small turning radius and supports zero-radius turning, meeting movement and steering requirements in various scenarios.

The chassis is equipped with sensors such as stereo cameras and LiDAR. Its powertrain uses in-wheel hub motors and combines solid tires with a swing-arm structure to improve passability and environmental adaptability under different ground conditions. In addition, the integrated in-wheel motor drive reduces traditional mechanical transmission mechanisms, helping to simplify the overall structure and improve system integration and reliability. Electrical and communication interfaces are reserved on the top and rear of the chassis for external device connection and secondary development.

### 1.3 Specifications

| Category | Item | Value |
| --- | --- | --- |
| Mechanical Parameters | L × W × H (mm) | 552 × 500 × 250 |
| Mechanical Parameters | Wheelbase (mm) | 388 |
| Mechanical Parameters | Front/rear track width (mm) | 338 |
| Mechanical Parameters | Curb weight (kg) | 50–55 kg |
| Mechanical Parameters | Maximum Payload | 80kg |
| Mechanical Parameters | Battery Type | Lithium iron phosphate (LiFePO4) |
| Mechanical Parameters | Battery specifications | 24 V, 30 Ah |
| Mechanical Parameters | Drive motors | 150 W × 4 |
| Mechanical Parameters | Steering motors | 50 W × 4 |
| Mechanical Parameters | Parking brake | Electronic brake |
| Mechanical Parameters | Steering type | Four-wheel drive, four-wheel steering |
| Mechanical Parameters | Suspension | Rear swing-arm suspension |
| Mechanical Parameters | Steering motor reduction ratio | 1:51 |
| Mechanical Parameters | Steering motor encoder | Dual encoders |
| Mechanical Parameters | Drive motor reduction ratio | 1:4.428 |
| Mechanical Parameters | Drive motor sensor | Encoder |
| Performance Parameters | Ground clearance (mm) | 39 |
| Performance Parameters | Maximum runtime (h) | 6.5 (no load), 2.5 (full load) |
| Performance Parameters | Maximum range (km) | 45 (no load), 25 (full load) |
| Performance Parameters | Charging time (h) | 3 |
| Performance Parameters | Operating temperature (°C) | -10 to 40 |
| Performance Parameters | External power output current | 25 A |
| Performance Parameters | Communication interface | CAN |
| Key Component Parameters | LiDAR | SLAMTEC S3 |
| Key Component Parameters | Obstacle Avoidance Camera | Dabai Stereo Structured-Light Camera |

### 1.4 Body Components, Interfaces, and Mounting Dimensions

The figures below show the body components and interfaces. An aviation expansion connector is located on the left side of the rear of the mobile base. It integrates one power interface and one CAN communication interface. In normal use, connect this connector to the reserved Aviation connector on the Lift Stand to provide power and communication between the mobile base and the Lift Stand.

| ![Base interfaces and sensors](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/chassis_front_interfaces_en.png) | ![Charging contacts and battery compartment](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/chassis_charging_contacts_en.png) | ![Rear interfaces](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/chassis_rear_interfaces_en.png) |
| --- | --- | --- |
| Base interfaces and sensors | Charging contacts and battery compartment | Rear interfaces |

The figures below show the mounting hole dimensions and the center of gravity of the mobile base.

| ![Top mounting hole dimensions](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/chassis_mounting_d<br>imensions_en.png) | ![Base center of gravity](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/chassis_center_of_gravity_en.png) |
| --- | --- |
| Top mounting hole dimensions | Base center of gravity |

## 2. Web-Based Navigation Interface User Guide

The mobile base is equipped with two LiDARs and one Depth Camera for environment perception and navigation. By default, the mobile base supports both wired Ethernet and wireless Wi-Fi communication. Choose the method that best suits your environment.

- Wired Ethernet

An RJ45 network port on the top of the mobile base connects to the mobile base controller. The default IP address of the mobile base controller is `10.7.5.99`. Configure your computer or industrial PC to use an IP address on the same subnet as the mobile base controller, and connect it to the RJ45 port with an Ethernet cable.

Once the network connection is established, enter `http://10.7.5.99` in the address bar of your browser to open the mobile base controller management page. The default username is `admin` and the default password is `agx12345`.

- Wireless Wi-Fi

See the “Settings” chapter below for detailed information.

### 2.1 Login

The system is preconfigured with the username admin and the password agx12345. You can change the password after your first login.

![Navigation login screen](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/navigation_login_screen_en.png)

### 2.2 Home

This page shows the operating status and task information of the mobile base. It displays in real time the current task, marked points, the front RGB camera feed, movement speed, total mileage, current trip mileage, and resource usage of the mobile base controller.

![Navigation dashboard](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/navigation_dashboard_en.png)

### 2.3 Tasks

![Navigation task panel](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/navigation_task_panel_en.png)

This page shows the map, points, route network, and real-time position of the mobile base, and provides task operations. The numbered callouts on the screen are described below.

- Callout 1: Hover over a point to open the point information box. Click **Go** to drive the mobile base to that point automatically. Two travel options are available: follow the preset route network, or follow a path planned on the map by the A\* algorithm. Follow the on-screen prompts.

- Callout 2: Relocalization button. Before use, check whether the localization of the mobile base is accurate. If not, click this button to enter relocalization mode, then click on the map. The icon shown below appears, and the arrow always points toward the mouse cursor to indicate the relocalization heading. When you release the mouse button, the system sends the relocalization command. Check whether the point cloud on the screen matches the map.

![Relocalization heading marker](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/relocation_heading_marker_en.png)

- Callout 3: Navigate to any point. In this mode, left-click anywhere on the map to send that target position to the mobile base.

- Callout 4: Switch map. Change the map currently used by the mobile base for navigation.

- Callout 5: Existing markers such as the point cloud and route network may cover the target location on the map. Use this setting to hide them for easier operation.

### 2.4 Advanced

Manage maps, points, and paths, including creating, editing, and deleting them.

#### 2.4.1 Maps

Manage maps on this page: create, edit, and delete.

![Map management](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/map_management_screen_en.png)

- Callout 1: Click to open the New Map dialog box. Enter a map name and choose whether to record a bag.

![Create map dialog](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/create_map_dialog_en.png)

- Callout 2: Click to enter edit mode.

    - Click button 1 to enter noise-removal mode. Draw a closed polygon on the map to remove the noise inside it.

    - Click button 2 to enter virtual-wall mode. Draw a polyline on the map to mark a virtual wall.

![Map editing tools](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/map_edit_tools_en.png)

#### 2.4.2 Points and Paths

Manage points and paths on this page: create, edit, and delete.

![Point and path management](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/point_and_path_management_en.png)

Click the Edit button to enter edit mode.

![Point and path editor](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/point_and_path_editor_en.png)

##### 2.4.2.1 Point Management

Click callout 1 to enter point-editing mode, then left-click on the map. A red point appears on the map. Click the point to enter its details. Likewise, click an existing point on the map to edit its details.

Click **Mark Current Point** at the top to record the current position of the mobile base on the map as a point.

The system provides four predefined point types:

- Standard point: green \#008000

- Charging point: yellow \#ffff00

- Parking point: blue \#0D98BA

- General point: light blue \#409EFF

![Point placement on the map](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/point_placement_preview_en.png)

![Point properties dialog](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/point_properties_dialog_en.png)

##### 2.4.2.2 Route Network Management

Before using this feature, finish marking the points. Click one marked point (point A), then click another (point B) to connect A to B. The connection is directional: it only allows travel from A to B. To allow travel from B to A, repeat the operation in reverse. See the example below:

A\<->C C->B B->A

If you plan a route from A to B, the system plans A->C->B. When a navigation task is sent, you are asked whether to follow the route network. If you choose to follow it, the system plans A->C->B. Otherwise, it plans the shortest path from A to B using the A\* algorithm.

![Directed route network](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/directed_road_network_en.png)

### 2.5 Settings

#### 2.5.1 Battery Threshold Settings

This feature works with the charging dock to enable automatic charging. When the battery level drops below the alarm threshold, the mobile base issues a low-battery alarm. When it drops below the charging threshold, the mobile base automatically drives to the charging dock to charge. When fully charged, the mobile base leaves the dock and returns to the parking point. To use this feature, mark both a charging point and a parking point on the map.

![Battery threshold settings](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/battery_threshold_settings_en.png)

#### 2.5.2 Wi-Fi Settings

The mobile base has a built-in Wi-Fi module. To use it, open the Wi-Fi settings page and click the **Get available Wi-Fi networks** icon to the right of the Wi-Fi drop-down list. Available networks in the area are listed in the drop-down list. If the mobile base is already connected to a network, the IP address assigned to it is shown to the left of the drop-down list.

To switch networks, select the target Wi-Fi name in the drop-down list and click **Connect**. If the network requires a password, a password box appears. Otherwise, the mobile base connects directly.

![Wi-Fi connection settings](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/wifi_connection_settings_en.png)

![Select a Wi-Fi network](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/wifi_network_selection_en.png)

#### 2.5.3 Depth Camera Settings

Adjust the ground-filter parameter of the Depth Camera to set the maximum obstacle height detected above the ground. To increase the height, decrease this parameter. To decrease the height, increase this parameter.

![Depth camera settings](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/depth_camera_settings_en.png)

### 2.6 Upgrade

The system supports patch upgrades. New features and bug fixes are delivered as patches. This page lets you upload patches, perform upgrades, and view upgrade logs.

![Patch management](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/patch_management_screen_en.png)

- Callout 1: Upload a patch. Click to open the dialog box shown below.

![Upload patch dialog](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/patch_upload_dialog_en.png)

- Callout 2: Upgrade log. Click to open the dialog box shown below.

![Patch upgrade history](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/patch_upgrade_history_en.png)

- Callout 3: Upgrade log details. Click to open the dialog box shown below. If an upgrade fails, check the log details for the error.

![Patch upgrade details](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/patch_upgrade_details_en.png)

- Callout 4: Upgrade. Click to open the dialog box shown below. Click **OK** to start the upgrade. Because an upgrade can take a long time, it runs asynchronously. Check the result in the upgrade log.

![Confirm patch upgrade](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/patch_upgrade_confirmation_en.png)

- Callout 5: Delete a patch. Click to open the dialog box shown below.

![Confirm patch deletion](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/patch_delete_confirmation_en.png)

### 2.7 Logs

#### 2.7.1 Operation Log

The system logs important operations such as adding, modifying, and deleting items, and starting and stopping navigation.

![Operation log](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/operation_log_screen_en.png)

#### 2.7.2 Runtime Log

To help with troubleshooting, this page lets you download application runtime logs. It collects all application logs and provides a download link for the packaged archive. Packaged logs are kept for 30 days by default, and expired logs are deleted the next time logs are packaged.

![Runtime log downloads](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/runtime_log_download_en.png)

![Packaged runtime logs](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/runtime_log_archive_list_en.png)

- Callout 1: Click this button to compress and package the current logs.

- Callout 2: Click this button to delete the log file.

- Callout 3: Click the name of a packaged log file to download it.

#### 2.7.3 Changelog

After a version upgrade, view what has changed on this page.

![Changelog](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/release_notes_screen_en.png)

### 2.8 Top Bar

The top bar shows status information and provides quick access to common functions, such as battery level, navigation status, alarm messages, help links, and mobile base status.

#### 2.8.1 Search Menu

Click the search icon to open the search box shown below. Enter the name of the menu you are looking for.

![Menu search button](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/menu_search_button_en.png)

![Menu search dialog](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/menu_search_dialog_en.png)

#### 2.8.2 Switch Language

Click the language icon to open the Chinese/English menu, then select the language you want to use for the interface.

![Language selector](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/language_selector_en.png)

#### 2.8.3 Maximize

Click the maximize icon to display the interface in full screen. The icon changes to a **Restore** icon. Click it again to restore the original view.

![Full screen toggle](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/fullscreen_toggle_en.png)

#### 2.8.4 Alarms and Notifications

Click this icon to view alarms and notifications.

![Alarm notifications](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/alert_notifications_en.png)

#### 2.8.5 Navigation Messages

Click this icon to view real-time navigation status messages.

![Navigation notifications](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/navigation_notifications_en.png)

#### 2.8.6 API

Click this icon to go to the API page.

![API reference button](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/api_reference_button_en.png)

#### 2.8.7 Help

Click this icon to go to the Help page.

![Help button](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/help_menu_button_en.png)

#### 2.8.8 Username

Click this icon to display the **Change Password** and **Log Out** links. Click **Change Password** to open the change password dialog box. Click **Log Out** to sign out and return to the login page.

![User account menu](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/user_account_menu_en.png)

![Change password dialog](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/password_change_dialog_en.png)

#### 2.8.9 System Settings

Click this icon to open the **System Settings** panel, where you can change the interface theme, layout, and other options.

![System settings button](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/system_settings_button_en.png)

![Interface layout settings](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/interface_layout_settings_en.png)

## 3. Example: Complete a Mapping and Navigation Workflow with the Web-Based Navigation Interface

### 3.1 Network Configuration

After the first power-on, use an Ethernet cable to connect the RJ45 port in the electrical interface area on top of the mobile base to your development computer:

![Ethernet port location](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/ethernet_connection_location_en.png)

Set the IP address of the development computer to the same subnet as the mobile base, as shown below:

![Ethernet IPv4 settings](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/ethernet_ipv4_settings_en.png)

Open any browser and enter [http://10.7.5.99](http://10.7.5.99) in the address bar to open the navigation interface.

![Navigation login example](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/walkthrough_login_screen_en.png)

For the first login, the default username is admin and the password is agx12345.

After logging in, you can configure Wi-Fi first. As shown below, you can set a custom name, password, and IP address.

![Wi-Fi setup example](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/walkthrough_wifi_settings_en.png)

### 3.2 Mapping

After configuration, connect to the Wi-Fi network of the mobile base using the settings you configured, then unplug the Ethernet cable between the mobile base and the development computer.

Open a browser, enter the IP address you configured above, and log in to the navigation page.

Click **Advanced > Maps** in the left sidebar.

![Start mapping](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/walkthrough_map_management_en.png)

Click callout 1 on the right to open the mapping options. Enter a map name and choose whether to record a bag.

You can then drive the mobile base with the VR controller as described in:

https://www.limxdynamics.com/en/documents/852949782845591552

See Section 5.2, VR Controller Commands, in the user manual.

After mapping starts, drive the mobile base smoothly at a constant speed for one full loop around the area where navigation is required. While driving, check whether the map on the navigation interface matches the real environment. The map is built incrementally as the LiDAR scans. If any corners or boundaries are unclear, drive over those areas several more times so the LiDAR can scan them fully.

![Mapping result and stop button](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/walkthrough_mapping_result_en.png)

When mapping is finished, click the stop button at callout 1 and select **Stop and Save** to complete mapping.

### 3.3 Map Editing

During mapping, pedestrians, temporary obstacles, or similar conditions on the driving path may leave unexpected obstacles on the map. You may also want to add virtual no-go zones. To ensure navigation quality, edit the map after mapping.

On the Maps page, click callout 2 to enter edit mode, as shown below.

- Click button 1 to enter noise-removal mode. Draw a closed polygon on the map to remove the noise inside it.

- Click button 2 to enter virtual-wall mode. Draw a polyline on the map to mark a virtual wall.

![Map editor example](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/walkthrough_map_editor_en.png)

### 3.4 Navigation

After completing the steps above, you can start navigation tasks.

Click the left sidebar to open the Tasks page.

![Navigation task example](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/walkthrough_task_panel_en.png)

This page shows the map, points, route network, and real-time position of the mobile base, and provides task operations. The numbered callouts in the figure above are described below.

- Callout 1: Hover over a point to open the point information box. Click **Go** to drive the mobile base to that point automatically. Two travel options are available: follow the preset route network, or follow a path planned on the map by the A\* algorithm. Follow the on-screen prompts.

- Callout 2: Relocalization button. Before use, check whether the localization of the mobile base is accurate. If not, click this button to enter relocalization mode, then click on the map. The icon shown below appears, and the arrow always points toward the mouse cursor to indicate the relocalization heading. When you release the mouse button, the system sends the relocalization command. Check whether the point cloud on the screen matches the map.

![Relocalization heading example](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/walkthrough_heading_marker_en.png)

- Callout 3: Navigate to any point. In this mode, left-click anywhere on the map to send that target position to the mobile base.

- Callout 4: Switch map. Change the map currently used by the mobile base for navigation.

- Callout 5: Existing markers such as the point cloud and route network may cover the target location on the map. Use this setting to hide them for easier operation.

## 4. Environment Setup for Mapping and Navigation with the Developer Expansion Module

Run the following in a terminal on your PC:

```bash
ssh guest@10.192.1.4
```

After login, the terminal prompt is typically:

```text
guest@guest:~$
```

Install the required tools:

```bash
sudo apt update
sudo apt install -y curl jq python3 python3-pip
python3 -m pip install --user websocket-client
```

Set the navigation board address:

```bash
export NAV_BASE='http://10.7.5.99'
sudo ip addr add 10.7.5.180/24 dev enp2s0
```

Check the route from the Developer Expansion Module to the navigation board:

```bash
ip route get 10.7.5.99
```

The output should look similar to:

```text
10.7.5.99 dev enp2s0 src 10.7.5.10
```

Test HTTP access:

```bash
curl -v --connect-timeout 3 \
  "$NAV_BASE/devdoc/index.html" \
  -o /dev/null
```

The API commands below work only after the Developer Expansion Module can reach `10.7.5.99`.

---

### 4.1 User Authentication

### 4.2 Administrator Login

Endpoint:

```text
POST /admin/login
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| username | String | Username. Required. |
| password | String | Password. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "用户登陆成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "用户登陆失败！","data": null}
```

#### 4.2.1 Login Example

```bash
read -rsp "Enter the navigation board admin password: " NAV_PASSWORD
echo
```

```bash
LOGIN_RESULT=$(
  curl -sS -X POST \
    "$NAV_BASE/admin/login" \
    -H "Content-Type: application/json" \
    -d "$(jq -nc \
      --arg username 'admin' \
      --arg password "$NAV_PASSWORD" \
      '{username:$username,password:$password}')"
)
```

```bash
echo "$LOGIN_RESULT" | jq
```

Extract `accessToken` from the response:

```bash
export NAV_TOKEN="$(
  echo "$LOGIN_RESULT" |
  jq -r '.data.accessToken // empty'
)"
```

Check the token:

```bash
if [ -n "$NAV_TOKEN" ]; then
    echo "Token retrieved. Length: ${#NAV_TOKEN}"
else
    echo "Failed to get token. Check status, msg, and the password."
fi
```

In a successful login response, the token is located at:

```text
data.accessToken
```

Include the following header in all subsequent requests:

```text
Authorization: Bearer $NAV_TOKEN
```

In the current verified version, administrator login uses `POST` with a JSON request body.

### 4.3 Define Common Request Functions

To avoid repeating request headers for every endpoint, run the following in the current SSH terminal:

```bash
nav_get()
{
    local path="$1"
    shift

    curl -sS -G \
      -H "Authorization: Bearer $NAV_TOKEN" \
      "$NAV_BASE$path" \
      "$@" | jq
}

nav_post_query()
{
    local path="$1"
    shift

    curl -sS -X POST -G \
      -H "Authorization: Bearer $NAV_TOKEN" \
      "$NAV_BASE$path" \
      "$@" | jq
}

nav_post_json()
{
    local path="$1"
    local body="$2"

    curl -sS -X POST \
      -H "Authorization: Bearer $NAV_TOKEN" \
      -H "Content-Type: application/json" \
      "$NAV_BASE$path" \
      -d "$body" | jq
}
```

These functions are valid only in the current SSH session. After you exit and log in again over SSH, repeat the login, token setup, and function definitions.

---

## 5. Calling the Navigation API (HTTP) on the Developer Expansion Module over SSH

**Note**

The navigation controller returns the `msg` field and some status text fields in the language set for the system (see 5.8.3). The response examples in this guide show the actual Chinese strings returned with the default language setting.

### 5.1 Map Management

The map endpoints start mapping, stop mapping, save maps, query maps, and clear map data. In the current verified version, starting, stopping, saving, and querying maps mainly use `GET`, and map noise removal uses `POST`.

#### 5.1.1 Start Map Creation

Endpoint:

```text
GET /api/map/create/start
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |
| bagRecord | Boolean | Whether to record a bag. Default: false. Optional. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

Success response

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "地图创建启动成功！","data": null}
```

Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "地图创建启动失败！","data": null}
```

**Before starting mapping, make sure that:**

The area around the robot is safe.

No navigation task is currently running.

This endpoint may take a long time to complete.

#### 5.1.2 Stop Map Creation Without Saving

Endpoint:

```http
/api/map/create/stop
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "地图创建停止成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "地图创建停止失败！","data": null}
```

This command stops the current mapping session without saving the result.

---

#### 5.1.3 Stop Map Creation and Save

Endpoint:

```text
GET /api/map/create/save/stop
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| remark | String | Remark. Optional. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "地图创建停止并保存成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "创建地图停止并保存失败！","data": null}
```

`remark` is a note for the map and is not necessarily the same as the map name.

Start mapping before calling the save-and-stop endpoint.

---

#### 5.1.4 Delete a Map

Endpoint:

```text
GET /api/map/delete
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "删除地图成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "删除地图失败！","data": null}
```

This is a high-risk write operation. Before deleting, switch to another map and confirm that the target map can be deleted.

---

#### 5.1.5 Get a Map PNG Image

Endpoint:

```text
GET /api/map/get/png
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "获取地图图片成功！","data": 'iVBORw0KGgoAAAANSUhEUgAAAh8AAAS5 ...'    // Base64-encoded map image}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "获取地图图片失败！","data": null}
```

---

#### 5.1.6 Get All Maps

Endpoint:

```text
GET /api/map/get/all
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "获取地图图片成功！","data": [{

    createTime: "2025-10-14 09:12:47.736080", // Creation time

    height: 528,                              // Image height

    id: 1,                                    // id

    name: "1014",                             // Map name

    originX: -26.4831,                        // X coordinate of the image's lower-left corner in the map frame

    originY: -12.2878,                        // Y coordinate of the image's lower-left corner in the map frame

    remark: "",                               // Remark

    resolution: 0.05,                         // Map resolution, in meters per pixel

    updateTime: null,                         // Update time

    width: 833,                               // Image width}, ...]}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "获取地图图片失败！","data": null}
```

---

#### 5.1.7 Query Map Information by Name

Endpoint:

```text
GET /api/map/get/by/name
```

Run:

```bash
nav_get '/api/map/get/by/name' \
  --data-urlencode 'mapName=0716'
```

The current verified version adds the `mapName` parameter based on the parameter table.

---

#### 5.1.8 Remove Map Noise

Endpoint:

```text
POST /api/map/erase
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |
| polygon | Array | Target area to erase, in the format `[[x1, y1], [x2, y2], [x3, y3] ...]` |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "擦除成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "擦除失败！","data": null}
```

---

#### 5.1.9 Clear the Navigation Costmap

Endpoint:

```text
GET /api/map/clear/costmap
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "","data": null}
```

---

### 5.2 Navigation Control

The navigation endpoints switch maps, initialize localization, send target points, and pause, resume, or stop tasks. The navigation control endpoints in this document use `GET`, with parameters passed as URL query strings.

#### 5.2.1 Switch the Current Map

Endpoint:

```text
GET /api/nav/switch/map
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "加载地图成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "加载地图失败！","data": null}
```

---

#### 5.2.2 Set the Initial Robot Pose

Endpoint:

```text
GET /api/nav/init/pose
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| x | Number | X coordinate. Required. |
| y | Number | Y coordinate. Required. |
| angle | Number | Heading angle. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "设置初始位姿成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "设置初始位姿失败！","data": null}
```

---

#### 5.2.3 Navigate to Target Coordinates

Endpoint:

```text
GET /api/nav/task/point
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| sn | String | Point SN. Optional. Returned together with the arrival notification so your application can act on it. |
| x | Number | X coordinate. Required. |
| y | Number | Y coordinate. Required. |
| angle | Number | Heading angle. Required. |
| type | String | Point type. Default: '0' |
| followRoadNet | Boolean | Whether to follow the route network. Default: false |
| forceChargingStart | Boolean | Whether to force the navigation task to start while charging |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "开启导航任务成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "开启导航任务失败！","data": null}
```

---

#### 5.2.4 Navigate by Point ID

Endpoint:

```text
GET /api/nav/task/point/id
```

Run:

```bash
nav_get '/api/nav/task/point/id' \
  --data-urlencode 'id=19' \
  --data-urlencode 'followRoadNet=true' \
  --data-urlencode 'forceChargingStart=false'
```

A response of "开启导航任务成功" (navigation task started) only means the task was accepted. It does not mean the robot has reached the target point.

---

#### 5.2.5 Patrol a Coordinate Sequence

Endpoint:

```text
GET /api/nav/follow/route
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| points | String | Points, in the format \[\{x: , y: , angle:, type: \}, ...\]. Required. |
| repeats | Number | Number of repetitions. Default: 1. Optional. |
| forceChargingStart | Boolean | Whether to force the navigation task to start while charging |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "开启导航任务成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "开启导航任务失败！","data": null}
```

---

#### 5.2.6 Patrol by Route ID

Endpoint:

```text
GET /api/nav/follow/route/id
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| id | Number | Point ID. Required. |
| followRoadNet | Boolean | Whether to follow the route network. Default: false |
| forceChargingStart | Boolean | Whether to force the navigation task to start while charging |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "开启导航任务成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "开启导航任务失败！","data": null}
```

---

#### 5.2.7 Stop the Navigation Task

Endpoint:

```text
GET /api/nav/task/stop
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "停止导航任务成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "停止导航任务失败！","data": null}
```

---

#### 5.2.8 Pause the Navigation Task

Endpoint:

```text
GET /api/nav/task/pause
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "暂停导航任务成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "暂停导航任务失败！","data": null}
```

#### 5.2.9 Resume the Navigation Task

Endpoint:

```text
GET /api/nav/task/resume
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "恢复导航任务成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "恢复导航任务失败！","data": null}
```

---

### 5.3 Point Management

#### 5.3.1 Query Points by Map

Endpoint:

```text
GET /api/point/get/by/mapname
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "查询成功！","data": [{

    angle: 0,                                   // Heading angle

    createTime: "2025-11-27 01:12:12.422750",   // Creation time

    id: 19,                                     // id

    mapName: "1126",                            // Map name

    pointName: "充电",                           // Point name

    pointSn: "point_1",                         // Point SN

    remark: null,                               // Remark

    type: "1",                                  // Point type. '0': standard point (used to constrain paths, no other meaning); '1': charging point; '2': parking point; '3': elevator waiting point (next to the elevator); '4': elevator boarding point; 'Z': general point (meaning defined by the application layer)

    typeText: "充电点",                          // Type name

    updateTime: null,                           // Update time

    x: 341,                                     // X coordinate

    y: 950                                      // Y coordinate}, ...]}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "查询失败！","data": null}
```

---

#### 5.3.2 Add a Point

Endpoint:

```text
GET /api/point/add
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |
| pointName | String | Point name. Required. |
| pointSn | String | Point SN. Required. |
| x | Number | X coordinate. Required. |
| y | Number | Y coordinate. Required. |
| angle | Number | Heading angle. Required. |
| type | String | Point type. Required. |
| remark | String | Remark |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "添加点成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "添加点失败！","data": null}
```

---

#### 5.3.3 Modify a Point

Endpoint:

```text
GET /api/point/update
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| id | Number | Point ID. Required. |
| pointName | String | Point name. Required. |
| pointSn | String | Point SN. Required. |
| x | Number | X coordinate. Required. |
| y | Number | Y coordinate. Required. |
| angle | Number | Heading angle. Required. |
| type | String | Point type. Required. |
| remark | String | Remark |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "修改点成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "修改点失败！","data": null}
```

---

#### 5.3.4 Delete a Point

Endpoint:

```text
GET /api/point/delete
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| id | Number | Point ID. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "删除点成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "删除点失败！","data": null}
```

---

### 5.4 Route Management

#### 5.4.1 Query Paths by Map

Endpoint:

```text
GET /api/route/get/by/mapname
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "查询成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "查询失败！","data": null}
```

---

#### 5.4.2 Add a Route

Endpoint:

```text
GET /api/route/add
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |
| pathName | String | Path name. Required. |
| pathSn | String | Path SN. Required. |
| points | Array | Array of point IDs, in the format \[id1, id2, ...\]. Required. |
| remark | String | Remark |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "添加路径成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "添加路径失败！","data": null}
```

---

#### 5.4.3 Modify a Route

Endpoint:

```text
GET /api/route/update
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| id | Number | Path ID. Required. |
| pathName | String | Path name. Required. |
| pathSn | String | Path SN. Required. |
| points | Array | Array of point IDs, in the format \[id1, id2, ...\]. Required. |
| remark | String | Remark |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "修改路径成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "修改路径失败！","data": null}
```

---

#### 5.4.4 Delete a Route

Endpoint:

```text
GET /api/route/delete
```

Parameters

| Field | Type | Description |
| --- | --- | --- |
| id | Number | Point ID. Required. |

Response fields (HTTP 200):

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "删除路径成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "删除路径失败！","data": null}
```

---

### 5.5 Route Network Management

A route is a fixed path, such as A->B->C. A route network is a topology formed by connecting multiple routes, which allows routes to be planned dynamically.

#### 5.5.1 Query the Route Network by Map

Endpoint:

```text
GET /api/road_net/get/by/mapname
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "查询成功！","data": [{

    createTime: "2025-11-27 01:13:27.550189",   // Creation time

    graph: "{\"22\":{\"21\":3977,\"23\":13410},\"23\":{\"21\":4901,\"22\":13410}}"， // Route network: a directed graph in the form {id1: {id2: weight}}, where weight is the connection weight from id1 to id2

    id: 4,                                      // id

    mapName: "1126",                            // Map name

    remark: "net",                              // Remark

    updateTime: null                            // Update time}, ...]}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "查询失败！","data": null}
```

---

#### 5.5.2 Add a Route Network

Endpoint:

```text
GET /api/road_net/add
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |
| graph | String | Route network, in the format \{\{id1: \{id2: weight, id3: weight\}, id: \{id1: weight\}, id3: \{id1: weight\}, ...\}. Required. |
| remark | String | Remark |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "添加路网成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "添加路网失败！","data": null}
```

---

#### 5.5.3 Modify a Route Network

Endpoint:

```text
GET /api/road_net/update
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| id | Number | Route network ID. Required. |
| graph | String | Route network, in the format \{\{id1: \{id2: weight, id3: weight\}, id: \{id1: weight\}, id3: \{id1: weight\}, ...\}. Required. |
| remark | String | Remark |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "修改路网成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "修改路网失败！","data": null}
```

---

#### 5.5.4 Delete a Route Network

Endpoint:

```text
GET /api/road_net/delete
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| id | Number | Point ID. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "删除路网成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "删除路网失败！","data": null}
```

---

### 5.6 Virtual Wall Management

#### 5.6.1 Get Virtual Walls for a Map

Endpoint:

```text
GET /api/vm/get/by/mapname
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "查询成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "查询失败！","data": null}
```

---

#### 5.6.2 Add a Virtual Wall

Endpoint:

```text
POST /api/vm/add
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| mapName | String | Map name. Required. |
| data | String | Virtual wall. Required. |
| type | String | Virtual wall type (1: line segment, 2: polygon). Required. |
| remark | String | Remark. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "添加虚拟墙成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "添加虚拟墙失败！","data": null}
```

---

#### 5.6.3 Modify a Virtual Wall

Endpoint:

```text
POST /api/vm/update
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| id | Number | Point ID. Required. |
| data | String | Virtual wall. Required. |
| remark | String | Remark. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "修改虚拟墙成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "修改虚拟墙失败！","data": null}
```

---

#### 5.6.4 Delete a Virtual Wall

Endpoint:

```text
GET /api/vm/delete
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| id | Number | Point ID. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "删除虚拟墙成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "删除虚拟墙失败！","data": null}
```

---

### 5.7 Bag Data Management

#### 5.7.1 Get the List of Mapping Bags

Endpoint:

```text
GET /api/bag/map/create/get
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "获取bag包列表成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "获取bag包列表失败！","data": null}
```

---

#### 5.7.2 Delete a Bag

Endpoint:

```text
GET /api/bag/map/create/delete
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| bagName | String | Bag name. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "删除建图bag包成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "删除建图bag包失败！","data": null}
```

---

### 5.8 System Configuration

#### 5.8.1 Get the System Configuration

Endpoint:

```text
GET /admin/config/get
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "查询配置成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "查询配置失败！","data": null}
```

---

#### 5.8.2 Get the Current Language Setting

Endpoint:

```text
GET /admin/config/getLocale
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "","data": null}
```

---

#### 5.8.3 Change the System Language

Endpoint:

```text
GET /admin/config/changeLocale
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| locale | String | Language (zh: Chinese, en: English). Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "","data": null}
```

---

#### 5.8.4 Modify General Settings

Endpoint:

```text
POST /admin/config/common/update
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| navSys | Number | Navigation type. Required. |
| chassisType | Number | Chassis type (RANGER-DELTA: 1, RANGER-AIR: 2). Required. |
| locale | String | Language (zh: Chinese, en: English). Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "修改配置成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "修改配置失败！","data": null}
```

---

#### 5.8.5 Modify Battery Thresholds

Endpoint:

```text
POST /admin/config/battery/update
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| enable | Boolean | Enable or disable. Required. |
| chargePct | Number | Charging threshold. Required. |
| alarmPct | Number | Alarm threshold. Required. |
| fullPct | Number | Full-charge threshold. Required. |
| separateSpeed | Number | Undocking speed (m/s). Required. |
| separateTime | Number | Undocking time (s). Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "修改配置成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "修改配置失败！","data": null}
```

---

#### 5.8.6 Modify Navigation Parameters

Endpoint:

```text
POST /admin/config/nav/update
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| maxVelX | Number | Maximum navigation speed (m/s). Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "修改配置成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "修改配置失败！","data": null}
```

### 5.9 Administrator and Network Management

#### 5.9.1 Change the Administrator Password

Endpoint:

```text
GET /admin/update/pwd
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| username | String | Username. Required. |
| password | String | Password. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "用户登陆成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "用户登陆失败！","data": null}
```

---

#### 5.9.2 Get the System Operation Log

Endpoint:

```text
GET /admin/oper/log/get
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| startTime | String | Start time, for example 2025-11-26 09:40:10. Optional. |
| endTime | String | End time. Optional. |
| currentPage | Number | Current page. Required. |
| pageSize | Number | Number of entries per page. Required. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "查询操作日志成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "查询操作日志失败！","data": null}
```

---

#### 5.9.3 Get Available Wi-Fi Networks

Endpoint:

```text
GET /admin/wifi/get
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "查询WIFI列表成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "查询WIFI列表失败！","data": null}\
```

---

#### 5.9.4 Connect to a Wi-Fi Network

Endpoint:

```text
POST /admin/wifi/connect
```

Parameters:

| Field | Type | Description |
| --- | --- | --- |
| ssid | String | Wi-Fi name. Required. |
| password | String | Password. Leave empty if the network has no password. Optional. |

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
HTTP 1.1/ 200 OK

{"status": true,"errCode": null,"msg": "WIFI连接成功！","data": null}
```

- Failure response:

```json
HTTP 1.1/ 200 OK

{"status": false,"errCode": null,"msg": "WIFI连接失败！","data": null}
```

---

## 6. Getting Navigation Information on the Developer Expansion Module over SSH (WebSocket)

The base address for real-time navigation WebSocket streams is:

```text
ws://10.7.5.99:6060
```

There are 11 continuous push channels.

### 6.1 Preparation: Create a Common WebSocket Monitoring Function

After logging in to the Developer Expansion Module over SSH, run:

```bash
ws_watch()
{
    python3 - "$1" <<'PY'
import json
import sys
import websocket

url = sys.argv[1]

print("Connecting:", url)
ws = websocket.create_connection(url, timeout=5)
ws.settimeout(None)
print("WebSocket connected. Press Ctrl+C to exit.")

try:
    while True:
        raw = ws.recv()

        if raw in (None, "", b""):
            print("Connection closed.")
            break

        if isinstance(raw, bytes):
            raw = raw.decode("utf-8", errors="replace")

        try:
            data = json.loads(raw)
            print(json.dumps(data, ensure_ascii=False, indent=2))
        except json.JSONDecodeError:
            print(raw)

except KeyboardInterrupt:
    print("\nMonitoring stopped.")

finally:
    ws.close()
PY
}
```

---

### 6.2 Real-Time Pose

Endpoint:

```text
ws://10.7.5.99:6060/real_time_pose
```

Pushes real-time pose information at 1 Hz. The pose coordinate frame is shown in the figure below: the x-axis points horizontally to the right, and the angle increases clockwise from 0 to 360 degrees.

![Pose coordinate frame](https://oss.limxdynamics.com/uploads/material/%E9%BB%98%E8%AE%A4/TRON%202/demo/mobile_base/pose_coordinate_frame_en.png)

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data": {"angle": 360.0,           // Heading angle     "position": {"x": 361,               // Grid coordinate x"y": 304                // Grid coordinate y}}}
```

---

### 6.3 Real-Time Map PNG

Pushes the real-time map image at 1 Hz during mapping.

Endpoint:

```text
ws://10.7.5.99:6060/real_time_map_png
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data": {"width": 100,              // Image width     "height": 200,             // Image height"format": "png",           // Image format"resolution": 0.05,        // Resolution; 0.05 means one pixel represents 5 cm"data": "iVBORw0KGgoAAAANSUhEUgAABOcAAAIcCAYAAAC958..."  // Base64-encoded image. To display it in a web page, add the prefix data:image/png;base64,}}
```

---

### 6.4 Real-Time Working Status

Endpoint:

```text
ws://10.7.5.99:6060/real_time_work_status
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data":{"mapName":"0303",                         // Current map"floorNum":1,                             // Current floor"robotStatus":0,                          // Robot status: 1 idle, 2 mapping, 3 navigating"robotStatusText":null,                   // Robot status description"robotMapStatus":0,                       // Robot mapping status: 1 idle, 2 creating"robotMapStatusText":null,"robotNavActionStatus":1,                 // Robot navigation action status: 1 idle, 2 started, 3 stopped, 4 paused, 5 resumed"robotNavActionStatusText":"空闲","robotNavDetailStatus":204,               // Robot navigation detail status"robotNavDetailStatusText":"到达目标点","point": {                                // Present only after the target point is reached; use it for application logic"sn": "",}}}

Navigation detail status codes:

100 Idle

101 Starting navigation

102 Navigation started

103 Navigation failed to start

104 Stopping navigation

105 Navigation stopped

106 Navigation failed to stop

107 Loading map

108 Map loaded

109 Map failed to load

110 Initializing

111 Initialization succeeded

112 Initialization failed

113 Localizing

114 Localization succeeded

115 Localization failed

116 Localization lost

200 Navigating

201 Navigation failed

202 Path generation failed

210 Obstacle ahead

211 Avoiding obstacle

220 Target point unreachable

221 Target point reached

222 Target point not reached

223 Fine-tuning orientation

300 Docking

301 Charging
```

---

### 6.5 Front LiDAR

Pushes the front LiDAR point cloud at 1 Hz.

Endpoint:

```text
ws://10.7.5.99:6060/real_time_laser/front
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data": [[660,538],[660,538],[659,538],[660,538], ...           // Grid coordinates of the LiDAR point cloud]}
```

---

### 6.6 Rear LiDAR

Pushes the rear LiDAR point cloud at 1 Hz.

Endpoint:

```text
ws://10.7.5.99:6060/real_time_laser/back
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data": [[660,538],[660,538],[659,538],[660,538], ...           // Grid coordinates of the LiDAR point cloud]}
```

---

### 6.7 Camera or Depth Point Cloud

Pushes the front camera point cloud at 1 Hz.

Endpoint:

```text
ws://10.7.5.99:6060/real_time_laser/camera
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data": [[660,538],[660,538],[659,538],[660,538], ...           // Grid coordinates of the LiDAR point cloud]}
```

---

### 6.8 System Resource Usage

Pushes real-time system usage at 1 Hz.

Endpoint:

```text
ws://10.7.5.99:6060/real_time/os_usage
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data": {"cpu": 55.4,          // CPU usage"disk": 83.5,         // Disk usage"mem": 15.1,          // Memory usage"uptime": 24633       // Uptime (s)}}
```

---

### 6.9 Mobile Base System Status

Pushes mobile base status feedback at 1 Hz.

Endpoint:

```text
ws://10.7.5.99:6060/chassis/sys_status
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data": {"ctrlMode": {"text": "CAN模式", "value": 1},   // Control mode: 0 standby, 1 CAN, 2 serial control, 3 remote control"status": {"text": "正常", "value": 0},        // Mobile base status: 0 normal, 1 emergency stop pressed, 2 fault"vol": 49.7                                   // Voltage (V)}}
```

---

### 6.10 Mobile Base Motion Status

Pushes mobile base motion feedback at 1 Hz.

Endpoint:

```text
ws://10.7.5.99:6060/chassis/motion
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data": {"angular": 0.0,      // Angular velocity (rad/s)"linear": 0.0        // Linear velocity (m/s)}}
```

---

### 6.11 Full BMS Status

Pushes BMS status at 1 Hz.

Endpoint:

```text
ws://10.7.5.99:6060/chassis/bms_all
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data": {"current": -0.5,           // Current (A)"soc": 74,                 // State of charge (%)"soh": 100,                // Battery state of health (%)"temperature": 27.4,       // Battery temperature"vol": 49.7                // Voltage (V)}}
```

---

### 6.12 Mileage

Pushes mileage information at 1 Hz.

Endpoint:

```text
ws://10.7.5.99:6060/chassis/distance
```

Response fields:

| Field | Type | Description |
| --- | --- | --- |
| status | Boolean | Status (true/false) |
| errCode | String | Error code |
| msg | String | Message |
| data | Object | Response data |

- Success response:

```json
{"status":true,"errCode":null,"msg":null,"data": {"current": 230,            // Distance traveled this session (m)"total": 11401             // Total distance traveled (m)}}
```

---

## 7. Example: A Complete SSH Navigation Workflow

### 7.1 Step 1: Log In to the Developer Expansion Module

```bash
ssh guest@10.192.1.4
```

### 7.2 Step 2: Check the Network

```bash
ip route get 10.7.5.99
sudo ip addr add 10.7.5.10/24 dev enp2s0+

ip route get 10.7.5.99

ping -c 4 10.7.5.99
curl -v --connect-timeout 3 \
  http://10.7.5.99/devdoc/index.html \
  -o /dev/null
```

### 7.3 Step 3: Log In as Administrator and Get a Token

```bash
read -rsp "Navigation board password: " NAV_PASSWORD
echo

LOGIN_RESULT=$(
  curl -sS -X POST \
    'http://10.7.5.99/admin/login' \
    -H 'Content-Type: application/json' \
    -d "$(jq -nc \
      --arg username admin \
      --arg password "$NAV_PASSWORD" \
      '{username:$username,password:$password}')"
)

export NAV_TOKEN="$(
  echo "$LOGIN_RESULT" |
  jq -r '.data.accessToken // empty'
)"

echo "$LOGIN_RESULT" | jq
```

### 7.4 Step 4: Create a Map

Map creation workflow

Log in and get a token

↓Start map creation

↓Drive the robot remotely to scan the environment

↓Stop and save the map

↓Query the map list

↓Get the map image

### 7.5 Step 5: Switch Maps

The navigation workflow is as follows:

Log in and get a token

↓Switch maps

↓Set the initial pose

↓Query or create target points

↓Start point navigation or route patrol

↓Monitor real-time pose and navigation status

↓Reach the target or stop the task

```bash
curl -sS -G \
  -H "Authorization: Bearer $NAV_TOKEN" \
  'http://10.7.5.99/api/nav/switch/map' \
  --data-urlencode 'mapName=0716' | jq
```

### 7.6 Step 6: Set the Initial Pose

```bash
curl -sS -G \
  -H "Authorization: Bearer $NAV_TOKEN" \
  'http://10.7.5.99/api/nav/init/pose' \
  --data-urlencode 'x=361' \
  --data-urlencode 'y=304' \
  --data-urlencode 'angle=0' | jq
```

### 7.7 Step 7: Query Points

```bash
curl -sS -G \
  -H "Authorization: Bearer $NAV_TOKEN" \
  'http://10.7.5.99/api/point/get/by/mapname' \
  --data-urlencode 'mapName=0716' | jq
```

### 7.8 Step 8: Start Real-Time Status Monitoring

The real-time status workflow is as follows:

Connect to the corresponding WebSocket address

↓Wait for continuous pushes from the server

↓Parse the JSON or sensor data

↓Update the host application, web page, or RViz display

Open a second terminal on your PC and log in again:

```bash
ssh guest@10.192.1.4
```

Run:

```bash
python3 - <<'PY'
import websocket

url = "ws://10.7.5.99:6060/real_time_work_status"
ws = websocket.create_connection(url, timeout=5)

try:
    while True:
        print(ws.recv())
except KeyboardInterrupt:
    pass
finally:
    ws.close()
PY
```

### 7.9 Step 9: Navigate by Point ID

Run the following in the first SSH terminal:

```bash
curl -sS -G \
  -H "Authorization: Bearer $NAV_TOKEN" \
  'http://10.7.5.99/api/nav/task/point/id' \
  --data-urlencode 'id=19' \
  --data-urlencode 'followRoadNet=true' \
  --data-urlencode 'forceChargingStart=false' | jq
```

### 7.10 Step 10: Stop Navigation

```bash
curl -sS \
  -H "Authorization: Bearer $NAV_TOKEN" \
  'http://10.7.5.99/api/nav/task/stop' | jq
```

Every API call must check all of the following:

```text
HTTP status code

JSON.status

JSON.msg
```

`HTTP 200` only means the server received the request. Only `status=true` means the API accepted the operation.

---
