diff --git a/src/custom_robot.cpp b/src/custom_robot.cpp index 9730e90..64f4aad 100644 --- a/src/custom_robot.cpp +++ b/src/custom_robot.cpp @@ -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"]); }