cpp对齐官方
This commit is contained in:
9
tests/cpp/package_consumer/main.cpp
Normal file
9
tests/cpp/package_consumer/main.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "unitree_legged_sdk/unitree_legged_sdk.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
int main() {
|
||||
UNITREE_LEGGED_SDK::LowCmd command{};
|
||||
command.motorCmd[UNITREE_LEGGED_SDK::FR_0].q = 0.0f;
|
||||
return UNITREE_LEGGED_SDK::VersionSDK().empty() ? 1 : 0;
|
||||
}
|
||||
Reference in New Issue
Block a user