Skip to content

Commit e479418

Browse files
committed
Increase default timeout for state changes to 30 seconds
1 parent ae3a6b9 commit e479418

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

include/ur_client_library/primary/primary_client.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ class PrimaryClient
9999
*
100100
* \returns true on successful power on, false otherwise.
101101
*/
102-
bool commandPowerOn(const bool validate = true,
103-
const std::chrono::milliseconds timeout = std::chrono::milliseconds(5000));
102+
bool commandPowerOn(const bool validate = true, const std::chrono::milliseconds timeout = std::chrono::seconds(30));
104103

105104
/*!
106105
* \brief Commands the robot to power off.
@@ -111,8 +110,7 @@ class PrimaryClient
111110
*
112111
* \returns true on successful power off, false otherwise.
113112
*/
114-
bool commandPowerOff(const bool validate = true,
115-
const std::chrono::milliseconds timeout = std::chrono::milliseconds(5000));
113+
bool commandPowerOff(const bool validate = true, const std::chrono::milliseconds timeout = std::chrono::seconds(30));
116114

117115
/*!
118116
* \brief Commands the robot to release the brakes
@@ -124,7 +122,7 @@ class PrimaryClient
124122
* \returns true on successful brake release, false otherwise.
125123
*/
126124
bool commandBrakeRelease(const bool validate = true,
127-
const std::chrono::milliseconds timeout = std::chrono::milliseconds(5000));
125+
const std::chrono::milliseconds timeout = std::chrono::seconds(30));
128126

129127
/*!
130128
* \brief Get the latest robot mode.

0 commit comments

Comments
 (0)