- Posts: 351
- Thank you received: 153
New Trajectory Planner - Testers/programs wanted
- skunkworks
- Offline
- Moderator
-
I have a question (and maybe this is a bit vague and I can get more info later) I was running a program that someone had posted and it was running great at an acceleration of 500mm/sec^2. I was not seeing many fallbacks to parabolic blends. I upped the accelleration to 1000 and they started appearing more. Mainly on 90deg or sharper angles. Are parabolic blends faster at higher accelerations?
rellenberg wrote: Ahh, good catch. I enabled some additional debug outputs, and that "error" is one of them. What that error means is that the trajectory planner has overshot slightly. However, the size of the error is quite small, so in practice it won't affect anything. This condition occurred in the original TP as well, but there was no message to say so. I'll disable that error flat in a future commit.
- rellenberg
- Offline
- Junior Member
-
- Posts: 37
- Thank you received: 10
One thing to try is disabling the fallback entirely, to see if it runs faster or slower. The estimate of parabolic vs. circular arc speed is a guess, so in some case it may fall back even when it would be better not to. It would be really nice to isolate this with a simple case. I have a test file called "long-kink.ngc" that might work for this. Basically, we want a long segment, then a short segment at an angle, then another long one again. Comparing the velocity profiles for parabolic vs. circular arc would show which was actually better.
I'm working on a tech demo of line-arc and arc-arc blends now, but I plan to revisit this after that's out of the way.
- skunkworks
- Offline
- Moderator
-
- Posts: 351
- Thank you received: 153
as far as my issue with falling back to parabolic blending.. I had been testing the sim mm-axis.ini in it it has
DEFAULT_ACCELERATION = 508
MAX_ACCELERATION = 1732
I have not researched it - but I thought default was like default velocity - but it uses it as the axis limit.. (and I don't know how it interacts...)
when I added the peak velocity and acc side panel - I notice it was only peaking at 508mm/s^2. (and doing parabolic blends on some of the corners)
I deleted the 2 lines (my other configs don't have them) and it ran with very little fallbacks..
sam
rellenberg wrote: The difference in performance shrinks the closer to 90 deg. you get. Also, as the line segments get shorter, the maximum speed does as well, since we have to hit each segment at least once. The combination of those two effects could mean more fallback.
One thing to try is disabling the fallback entirely, to see if it runs faster or slower. The estimate of parabolic vs. circular arc speed is a guess, so in some case it may fall back even when it would be better not to. It would be really nice to isolate this with a simple case. I have a test file called "long-kink.ngc" that might work for this. Basically, we want a long segment, then a short segment at an angle, then another long one again. Comparing the velocity profiles for parabolic vs. circular arc would show which was actually better.
I'm working on a tech demo of line-arc and arc-arc blends now, but I plan to revisit this after that's out of the way.
- skunkworks
- Offline
- Moderator
-
- Posts: 351
- Thank you received: 153
sam
- skunkworks
- Offline
- Moderator
-
- Posts: 351
- Thank you received: 153
- rellenberg
- Offline
- Junior Member
-
- Posts: 37
- Thank you received: 10
I just pushed a few tweaks that should eliminate some acceleration hiccups. It wasn't handling the tail end of parabolic blends quite right, so there was a subtle stutter. Also, blend radii are a bit larger now to soften the acceleration pulses. When planning a blend arc, it checks what the equivalent-size parabolic blend would be, then allows the arc to be up to that size. Often the equivalent parabolic blend is longer, which means a larger-than-necessary blend radius, and lower accelerations. Of course, everything still obeys assigned tolerances, but hopefully this will be a bit gentler on the machine.