File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,10 @@ def execute(self):
223
223
self .console .set_footer ('' )
224
224
self .console .reset_box ()
225
225
# time.sleep(2)
226
- self .take_off (z_takeoff , True ) # TODO: Non-blocking?
226
+ try :
227
+ self .take_off (z_takeoff , True ) # TODO: Non-blocking?
228
+ except rospy .ServiceException as exc :
229
+ print ("Service takeOff not process request: " + str (exc ))
227
230
return 'quit'
228
231
229
232
class LandState (State ):
@@ -240,7 +243,10 @@ def execute(self):
240
243
self .console .set_footer ('' )
241
244
self .console .reset_box ()
242
245
# time.sleep(2)
243
- self .land (True ) # TODO: Non-blocking?
246
+ try :
247
+ self .land (True ) # TODO: Non-blocking?
248
+ except rospy .ServiceException as exc :
249
+ print ("Service takeOff not process request: " + str (exc ))
244
250
return 'quit'
245
251
246
252
class VelState (State ):
You can’t perform that action at this time.
0 commit comments