Skip to content

Commit 732df8f

Browse files
committed
Reset robot after protective stop
1 parent 6a8cbe8 commit 732df8f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_primary_client.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ TEST_F(PrimaryClientTest, test_send_script_blocking_ignore_warnings)
528528
EXPECT_NO_THROW(client_->commandBrakeRelease());
529529
// Impossible movement, will trigger an error and protective stop
530530
EXPECT_TRUE(client_->sendScriptBlocking("movel(p[10,0,0,0,0,0])", "", std::chrono::seconds(1), false));
531+
// reset the robot
532+
ASSERT_NO_THROW(client_->commandUnlockProtectiveStop());
533+
EXPECT_TRUE(client_->sendScriptBlocking("movej([0.5,-0.5,0.5,0,0,0])"));
531534
}
532535

533536
int main(int argc, char* argv[])

0 commit comments

Comments
 (0)