API referenceQnbot Exo PlusC++

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

FieldTypeDescription
portstd::stringSerial port path
transport_typeExoTransportTypeRequired transport field; currently ExoTransportType::serial
device_infostd::optional<ExoDeviceInfo>Device information when probing succeeds
errorstd::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.