@@ -104,7 +104,7 @@ def generate_test_description(tf_prefix):
104104 DeclareLaunchArgument (
105105 "launch_ursim" ,
106106 default_value = "true" ,
107- description = "Launches the ursim when running the test if True"
107+ description = "Launches the ursim when running the test if True" ,
108108 )
109109 )
110110
@@ -129,7 +129,7 @@ def generate_test_description(tf_prefix):
129129 "start_joint_controller" : "false" ,
130130 "tf_prefix" : tf_prefix ,
131131 }.items (),
132- condition = IfCondition (launch_ursim )
132+ condition = IfCondition (launch_ursim ),
133133 )
134134
135135 ursim = ExecuteProcess (
@@ -148,7 +148,7 @@ def generate_test_description(tf_prefix):
148148 ],
149149 name = "start_ursim" ,
150150 output = "screen" ,
151- condition = IfCondition (launch_ursim )
151+ condition = IfCondition (launch_ursim ),
152152 )
153153
154154 wait_dashboard_server = ExecuteProcess (
@@ -159,12 +159,12 @@ def generate_test_description(tf_prefix):
159159 ],
160160 name = "wait_dashboard_server" ,
161161 output = "screen" ,
162- condition = IfCondition (launch_ursim )
162+ condition = IfCondition (launch_ursim ),
163163 )
164164
165165 driver_starter = RegisterEventHandler (
166166 OnProcessExit (target_action = wait_dashboard_server , on_exit = robot_driver ),
167- condition = IfCondition (launch_ursim )
167+ condition = IfCondition (launch_ursim ),
168168 )
169169
170170 robot_driver_no_wait = IncludeLaunchDescription (
@@ -184,11 +184,12 @@ def generate_test_description(tf_prefix):
184184 "start_joint_controller" : "false" ,
185185 "tf_prefix" : tf_prefix ,
186186 }.items (),
187- condition = UnlessCondition (launch_ursim )
187+ condition = UnlessCondition (launch_ursim ),
188188 )
189189
190190 return LaunchDescription (
191- declared_arguments + [ReadyToTest (), wait_dashboard_server , ursim , driver_starter , robot_driver_no_wait ]
191+ declared_arguments
192+ + [ReadyToTest (), wait_dashboard_server , ursim , driver_starter , robot_driver_no_wait ]
192193 )
193194
194195class RobotDriverTest (unittest .TestCase ):
@@ -499,7 +500,9 @@ def get_result(self, action_name, goal_response, timeout):
499500 raise Exception (f"Exception while calling action: { future_res .exception ()} " )
500501
501502
502- def waitForController (self , controller_name , controller_status = "active" , timeout = TIMEOUT_WAIT_SERVICE ):
503+ def waitForController (
504+ self , controller_name , controller_status = "active" , timeout = TIMEOUT_WAIT_SERVICE
505+ ):
503506 controller_running = False
504507 end_time = time .time () + timeout
505508 while controller_running == False and time .time () < end_time :
@@ -513,7 +516,8 @@ def waitForController(self, controller_name, controller_status="active", timeout
513516
514517 if controller_running == False :
515518 raise Exception (
516- f"Controller { controller_name } did not reach controller state { controller_status } within timeout of { timeout } " )
519+ f"Controller { controller_name } did not reach controller state { controller_status } within timeout of { timeout } "
520+ )
517521
518522def waitForService (node , srv_name , srv_type , timeout = TIMEOUT_WAIT_SERVICE ):
519523 client = node .create_client (srv_type , srv_name )
0 commit comments