- Posts: 132
- Thank you received: 22
Scara kinematics
- sliptonic
- Offline
- Premium Member
-
Less
More
7 years 4 months ago #136994
by sliptonic
Scara kinematics was created by sliptonic
I've configured my scara robot so all joints are homing nicely. In Axis, when I jog the Z axis in a negative direction (down), the end effector physically moves down. So far, so good. But it moves 'up' in the 3d window.
In the ini file, traj coordinates are XYZC and Display geometry is the same.
If I switch display geometry to XY-ZC Then the motion on screen is coordinated with the machine but everything else is inverted. Z "up" is below Z 'down' if that makes sense.
I've tried inverted the axis by changing the encoder scale and output scale, but then jogging negative goes up and vice versa. So I don't think my issue is hardware configuration. I think it's related to the kinematics.
in scarakins.c there's a comment:
That leads me to believe my joint[2] needs to be negative. But I don't know how to set that.
Am I barking up the wrong tree?
In the ini file, traj coordinates are XYZC and Display geometry is the same.
If I switch display geometry to XY-ZC Then the motion on screen is coordinated with the machine but everything else is inverted. Z "up" is below Z 'down' if that makes sense.
I've tried inverted the axis by changing the encoder scale and output scale, but then jogging negative goes up and vice versa. So I don't think my issue is hardware configuration. I think it's related to the kinematics.
in scarakins.c there's a comment:
Code:
joint[2] = End effector slides along a vertical axis at the outer end
of the outer arm. A value of zero means the end effector
is at the same height as the center of the outer arm, and
positive values mean downward movement.
That leads me to believe my joint[2] needs to be negative. But I don't know how to set that.
Am I barking up the wrong tree?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
7 years 4 months ago #137236
by andypugh
Replied by andypugh on topic Scara kinematics
It sounds to me like the kinematics is set up wrong. positive for down just seems wrong?
Please Log in or Create an account to join the conversation.
- sliptonic
- Offline
- Premium Member
-
Less
More
- Posts: 132
- Thank you received: 22
7 years 4 months ago #137663
by sliptonic
Replied by sliptonic on topic Scara kinematics
I thought so too but that's how the scarakins.c file is now in master. Is this a difference between joint mode and world mode?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
7 years 4 months ago #137731
by andypugh
It seems that it is:
github.com/LinuxCNC/linuxcnc/blob/master...tics/scarakins.c#L94
z = .... -joint(2) ....
Replied by andypugh on topic Scara kinematics
sliptonic wrote: Is this a difference between joint mode and world mode?
It seems that it is:
github.com/LinuxCNC/linuxcnc/blob/master...tics/scarakins.c#L94
z = .... -joint(2) ....
The following user(s) said Thank You: DPFlex
Please Log in or Create an account to join the conversation.
- sliptonic
- Offline
- Premium Member
-
Less
More
- Posts: 132
- Thank you received: 22
7 years 4 months ago #137833
by sliptonic
Replied by sliptonic on topic Scara kinematics
Ok, that worked! I had to invert the Z in the inverse section as well.
github.com/LinuxCNC/linuxcnc/blob/master...ics/scarakins.c#L162
It's not a high priority but scaragui is reversed as well. Any idea where I flip that one?
github.com/LinuxCNC/linuxcnc/blob/master...ics/scarakins.c#L162
It's not a high priority but scaragui is reversed as well. Any idea where I flip that one?
Please Log in or Create an account to join the conversation.
- sliptonic
- Offline
- Premium Member
-
Less
More
- Posts: 132
- Thank you received: 22
7 years 4 months ago #137839
by sliptonic
Replied by sliptonic on topic Scara kinematics
I'm also finding that while I can jog in joint mode consistently, in world mode, I get following errors at places that should be well inside the usable envelope. These errors happen regardless of the jog speed but happen consistently at certain places. For example, I'll get following errors jogging at 100 mm/min in one part of the table but can easily jog at 6000 mm/min in another. As far as I can tell, it's nothing mechanical since each joint can move at maximum speed in joint mode in the same area.
Advice on how to troubleshoot this would be appreciated.
Advice on how to troubleshoot this would be appreciated.
Please Log in or Create an account to join the conversation.
Time to create page: 4.523 seconds