Skip to content

Commit

Permalink
Add duration to steps
Browse files Browse the repository at this point in the history
  • Loading branch information
tsundvoll committed Oct 19, 2022
1 parent 8bd24cd commit 217aab3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/isar_robot/robotinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
import os
import random
import time
from datetime import datetime
from logging import Logger
from pathlib import Path
Expand All @@ -27,6 +28,8 @@
from robot_interface.utilities.json_service import EnhancedJSONEncoder
from random import randrange

STEP_DURATION_IN_SECONDS = 5


class Robot(RobotInterface):
def __init__(self):
Expand All @@ -45,6 +48,7 @@ def __init__(self):
)

def initiate_step(self, step: Step) -> bool:
time.sleep(STEP_DURATION_IN_SECONDS)
return True

def step_status(self) -> StepStatus:
Expand Down

0 comments on commit 217aab3

Please sign in to comment.