7.10 Fault Diagnosis Section
7.10 Fault Diagnosis Section
Section titled “7.10 Fault Diagnosis Section”7.10.1 Overview
Section titled “7.10.1 Overview”The robot itself provides basic fault diagnosis and health monitoring capabilities, capable of monitoring some fundamental anomalies and faults, such as joint overheating, sensor failure, system occupancy consistently too high, and low battery power.
There are two basic concepts in fault diagnosis: Alert and Exception. Alerts are clusters of Exceptions. An Alert refers to a broad category of faults, while an Exception is a specific fault. For example, repositioning failure is an Alert, which corresponds to many different failure reasons, each being a specific Exception. AimMaster generally displays Alerts, as Exceptions are more numerous and less intuitive. If you need to continuously monitor the robot’s abnormal state, it is recommended to query the current alert list periodically (the frequency should not be too high, recommended 0.2 Hz or lower).
The full list of alerts can be found in the /agibot/software/v0/config/hds_master/database/alert_info.yaml file on the orin machine.
7.10.2 Get Current Alert List RPC Interface
Section titled “7.10.2 Get Current Alert List RPC Interface”| Interface Name | pb:/aimdk.protocol.HDSService/GetAlertList |
|---|---|
| Function Summary | Get the current alert list |
| Interface Type | HTTP JSON RPC |
| URL | http://192.168.100.110:50587/rpc/aimdk.protocol.HDSService/GetAlertList |
| Input Parameters | |
| Output Parameters |
|
| Example Script | examples/hds/get_alert_list.sh |
| Notes |
7.10.3 Attempt to Clear Alert RPC Interface
Section titled “7.10.3 Attempt to Clear Alert RPC Interface”| Interface Name | pb:/aimdk.protocol.HDSService/ClearAlert |
|---|---|
| Function Summary | Attempt to clear an alert, requiring the alert ID to be passed in |
| Interface Type | HTTP JSON RPC |
| URL | http://192.168.100.110:50587/rpc/aimdk.protocol.HDSService/ClearAlert |
| Input Parameters |
|
| Output Parameters |
|
| Example Script | examples/hds/clear_alert.sh |
| Notes |
|
7.10.4 Other Health Diagnosis Interfaces
Section titled “7.10.4 Other Health Diagnosis Interfaces”In addition to the GetAlertList and ClearAlert interfaces, the following interfaces are also available:
GetTotalAlertList: Get all alerts in the system, including historical informationGetAlertCount: Get the number of all current alerts in the systemGetExceptionEvent: Get the fault events in the systemSetShieldAlertLevel: Shield all alerts at a certain level and below
However, these interfaces provide too much information or are inconvenient to use. It is recommended to use only the GetAlertList and ClearAlert interfaces for basic alert information retrieval and clearing operations. Examples for each of these open interfaces are located in the examples/hds directory and are not detailed here.