mirror of
https://github.com/modelec/detection_adversaire.git
synced 2026-03-18 21:30:27 +01:00
Update localization.cpp
This commit is contained in:
@@ -310,7 +310,7 @@ void Localization::handleMessage(const std::string &message) {
|
||||
if (contains(verb, "stop")) {
|
||||
this->started = false;
|
||||
}
|
||||
if (contains(verb, "set position")) {
|
||||
if (contains(verb, "set pos")) {
|
||||
vector<string> position = split(data, ",");
|
||||
this->setRobotPosition(stoi(position[0]), stoi(position[1]), stoi(position[2]));
|
||||
}
|
||||
@@ -320,4 +320,4 @@ void Localization::handleMessage(const std::string &message) {
|
||||
|
||||
void Localization::sendProximityAlert(int distance, int angle) {
|
||||
this->sendMessage("all", "stop proximity", to_string(distance) + "," + to_string(angle));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user