From 1be83c8f9321c1a994087c0c53fff19f9c0387b9 Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 11 Apr 2024 18:44:38 +0200 Subject: [PATCH] debugging --- .../robotiq_2f_interface/src/Robotiq2fSocketAdapter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/robotiq_2f/robotiq_2f_interface/src/Robotiq2fSocketAdapter.cpp b/src/robotiq_2f/robotiq_2f_interface/src/Robotiq2fSocketAdapter.cpp index bac9d5e..1228fae 100644 --- a/src/robotiq_2f/robotiq_2f_interface/src/Robotiq2fSocketAdapter.cpp +++ b/src/robotiq_2f/robotiq_2f_interface/src/Robotiq2fSocketAdapter.cpp @@ -76,7 +76,7 @@ bool Robotiq2fSocketAdapter::sendCommand(const std::string& cmd) { return true; } -std::string Robotiq2fSocketAdapter::receiveResponse(int timeout_ms=2000) { +std::string Robotiq2fSocketAdapter::receiveResponse(int timeout_ms) { std::lock_guard lock(socketMutex_); if (*sockfd_ < 0) { std::cerr << "Attempted to receive response on a disconnected socket.\n"; @@ -342,7 +342,7 @@ std::tuple Robotiq2fSocketAdapter::move_and_wait_for_pos(int } -void Robotiq2fSocketAdapter::auto_calibrate(bool log=true) { +void Robotiq2fSocketAdapter::auto_calibrate(bool log) { // Open in case we are holding an object std::tuple result = move_and_wait_for_pos(open_position_, 64, 1); if (std::get<1>(result) != ObjectStatus::AT_DEST) {