监听机器人姿态demo

async test.demo_robot_posture.test_ObserveRobotPosture()[源代码]

监听机器人姿态demo

监听机器人姿态变化事件,机器上报当前的姿态RobotPosture(当发生姿态发生改变的时候)

当机器人侧躺(LYING)或平躺(LYINGDOWN)时,停止监听,并播报”我摔倒了”

# ObserveFallClimbResponse.status

# STAND = 1; //站立

# SPLITS_LEFT = 2; //左弓步

# SPLITS_RIGHT = 3; //右弓步

# SITDOWN = 4; //坐下

# SQUATDOWN = 5; //蹲下

# KNEELING = 6; //跪下

# LYING = 7; //侧躺

# LYINGDOWN = 8; //平躺

# SPLITS_LEFT_1 = 9; //左劈叉

# SPLITS_RIGHT_2 = 10;//右劈叉

# BEND = 11;//弯腰