Script execution
This commit is contained in:
@@ -70,6 +70,16 @@ class RobotTCP(TcpDevice):
|
||||
def get_int(self):
|
||||
return int(self.get_var("n"))
|
||||
|
||||
def get_float(self):
|
||||
return float(self.get_var("n"))
|
||||
|
||||
def get_int_arr(self):
|
||||
return [int(x) for x in self.get_arr("arr")]
|
||||
|
||||
def get_float_arr(self):
|
||||
return [float(x) for x in self.get_arr("arr")]
|
||||
|
||||
|
||||
def eval_int(self, cmd):
|
||||
ret = self.execute('eval', "n=" + cmd)
|
||||
if ret.strip() != "":
|
||||
|
||||
Reference in New Issue
Block a user