Change of Joint angle:'joint-angle-increase';'joint-angle-decrease';
Aligning the Hand(xArm5 only): 'set-end-level' ;
isMoveTool
bool
Yes
whether use Tool Coordinate or not(Base Coordinate by default)
isSetInitialPoint
bool
No
Not Used
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)