This example shows how to initialize the Airbot SDK and retrieve product information.
This example shows how to initialize the Airbot SDK and retrieve product information.Example usage:
int main() {
auto sdk = std::make_shared<AirbotSdk>("192.168.0.xxx", 50051);
if (sdk->IsRunning()) {
sdk->GetLogger()->info("SDK start running:");
sdk->GetLogger()->info("Product Info:");
auto info = sdk->GetProductInfo();
for (const auto& [key, value] : info) {
std::string value_str;
for (const auto& val : value) {
value_str += val + " ";
}
if (!value_str.empty()) {
value_str.pop_back();
}
sdk->GetLogger()->info("{}: {}", key, value_str);
}
}
return 0;
}
Main SDK interface for controlling Airbot robotic arm.
Namespace containing all Airbot SDK related definitions.