From 3ea0d8e03cb108a12f24b8900df19d1ae32cb84d Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 11 Apr 2024 16:04:11 +0200 Subject: [PATCH] sent the pos --- TCPServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index d8801b1..552acf2 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -163,7 +163,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) } if (tokens[2] == "get pos") { std::string toSend = "strat;all;set pos;" + std::to_string(this->robotPose.pos.x) + "," + std::to_string(this->robotPose.pos.y) + "," + std::to_string(this->robotPose.theta * 100) + "\n"; - this->broadcastMessage(toSend, clientSocket); + this->broadcastMessage(toSend); } if (tokens[2] == "spawn") { // TODO change that to handle spawn point