Skip to content

Commit 2f2c82d

Browse files
committed
Succeed power on command on PolyScope 5 when robot is running
We check for the robot state being IDLE and retry that with a very high timeout by default. This commit also accepts the robot to be in RUNNING in order to succeed.
1 parent 0fe3aec commit 2f2c82d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ur/dashboard_client_implementation_g5.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ DashboardResponse DashboardClientImplG5::commandPowerOn(const std::chrono::durat
438438
DashboardResponse response;
439439
try
440440
{
441-
response.message = retryCommandString("power on", "Powering on", "robotmode", "Robotmode: IDLE", timeout);
441+
response.message = retryCommandString("power on", "Powering on", "robotmode", "Robotmode: (IDLE|RUNNING)", timeout);
442442
response.ok = true;
443443
}
444444
catch (const UnexpectedResponse& e)

0 commit comments

Comments
 (0)