refactor(controller): Replace ClassicWalk with StaticWalk method
- Renamed the ClassicWalk method to StaticWalk in the controller interface, removing the flag parameter for a simplified usage. - Updated the implementation to reflect the new method signature, ensuring consistency across the controller functionality.
This commit is contained in:
@@ -58,7 +58,7 @@ public:
|
||||
bool FreeBound(bool flag);
|
||||
bool FreeJump(bool flag);
|
||||
bool FreeAvoid(bool flag);
|
||||
bool ClassicWalk(bool flag);
|
||||
bool StaticWalk();
|
||||
bool WalkUpright(bool flag);
|
||||
bool CrossStep(bool flag);
|
||||
bool TrajectoryFollow(std::vector<unitree::robot::go2::PathPoint>& path);
|
||||
|
||||
@@ -287,13 +287,13 @@ bool Controller::Dance2() {
|
||||
|
||||
bool Controller::LeftFlip() {
|
||||
return ExecuteSportCmd([](auto* sc) {
|
||||
// return sc->LeftFlip();
|
||||
return sc->LeftFlip();
|
||||
});
|
||||
}
|
||||
|
||||
bool Controller::BackFlip() {
|
||||
return ExecuteSportCmd([](auto* sc) {
|
||||
// return sc->BackFlip();
|
||||
return sc->BackFlip();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -321,9 +321,9 @@ bool Controller::FreeAvoid(bool flag) {
|
||||
});
|
||||
}
|
||||
|
||||
bool Controller::ClassicWalk(bool flag) {
|
||||
return ExecuteSportCmd([flag](auto* sc) {
|
||||
return sc->ClassicWalk(flag);
|
||||
bool Controller::StaticWalk() {
|
||||
return ExecuteSportCmd([](auto* sc) {
|
||||
return sc->StaticWalk();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user