Skip to content

Commit

Permalink
set receive timeout after connecting the client (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-roperobotics authored Sep 26, 2024
1 parent 5407dfe commit 27dbac5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ur_robot_driver/src/dashboard_client_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 27dbac5

Please sign in to comment.