scurve trajectory planner

  • Grotius
  • Grotius's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
17 Jan 2025 12:25 - 17 Jan 2025 12:27 #319176 by Grotius
scurve trajectory planner was created by Grotius
Dear linuxcnc users,

There is developped a new trajectory planner with help of several forum members over the past weeks.

- Credits : Joco, Lcevette, Turboss, Linuxcnc8, connor, Grotius, and more.

The new planner is called tpmod_scurve.so

This new planner can be installed alongside the original trajectory planner tpmod.so
by specifying the used planner in the config .ini file.

Existing linuxcnc (RIP) installations can be patched using a small script that replaces a few files.
There is no .deb package patch available.

This codebase uses miminal source code to achieve an S-curve motion profile. No heavy dependencies are required.
Note there are several HAL pins and parameters that must be set at runtime to tune a specific machine to its inertia limits.

Important: Alway's exersise caution using new software, especially on high-speed machining operations.

repository
readme
licence  
disclaimer

Automated installation example:
git clone https://codeberg.org/skynet/linuxcnc_scurve_compact
cd linuxcnc_scurve_compact/cmake
./installer
Last edit: 17 Jan 2025 12:27 by Grotius.
The following user(s) said Thank You: tommylight, tivoi, pommen, Lcvette, DHeineck, spumco, RDA, tiagounderground, Darium, anton610 and 3 other people also said thanks.

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

More
17 Jan 2025 14:42 - 17 Jan 2025 15:02 #319183 by automata
Replied by automata on topic scurve trajectory planner
Grotius,
A big thank you for working on this hard problem.
My offer for sending you EtherCAT servo and stepper drives still stands. Let me know. I have 400W and 750W 3000rpm chinese servos and 4.5A chinese steppers with EtherCAT available which I can send out to you.

The repository downloaded and compiled ok using the "installer" script.
S curve tpmod was also running properly.
But it looked like it was falling back to a single block lookahead.
Is lookahead implemented in this new planner? If yes, how can I enable it? What are the settings that I can play with?
I tried with G64 Pxx Qyy but that did not seem to have too much effect.


I tried to work with the tpmod hal params without much change to the output. I was trying the G3 to G3 blends in the standard LINUXCNC startup gcode.

Once again a big thank you for working on this problem.
-automata
Last edit: 17 Jan 2025 15:02 by automata. Reason: I found some parameters in the hal params which could be tweaked
The following user(s) said Thank You: tommylight, Lcvette, Grotius

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

  • Grotius
  • Grotius's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
17 Jan 2025 16:44 #319190 by Grotius
Replied by Grotius on topic scurve trajectory planner
Hi Automata,

I can use the servo's if they are powered 230volts. Then they can be used to finish and test ethercat auto installer. And runtime tests.
My mail : This email address is being protected from spambots. You need JavaScript enabled to view it.

For the planner. If you program a square 100x100mm and use G64 P5
It should show blended corners at runtime.
Works also for G3 to G3.

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

More
18 Jan 2025 15:52 #319294 by Lcvette
Replied by Lcvette on topic scurve trajectory planner
Awesome Grotius, I plan on installing and testing on machine this week! Super excited to do some comparisons between previous known rough motion programs and show the difference. I will get some good video footage to share!
The following user(s) said Thank You: Grotius, anton610

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

  • Grotius
  • Grotius's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
19 Jan 2025 00:48 #319326 by Grotius
Replied by Grotius on topic scurve trajectory planner
@Lcvette,

Looking forward to see your video.


 

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

More
20 Jan 2025 12:41 #319455 by dm17ry
Replied by dm17ry on topic scurve trajectory planner
spotted a typo - misspelled "lenght" instead of "length" in multiple places..
The following user(s) said Thank You: Grotius

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

More
20 Jan 2025 21:11 #319487 by juliankoenig87
Replied by juliankoenig87 on topic scurve trajectory planner
Wow! What can I say.
Today I "install" it. Thanks to your good work it was a piece of cake (and I am a linux noob btw.).

Tested the given sim machine and everything worked out well. Cant wait to test it on real machines.

Can we just hold on a minute and realise what Grotius did! What an amazing, not to say limit breaking, work he did. Well, well done Grotius!

Thank you for your work for the community.
The following user(s) said Thank You: tommylight, pommen, Grotius, Beef

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

More
20 Jan 2025 21:14 #319488 by juliankoenig87
Replied by juliankoenig87 on topic scurve trajectory planner
Ohhhh sorry! I am just overwhelmed.

I want to thank all you other guys who helped with this also! Well done. Great community!
The following user(s) said Thank You: Grotius

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

More
20 Jan 2025 21:17 #319489 by tommylight
Replied by tommylight on topic scurve trajectory planner


Can we just hold on a minute and realise what Grotius did! What an amazing, not to say limit breaking, work he did. Well, well done Grotius!

At the risk of repeating myself:
Grotius is like a heat seeking missile, he locks on to something and does not stop! :)
Thank you Grotius.
The following user(s) said Thank You: Grotius, Beef

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

  • Grotius
  • Grotius's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
20 Jan 2025 21:30 #319491 by Grotius
Replied by Grotius on topic scurve trajectory planner
Hi Guy's,

@Tommy @juliankoenig87
Thank you all for kind words.

I think the scurve planner also works on plasmac now, As Joco solved this.

I am very curious to the video off Lcvette. He has a nice machine to test it.

@dm17ry, Fixed the typo, thanks for reporting.
The following user(s) said Thank You: tommylight, Beef

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

Time to create page: 0.082 seconds
Powered by Kunena Forum