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

ETS3/teach has an error when the robot has a prismatic joint #5

Open
amiao1017 opened this issue Sep 21, 2023 · 1 comment
Open

ETS3/teach has an error when the robot has a prismatic joint #5

amiao1017 opened this issue Sep 21, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@amiao1017
Copy link

Describe the bug
ETS3/teach has an error when the robot has a prismatic joint

To Reproduce

W1 = 0.109;
W2 = 0.082;
L1 = 0.425;
L2 = 0.392;
H1 = 0.089;
H2 = 0.095;

e = ETS3.Rz("q1")*ETS3.Tz(H1)*ETS3.Ty(W1)*ETS3.Ry("q2")ETS3.Tx(L1)...
ETS3.Ry("q3")*ETS3.Tx(L2)*ETS3.Ry("q4")*ETS3.Ry(pi)*ETS3.Tz("q5")*ETS3.Ty(W2)*ETS3.Tz(H2)*ETS3.Rx(-pi/2)

e.fkine([0 -pi/2 0 0 pi/2])
e.teach

Screenshots
image

when you use ETS3.Rz("q5") instead of ETS3.Tz("q5"), everything is ok.

@petercorke petercorke added the bug Something isn't working label Oct 9, 2023
@petercorke
Copy link
Owner

The first-order cause is that we have to specify the range of the joint variable for a prismatic joint. For a revolute the default is -pi to pi, but for a prismatic joint there is no obvious default value. Specify ETS3.Tz("q5", qlim=[0,1]) or whatever the working range is. However, after that, there are further bugs which I'll need a bit of time to get my head back into this code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants