Discovery and configuration
Core interfaces
Current version · 1.4.0
discover_exos()
Scan for discoverable exoskeleton devices.
Type
std::vector<qnbot::DiscoveredExo> qnbot::discover_exos();Returns
A sequence of discovery results. Each DiscoveredExo contains:
Fields
| Field | Type | Description |
|---|---|---|
port | std::string | Serial port path |
transport_type | ExoTransportType | Required transport field; currently ExoTransportType::serial |
device_info | std::optional<ExoDeviceInfo> | Device information when probing succeeds |
error | std::optional<ExoDiscoveryIssue> | Probe failure; mutually exclusive with device_info |
ExoDiscoveryIssue contains code and message. ExoDiscoveryErrorCode members are port_open, protocol_error, and incompatible.
ExoConfig
Configure an exoskeleton device connection, logical name, and enabled state.
Type
struct ExoConfig {
SerialConnection connection;
std::optional<std::string> name;
bool enabled{true};
};Constructors include the default constructor, ExoConfig(SerialConnection), and ExoConfig(name, connection, enabled). operator DeviceConfig() converts it to the Core configuration. ExoSerialConnection is an alias for SerialConnection.
Sdk::exo() returns the Exo domain entry point.