mirror of
https://github.com/modelec/detection_adversaire.git
synced 2026-03-18 21:30:27 +01:00
send 1 with pong
This commit is contained in:
@@ -311,7 +311,7 @@ void Localization::handleMessage(const std::string &message) {
|
|||||||
string data = tokens[3];
|
string data = tokens[3];
|
||||||
if (contains(recipient, "lidar") || contains(recipient, "all")) {
|
if (contains(recipient, "lidar") || contains(recipient, "all")) {
|
||||||
if (contains(verb, "ping")) {
|
if (contains(verb, "ping")) {
|
||||||
this->sendMessage(issuer, "pong", "");
|
this->sendMessage(issuer, "pong", "1");
|
||||||
}
|
}
|
||||||
if (contains(verb, "get health")) {
|
if (contains(verb, "get health")) {
|
||||||
if (this->getLidarHealth()) {
|
if (this->getLidarHealth()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user