-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Description
Hi! Thanks for open-sourcing this.
I use a xArm 6 with a DC control box, and I noticed that I cannot set servo angles.
The issue is this line
device_type = int('{}1305'.format(self.axis)) if self.sn and int(self.sn[2:6]) >= 1305 and int(self.sn[2:6]) < 8500 else self.device_type
Basically, maybe because I am using a DC control box, my robot doesn't seem to have a sn in the eyes of this SDK, so self.sn
would be an empty string, and would cause an error when converted to an int.
In most other places, self.sn
would be checked against isdigit
(I will find some examples later), which leads me to believe this is a small bug. I made some modifications to let `device_type = self.device_type directly, and after that servo angle works fine
But maybe I am missing something or doing something wrong. In that case, I would really appreciate it if you can let me know
Cheers
Metadata
Metadata
Assignees
Labels
No labels