This commit is contained in:
ackimixs
2024-04-10 20:52:06 +02:00
parent 7639ab90c6
commit 617a1f27d3

View File

@@ -340,6 +340,8 @@ void TCPServer::goToAruco(const ArucoTagPos &arucoTagPos, const int pince) {
double xPrime = arucoTagPos.pos.first[0];
double yPrime = arucoTagPos.pos.first[1] + decalage;
std::cout << "Aruco position1 " << xPrime << " " << yPrime << std::endl;
double x = (xPrime * std::cos(robotPose.theta) + yPrime * std::sin(robotPose.theta)) + this->robotPose.pos.x;
double y = (-xPrime * std::sin(robotPose.theta) + yPrime * std::cos(robotPose.theta)) + this->robotPose.pos.y;