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) {