From 1b3f050e0cba9782c85efe91c2295e0504a737d0 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Mon, 8 Apr 2024 17:01:38 +0200 Subject: [PATCH] Who did that ?! --- tcp/MyClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp/MyClient.cpp b/tcp/MyClient.cpp index ebcff57..b7bb961 100644 --- a/tcp/MyClient.cpp +++ b/tcp/MyClient.cpp @@ -43,7 +43,7 @@ void MyClient::handleMessage(const std::string& message) } else if (messageSplited[2] == "set robot_pos") { // cut the string with space and take the first, second, third and fourth element - std::vector tokens = TCPSocket::split(message, ","); + std::vector tokens = TCPSocket::split(messageSplited[3], ","); robotPose->position.x = std::stof(tokens[0]); robotPose->position.y = std::stof(tokens[1]);