cpp对齐官方
This commit is contained in:
33
include/unitree_legged_sdk/quadruped.h
Normal file
33
include/unitree_legged_sdk/quadruped.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef GO1_PRO_UNITREE_LEGGED_QUADRUPED_H_
|
||||
#define GO1_PRO_UNITREE_LEGGED_QUADRUPED_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace UNITREE_LEGGED_SDK {
|
||||
|
||||
enum class LeggedType { Aliengo, A1, Go1, B1 };
|
||||
|
||||
std::string VersionSDK();
|
||||
int InitEnvironment();
|
||||
|
||||
constexpr int FR_ = 0;
|
||||
constexpr int FL_ = 1;
|
||||
constexpr int RR_ = 2;
|
||||
constexpr int RL_ = 3;
|
||||
|
||||
constexpr int FR_0 = 0;
|
||||
constexpr int FR_1 = 1;
|
||||
constexpr int FR_2 = 2;
|
||||
constexpr int FL_0 = 3;
|
||||
constexpr int FL_1 = 4;
|
||||
constexpr int FL_2 = 5;
|
||||
constexpr int RR_0 = 6;
|
||||
constexpr int RR_1 = 7;
|
||||
constexpr int RR_2 = 8;
|
||||
constexpr int RL_0 = 9;
|
||||
constexpr int RL_1 = 10;
|
||||
constexpr int RL_2 = 11;
|
||||
|
||||
} // namespace UNITREE_LEGGED_SDK
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user