File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
clearpath_tests/clearpath_tests Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 29
29
import os
30
30
import re
31
31
import subprocess
32
- import time
33
32
34
33
from clearpath_config .common .types .platform import Platform
35
34
from clearpath_platform_msgs .msg import Status
Original file line number Diff line number Diff line change 32
32
from rclpy .duration import Duration
33
33
from rclpy .node import Node
34
34
35
+
35
36
class Timeout :
36
37
"""
37
38
Reusable class for implementing basic timeouts during ROS operation.
38
39
39
40
Starts a background thread that spins until the time has elapsed.
40
41
"""
42
+
41
43
def __init__ (self , node : Node , duration : float ):
42
44
self .node = node
43
45
self .duration = Duration (seconds = duration )
Original file line number Diff line number Diff line change 31
31
import subprocess
32
32
import time
33
33
34
- from clearpath_generator_common .common import BaseGenerator
35
34
from clearpath_tests .test_node import ClearpathTestNode , ClearpathTestResult
36
- import rclpy
35
+
37
36
from wireless_msgs .msg import Connection
38
37
39
38
You can’t perform that action at this time.
0 commit comments