I want to take the inputs using root Tk() so I can make a target where the robot to move to do the necessary moves while it creates the target it show me that the target is not reachale which is not true because manually it can reach every point it needs to do all the work . This is the code for x,y,z inputs and this is the "error".
Code:
def RunProgram(x, y, z):
# Use default global variables
global PROGRAM_NAME
global APPROACH
global RADIUS
global SPEED_WELD
global SPEED_MOVE
global SIDES
global DRY_RUN
global RUN_MODE
RDK = Robolink()
robot = RDK.Item('Comau Smart5 NJ 110-3.0', ITEM_TYPE_ROBOT)
home = RDK.Item('Home')
#target = RDK.Item('Target 1')
target = RDK.AddTarget('Target1')
target.setPose(transl(x, y, z))
robot.MoveJ(target)