File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -343,8 +343,6 @@ def op_mode(self):
343
343
def op_mode (self , mode ):
344
344
"""Function to define the operation mode of the node
345
345
:param string mode: Mode to define.
346
- :return: Return if the operation mode was set with success or not
347
- :rtype: bool
348
346
349
347
The modes can be:
350
348
- 'NO MODE'
@@ -381,15 +379,13 @@ def op_mode(self, mode):
381
379
raise RuntimeError (
382
380
"Timeout setting node {0}'s new mode of operation to {1}." .format (
383
381
self .id , mode ))
384
- return True
385
382
except SdoCommunicationError as e :
386
383
logger .warning ('[SDO communication error] Cause: {0}' .format (str (e )))
387
384
except (RuntimeError , ValueError ) as e :
388
385
logger .warning ('{0}' .format (str (e )))
389
386
finally :
390
387
self .state = start_state # why?
391
388
logger .info ('Set node {n} operation mode to {m}.' .format (n = self .id , m = mode ))
392
- return False
393
389
394
390
def _clear_target_values (self ):
395
391
# [target velocity, target position, target torque]
You can’t perform that action at this time.
0 commit comments