refactor(custom_robot): 移除未使用的运动控制命令
移除BodyHeight、SwitchGait、ContinuousGait、MoveToPos和FastWalk等不再使用的运动控制命令处理逻辑,简化代码结构
This commit is contained in:
@@ -606,19 +606,8 @@ bool CustomRobot::processSportCmd(const std::string& cmd, const nlohmann::json&
|
||||
return controller_->EconomicGait();
|
||||
} else if (cmd == "SwitchAvoidMode") {
|
||||
return controller_->SwitchAvoidMode();
|
||||
}
|
||||
else if (cmd == "BodyHeight") {
|
||||
return controller_->BodyHeight(message["param"]["height"]);
|
||||
} else if (cmd == "SwitchGait") {
|
||||
return controller_->SwitchGait(message["param"]["gait"]);
|
||||
} else if (cmd == "TrajectoryFollow") {
|
||||
return controller_->TrajectoryFollow(message["param"]["path"]);
|
||||
} else if (cmd == "ContinuousGait") {
|
||||
return controller_->ContinuousGait(message["param"]["flag"]);
|
||||
} else if (cmd == "MoveToPos") {
|
||||
return controller_->MoveToPos(message["param"]["x"], message["param"]["y"], message["param"]["yaw"]);
|
||||
} else if (cmd == "FastWalk") {
|
||||
return controller_->FastWalk(message["param"]["flag"]);
|
||||
} else if (cmd == "FootRaiseHeight") {
|
||||
return controller_->FootRaiseHeight(message["param"]["height"]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user