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:
@@ -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) {
|
||||
return ExecuteMotionSwitchCmd([&](auto* msc) {
|
||||
return msc->CheckMode(form, name);
|
||||
|
||||
Reference in New Issue
Block a user