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:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user