mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-01-19 00:47:36 +01:00
go
This commit is contained in:
@@ -237,7 +237,6 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
this->endRobotPose = {finishPoint[0], finishPoint[1], finishPoint[2]};
|
||||
|
||||
for (int j = 0; j < 3; j++) {
|
||||
std::cout << "AHHHHHHHHHHHHHHHHHH " << this->initRobotPose.pos.x << " " << this->initRobotPose.pos.y << " " << this->initRobotPose.theta << std::endl;
|
||||
this->setPosition(this->initRobotPose);
|
||||
usleep(1'000'000);
|
||||
}
|
||||
@@ -255,6 +254,8 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
|
||||
this->setSpeed(200);
|
||||
|
||||
this->go(this->initRobotPose[0], this->initRobotPose[1]);
|
||||
|
||||
switch (this->team) {
|
||||
case BLUE:
|
||||
case YELLOW:
|
||||
|
||||
Reference in New Issue
Block a user