mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-03-30 12:29:37 +02:00
lidar
This commit is contained in:
@@ -171,7 +171,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
std::vector<std::string> args = TCPUtils::split(tokens[3], ",");
|
||||
this->lidarCalculatePos = {std::stof(args[0]), std::stof(args[1]), std::stof(args[2]) / 100};
|
||||
this->setPosition(this->lidarCalculatePos);
|
||||
usleep(100'000);
|
||||
usleep(50'000);
|
||||
this->setPosition(this->lidarCalculatePos);
|
||||
awaitForLidar = false;
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ private:
|
||||
TURN_SOLAR_PANNEL_2,
|
||||
TURN_SOLAR_PANNEL_3,
|
||||
CHECKPOINT_TRANSITION_SOLAR_PANEL_FLOWER,
|
||||
// GET_LIDAR_POS,
|
||||
GET_LIDAR_POS,
|
||||
|
||||
/*TAKE_FLOWER_BOTTOM,
|
||||
TAKE_FLOWER_BOTTOM,
|
||||
@@ -133,7 +133,7 @@ private:
|
||||
TAKE_3_PLANT_BOTTOM_2,
|
||||
REMOVE_POT_J2,
|
||||
DROP_FLOWER_J2,
|
||||
// GET_LIDAR_POS,
|
||||
GET_LIDAR_POS,
|
||||
|
||||
/*DROP_PURPLE_FLOWER,
|
||||
DROP_WHITE_FLOWER_J1,*/
|
||||
|
||||
Reference in New Issue
Block a user