Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dobot get lock when go to specific location #49

Open
chinghiep01 opened this issue Dec 1, 2022 · 0 comments
Open

Dobot get lock when go to specific location #49

chinghiep01 opened this issue Dec 1, 2022 · 0 comments

Comments

@chinghiep01
Copy link

Hi,

I have question related to move dobot magician to specific location

when i try basic-example the dobot move according to current pose. However , when I try to put specific number such as



from serial.tools import list_ports

import pydobot

available_ports = list_ports.comports()
print(f'available ports: {[x.device for x in available_ports]}')
port = available_ports[0].device

device = pydobot.Dobot(port=port, verbose=True)

(x, y, z, r, j1, j2, j3, j4) = device.pose()
print(f'x:{x} y:{y} z:{z} j1:{j1} j2:{j2} j3:{j3} j4:{j4}')

for i in range(2):
    device.move_to(x+2, y + 20 , z + 50 , r, wait=True) # first direction 
    device.wait(1000)
    device.move_to ( 20 , 40 , 50 , 0 , wait=True) # second direction 
    device.wait(1000)

device.close()

From above code , the first direction is ok , when robot move to second direction is get lock and won't move back to the first direction. I dont think the robot excess the direction limit . I go to dobot studio and test with the second direction , it could move to other direction I want.

Notice : I also try the software package , when i do similar position code , the robot is get lock with red indicator

I'm not sure what is the issue. Any suggestion ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant