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:
@@ -206,7 +206,7 @@ void Localization::handleMessage(const std::string &message) {
|
||||
string data = tokens[3];
|
||||
if(contains(recipient, "lidar") || contains(recipient, "all")){
|
||||
if(contains(verb, "ping")){
|
||||
this->sendMessage(issuer, "pong", "");
|
||||
this->sendMessage(issuer, "pong", "1");
|
||||
}
|
||||
if(contains(verb, "get health")){
|
||||
if(this->getLidarHealth()){
|
||||
@@ -237,4 +237,4 @@ void Localization::handleMessage(const std::string &message) {
|
||||
|
||||
void Localization::sendProximityAlert(int distance, int tetha){
|
||||
this->sendMessage("all", "stop proximity", to_string(distance) + "," + to_string(tetha));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user