Move Trajectory planner from real time to non-real time

More
20 Jul 2022 06:37 #247822 by troy
hi guys,
I wonder if it is possible for us to move the trajectory planner from real time to non real time.
1.TP is  a time-consuming part,It should not be too complex, otherwise it will affect the stability of real-time cycle;
2.we can not perform complex path smoothing algorithm,such as B-spline Compression smoothing (siemens fanuc),with current structure;

If we move TP to non real time module, we can do more complex smoothing calculation.

Has anyone tried this before?

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

More
20 Jul 2022 12:06 #247836 by troy
I'm going to try this job. Do you have any suggestions?
The following user(s) said Thank You: silopolis

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

More
20 Jul 2022 12:13 #247838 by troy
Attachments:

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

More
20 Jul 2022 12:46 #247839 by andypugh
Have you checked to see if machinekit have already done this?
The following user(s) said Thank You: troy

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

More
20 Jul 2022 13:04 #247843 by cmorley
How will you handle such things as override and spindle sync?
The following user(s) said Thank You: troy

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

More
20 Jul 2022 13:10 #247846 by skunkworks
The following user(s) said Thank You: troy

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

More
20 Jul 2022 14:15 #247848 by PCW
I think the LinuxCNC derivative "OpenCN" does something similar
(it seems to trade off real-time planning to simplify things like jerk control)
The following user(s) said Thank You: troy

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

More
21 Jul 2022 05:57 #247909 by troy
Yes,I've checked machinekit.
Machinekit uses almost the same trajectory planning method as linuxcnc.
Machinekit calculates the original trajectory equation \ create blend-arc path between TCs \ optimize TCs finalvel in tpAddLine() /tpAddCircle().
I know that because I developed a branch from machinekit. Perhaps I will introduce my previous work and research later.

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

More
21 Jul 2022 05:59 #247910 by troy

Have you checked to see if machinekit have already done this?

Yes,I've checked machinekit.   
Machinekit uses almost the same trajectory planning method as linuxcnc.
Machinekit calculates the original trajectory equation \ create blend-arc path between TCs \ optimize TCs finalvel in tpAddLine() /tpAddCircle().
I know that because I developed a branch from machinekit.  Perhaps  I will introduce my previous work and research later.

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

More
21 Jul 2022 06:28 #247911 by troy

I think the LinuxCNC derivative "OpenCN" does something similar
(it seems to trade off real-time planning to simplify things like jerk control)

Thanks PCW !  Very useful tips!
I read "OpenCN" project doc and their youtube channel,  They did put the trajectory calculation and speed optimization modules in non real time module. They use matlab to program the parts of trajectory planning and speed optimization, and then use the tools provided by MATLAB to convert Matlab code into C code. Very brilliant.
 
 
Muti-cpu framework:cpu#0  cpu#2,3  - non real time,   cpu#1 real time.

However, after knowing the G code they can support (the following fig: a lot of g-code are not supported), I feel that this project(openCN) is more inclined to academic experiments than engineering applications. 



Although this project seems unable to be used directly, I will continue to study it,maybe it can bring some new inspiration !  Thanks a lot anyway!
Attachments:

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

Time to create page: 0.156 seconds
Powered by Kunena Forum