Move Trajectory planner from real time to non-real time
- troy
 - Offline
 - Junior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 20
 - Thank you received: 4
 
			
	
						20 Jul 2022 06:37				#247822
		by troy
	
	
		
			
	
			
			 		
													
	
				Move Trajectory planner from real time to non-real time was created 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?
					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.
- troy
 - Offline
 - Junior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 20
 - Thank you received: 4
 
			
	
						20 Jul 2022 12:06				#247836
		by troy
	
	
		
			
	
	
			 		
													
	
				Replied by troy on topic Move Trajectory planner from real time to non-real time			
			
				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.
- troy
 - Offline
 - Junior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 20
 - Thank you received: 4
 
			
	
						20 Jul 2022 12:13				#247838
		by troy
	
	
		
			
	
	
		
			
			 		
													
	
				Replied by troy on topic Move Trajectory planner from real time to non-real time			
			
					Attachments:
Please Log in or Create an account to join the conversation.
- andypugh
 - 
				
											 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 19678
 - Thank you received: 4559
 
			
	
						20 Jul 2022 12:46				#247839
		by andypugh
	
	
		
			
	
	
			 		
													
	
				Replied by andypugh on topic Move Trajectory planner from real time to non-real time			
			
				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.
- cmorley
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 7230
 - Thank you received: 2106
 
			
	
						20 Jul 2022 13:04				#247843
		by cmorley
	
	
		
			
	
	
			 		
													
	
				Replied by cmorley on topic Move Trajectory planner from real time to non-real time			
			
				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.
- skunkworks
 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 348
 - Thank you received: 151
 
			
	
						20 Jul 2022 13:10				#247846
		by skunkworks
	
	
		
			
	
	
			 		
													
	
				Replied by skunkworks on topic Move Trajectory planner from real time to non-real time			
			
				and eoffsets..			
					
		The following user(s) said Thank You: troy 	
			Please Log in or Create an account to join the conversation.
- PCW
 - 
				
											 - Offline
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 17380
 - Thank you received: 5068
 
			
	
						20 Jul 2022 14:15				#247848
		by PCW
	
	
		
			
	
	
			 		
													
	
				Replied by PCW on topic Move Trajectory planner from real time to non-real time			
			
				I think the LinuxCNC derivative "OpenCN" does something similar
(it seems to trade off real-time planning to simplify things like jerk control)
					(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.
- troy
 - Offline
 - Junior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 20
 - Thank you received: 4
 
			
	
						21 Jul 2022 05:57				#247909
		by troy
	
	
		
			
	
			
			 		
													
	
				Replied by troy on topic Move Trajectory planner from real time to non-real time			
			
				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.
					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.
- troy
 - Offline
 - Junior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 20
 - Thank you received: 4
 
			
	
						21 Jul 2022 05:59				#247910
		by troy
	
	
		
			
				
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.
					
	
			
			 		
													
	
				Replied by troy on topic Move Trajectory planner from real time to non-real time			
			Yes,I've checked machinekit.Have you checked to see if machinekit have already done this?
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.
- troy
 - Offline
 - Junior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 20
 - Thank you received: 4
 
			
	
						21 Jul 2022 06:28				#247911
		by troy
	
	
		
			
				
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!
					
	
	
		
			
			 		
													
	
				Replied by troy on topic Move Trajectory planner from real time to non-real time			
			Thanks PCW ! Very useful tips!I think the LinuxCNC derivative "OpenCN" does something similar
(it seems to trade off real-time planning to simplify things like jerk control)
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.535 seconds