We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407ab7e commit 648b5efCopy full SHA for 648b5ef
ur_robot_driver/src/robot_state_helper.cpp
@@ -361,12 +361,12 @@ void RobotStateHelper::setModeExecute(const std::shared_ptr<RobotStateHelper::Se
361
if (headless_mode_) {
362
result_->success = safeDashboardTrigger(this->resend_robot_program_srv_);
363
} else {
364
- // The dashboard denies playing immediately after switching the mode to RUNNING
365
- sleep(1);
366
if (play_program_srv_ == nullptr) {
367
result_->success = false;
368
result_->message = "Play program service not available on this robot.";
369
+ // The dashboard denies playing immediately after switching the mode to RUNNING
+ sleep(1);
370
result_->success = safeDashboardTrigger(this->play_program_srv_);
371
}
372
0 commit comments