I have an UR5e robot arm that i have connected to a viam-server. The problem i am having is that the function my_arm.move_to_position(pose = [...]) moves the arm in small steps. The arm moves about 1 cm before stopping rapidly and then moving again. It is fine if it happens between commands, but i feel there must be a better function or something to resolve this issue. My current code that moves the arm end in a square:
sync def main():
machine = await connect()
ur5e = Arm.from_robot(machine, "UR5eARM")
endpos = await ur5e.get_end_position()
endpos.y -= 100
await ur5e.move_to_position(pose = endpos)
endpos = await ur5e.get_end_position()
endpos.x -= 100
await ur5e.move_to_position(pose = endpos)
endpos = await ur5e.get_end_position()
endpos.y += 100
await ur5e.move_to_position(pose = endpos)
endpos = await ur5e.get_end_position()
endpos.x += 100
await ur5e.move_to_position(pose = endpos)
await machine.close()
The code above results in choppy/jerky movement. Thanks for any help in advance.