Trajectory Planner using Ruckig Lib

More
15 Jul 2024 18:17 #305258 by ihavenofish
Replied by ihavenofish on topic Trajectory Planner using Ruckig Lib
I'm not sure this is entirely true.
Both fanuc and siemens fit splines for high speed motion. We definitely don't need the g code to describe a spline, but it does often get used under the hood to help describe all the pointes BETWEEN your g1 end points.
The following user(s) said Thank You: Grotius, Aciera

Please Log in or Create an account to join the conversation.

More
15 Jul 2024 18:32 #305261 by Grotius
Replied by Grotius on topic Trajectory Planner using Ruckig Lib
Hi Arciera,

I'm afraid I can't help you with implementing the linked 3d clothoid algorithm.
I have used chat_pdf ai yesterday. This works quite good, but stops and ask's money.
However i don't understand in the page at section (23)

There is a text :
i=1,2;
for j=0,1,2,3,4 are the knots of the spline, this i understand. But do you get what i does?
Thanks.

@IhaveNoFish,
get used under the hood
Indeed.
 
Attachments:
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
15 Jul 2024 18:40 #305262 by Aciera
Replied by Aciera on topic Trajectory Planner using Ruckig Lib

Both fanuc and siemens fit splines for high speed motion

Yes. What I meant is that nobody uses splines in the Gcode they load into the controller and thus the spline-related Gcodes implemented in LinuxCNC (ie G5, G5.1, G5.2, G5.3) have really been a solution looking for a problem. That is why I say that they are pretty much useless, _unless_ the can be repurposed for something new like internal path blending.
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
15 Jul 2024 19:05 #305264 by Aciera
Replied by Aciera on topic Trajectory Planner using Ruckig Lib

There is a text :
i=1,2;
for j=0,1,2,3,4 are the knots of the spline, this i understand. But do you get what i does?

I haven't really looked at the paper closely but here is what I think:
If you look at formula (14) you see that the 3d clothoid has two sets (i=1,2) of four parameters (theta, kappa, c , gamma). So 'i' stands for which set of parameters we are looking at.
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
15 Jul 2024 19:56 #305269 by Grotius
Replied by Grotius on topic Trajectory Planner using Ruckig Lib
Hi Arciera,

This is one of the first formula's to actually solve the clothoid spline.

It looks like 1.0 is for z trajects. Then the zero is knot zero. Begin of spline.
It looks like 2.0 is for xy trajects.

It looks like 1.4 is for z trajects. Then the 4 is knot four. End of spline.
It looks like 2.4 is for xy trajects.

Then you can say i=1, j=2. You have a set for z values, and a set for xy values. Because curvature is not only
on xy plane but also in xz plane.

 

I still don't fully understand the first formula, the short one at the top.
I think its calculating the "angle start" parameter for the z component.
Attachments:
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
15 Jul 2024 20:38 #305277 by Aciera
Replied by Aciera on topic Trajectory Planner using Ruckig Lib


It looks like 1.0 is for z trajects. Then the zero is knot zero. Begin of spline.
It looks like 2.0 is for xy trajects.

It looks like 1.4 is for z trajects. Then the 4 is knot four. End of spline.
It looks like 2.4 is for xy trajects.

Yes, that is how I understand it.

Then you can say i=1, j=2. You have a set for z values, and a set for xy values. Because curvature is not only on xy plane but also in xz plane.

I would say
i=1 is the parameter set for the xz-plane
i=2 is the parameter set for the xy-plane

As for the actual formula I'll need to have a look tomorrow as I have run out of time for today.
Overall the paper seems like quite a thorough step by step presentation of the method which makes me feel somewhat optimistic.
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
16 Jul 2024 00:14 #305299 by ihavenofish
Replied by ihavenofish on topic Trajectory Planner using Ruckig Lib
I did not know those even existed
:P

back when machines had no memory things were different. my Maho had all sorts of interesting canned cycles for complex motion that you would not have the memory to hold in a program.
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
16 Jul 2024 07:29 - 16 Jul 2024 14:51 #305322 by Aciera
Replied by Aciera on topic Trajectory Planner using Ruckig Lib
Regarding the formula for Theta(1,0):

I still don't fully understand the first formula, the short one at the top.
I think its calculating the "angle start" parameter for the z component.
 



This calculates the tangent angle (in the XZ plane) in the starting point (s0) of the clothoid on the first trajectory segment after rotating and translating the space corner so that the normal vector of the corner coincides with the z-axis (as shown in Fig 6 ).
If the corner is planar then the expression inside the bracket is zero and Theta(1,0) is zero (ie the tangent is horizontal).

I haven't yet been able to make up my mind if this method can also work for arc-helix corners.

[edit]
Well, I've given it a fair bit of thought and I cannot see a reason why it shouldn't work with helical segments.
Last edit: 16 Jul 2024 14:51 by Aciera.
The following user(s) said Thank You: Grotius

Please Log in or Create an account to join the conversation.

More
17 Jul 2024 17:20 - 17 Jul 2024 17:28 #305514 by Grotius
Replied by Grotius on topic Trajectory Planner using Ruckig Lib
Hi Arciera,

Well, I've given it a fair bit of thought and I cannot see a reason why it shouldn't work with helical segments.
Indeed, this works with anything.

Maybe, maybe we are lucky. In this thread it is possible they will give us 3d clothoid code from Italy university first hand.
He is not looking dayly here, but we have time.

It's also possible to request other 3d clothoid code from China.

Today i did review the gcode parser source code as i was not satisfied with it. I had problems changing from G40 to G41 after
one line of gcode during the program run. So the tool was not reacting to the given offset side.

So now that is solved. The parser can now read more gcode's at one line. Also it can read the spline
with multi xyz inputs at the same line. It will create xyz point sets.
 

valid input for spline :
g1 x0 y0 z0
g5 x1 x10 y5 x15 z20

will create spline points :
x0 y0 z0
x1
x10 y5
x15 z20

parser_to_shapes , wich is improved to work better now.
 
Attachments:
Last edit: 17 Jul 2024 17:28 by Grotius.
The following user(s) said Thank You: akb1212, tommylight, Aciera

Please Log in or Create an account to join the conversation.

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
17 Jul 2024 17:59 #305518 by Aciera
Replied by Aciera on topic Trajectory Planner using Ruckig Lib

Maybe, maybe we are lucky. In this thread it is possible they will give us 3d clothoid code from Italy university first hand.

Phew, one can sure tell that the paper linked in that thread comes from mathematicians. I could _probably_ workout the other paper written by engineers but this one I don't even need to try. I guess we'll see if they come up with anything useful.

Also it can read the spline with multi xyz inputs at the same line. It will create xyz point sets.

So if I understand you correctly you are planning on approximating the 3d clothoid fillets with the G5 spline gcode?

Please Log in or Create an account to join the conversation.

Time to create page: 0.390 seconds
Powered by Kunena Forum