refactor(controller): Remove additional unused motion control methods

- Deleted the UseRemoteCommandFromApi, MoveToAbsolutePosition, and MoveToIncrementPosition methods from the controller interface and implementation. This further simplifies the code structure and enhances maintainability.
This commit is contained in:
2025-09-22 15:18:30 +08:00
parent bd023eaba3
commit 2189d7841f
2 changed files with 0 additions and 21 deletions

View File

@@ -57,9 +57,6 @@ public:
// Obstacle // Obstacle
bool SwitchSet(bool enable); bool SwitchSet(bool enable);
bool SwitchGet(bool& enable); bool SwitchGet(bool& enable);
bool UseRemoteCommandFromApi(bool isRemoteCommandsFromApi);
bool MoveToAbsolutePosition(float x, float y, float yaw);
bool MoveToIncrementPosition(float x, float y, float yaw);
// MotionSwitcher // MotionSwitcher
bool CheckMode(std::string& form, std::string& name); bool CheckMode(std::string& form, std::string& name);

View File

@@ -314,24 +314,6 @@ bool Controller::SwitchGet(bool& enable) {
}); });
} }
bool Controller::UseRemoteCommandFromApi(bool isRemoteCommandsFromApi) {
return ExecuteObstacleCmd([isRemoteCommandsFromApi](auto* oac) {
return oac->UseRemoteCommandFromApi(isRemoteCommandsFromApi);
});
}
bool Controller::MoveToAbsolutePosition(float x, float y, float yaw) {
return ExecuteObstacleCmd([x, y, yaw](auto* oac) {
return oac->MoveToAbsolutePosition(x, y, yaw);
});
}
bool Controller::MoveToIncrementPosition(float x, float y, float yaw) {
return ExecuteObstacleCmd([x, y, yaw](auto* oac) {
return oac->MoveToIncrementPosition(x, y, yaw);
});
}
bool Controller::CheckMode(std::string& form, std::string& name) { bool Controller::CheckMode(std::string& form, std::string& name) {
return ExecuteMotionSwitchCmd([&](auto* msc) { return ExecuteMotionSwitchCmd([&](auto* msc) {
return msc->CheckMode(form, name); return msc->CheckMode(form, name);