From 27dbac5c0bdf693a12f5dc814d7940a07ed8f7d1 Mon Sep 17 00:00:00 2001 From: steffen-roperobotics <49067328+steffen-roperobotics@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:00:40 +0200 Subject: [PATCH] set receive timeout after connecting the client (#596) --- ur_robot_driver/src/dashboard_client_ros.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ur_robot_driver/src/dashboard_client_ros.cpp b/ur_robot_driver/src/dashboard_client_ros.cpp index b8efd5610..7cc9c657b 100644 --- a/ur_robot_driver/src/dashboard_client_ros.cpp +++ b/ur_robot_driver/src/dashboard_client_ros.cpp @@ -359,7 +359,8 @@ bool DashboardClientROS::connect() // been received. tv.tv_sec = nh_.param("receive_timeout", 1); tv.tv_usec = 0; + bool ret = client_.connect(); client_.setReceiveTimeout(tv); - return client_.connect(); + return ret; } } // namespace ur_driver