code=0->success;
code!=0->Failed, refer to xarm_api_code;
3. Code Example
background
if direction =='position-x-increase'or direction =='position-x-decrease': self._xarm_sync_tcp(0) x = GLOBAL.XArm.xarm_position_step if direction =='position-x-increase'else-GLOBAL.XArm.xarm_position_stepif isMoveTool: code = GLOBAL.XArm.xarm.set_tool_position(x=x, speed=tcp_speed)else: code = GLOBAL.XArm.xarm.set_position(x=x, relative=True, speed=tcp_speed)