refactor(controller): Remove unused motion control methods and update CMake configuration
- Removed several unused methods from the Controller class, including HandStand, ClassicWalk, AutoRecoverSet, StaticWalk, TrotRun, EconomicGait, and SwitchAvoidMode. - Updated CMakeLists.txt to remove the hardcoded include path for unitree SDK, streamlining the include directories for the main target.
This commit is contained in:
@@ -587,8 +587,6 @@ bool CustomRobot::processSportCmd(const std::string& cmd, const nlohmann::json&
|
||||
return controller_->LeftFlip();
|
||||
} else if (cmd == "BackFlip") {
|
||||
return controller_->BackFlip();
|
||||
} else if (cmd == "HandStand") {
|
||||
return controller_->HandStand(message["param"]["flag"]);
|
||||
} else if (cmd == "FreeWalk") {
|
||||
return controller_->FreeWalk();
|
||||
} else if (cmd == "FreeBound") {
|
||||
@@ -597,22 +595,10 @@ bool CustomRobot::processSportCmd(const std::string& cmd, const nlohmann::json&
|
||||
return controller_->FreeJump(message["param"]["flag"]);
|
||||
} else if (cmd == "FreeAvoid") {
|
||||
return controller_->FreeAvoid(message["param"]["flag"]);
|
||||
} else if (cmd == "ClassicWalk") {
|
||||
return controller_->ClassicWalk(message["param"]["flag"]);
|
||||
} else if (cmd == "WalkUpright") {
|
||||
return controller_->WalkUpright(message["param"]["flag"]);
|
||||
} else if (cmd == "CrossStep") {
|
||||
return controller_->CrossStep(message["param"]["flag"]);
|
||||
} else if (cmd == "AutoRecoverSet") {
|
||||
return controller_->AutoRecoverSet(message["param"]["flag"]);
|
||||
} else if (cmd == "StaticWalk") {
|
||||
return controller_->StaticWalk();
|
||||
} else if (cmd == "TrotRun") {
|
||||
return controller_->TrotRun();
|
||||
} else if (cmd == "EconomicGait") {
|
||||
return controller_->EconomicGait();
|
||||
} else if (cmd == "SwitchAvoidMode") {
|
||||
return controller_->SwitchAvoidMode();
|
||||
} else if (cmd == "TrajectoryFollow") {
|
||||
return controller_->TrajectoryFollow(message["param"]["path"]);
|
||||
} else if (cmd == "FootRaiseHeight") {
|
||||
|
||||
Reference in New Issue
Block a user