dual-axis rotary 3d printer code anywhere? July 28, 2015 07:31AM |
Registered: 9 years ago Posts: 1,035 |
Re: dual-axis rotary 3d printer code anywhere? July 29, 2015 05:06PM |
Registered: 10 years ago Posts: 91 |
import math class DoublePolarKinematics(object): def __init__(self, R): self._R = float(R) def inverse_kinematics(self, x, y): x = float(x) y = float(y) r = math.sqrt(x*x + y*y) fi = math.atan2(y, x) alpha = 2.0 * math.asin(r / (2.0 * self._R)) beta = fi + math.pi/2.0 + alpha/2.0 return (alpha, beta) def forward_kinematics(self, alpha, beta): alpha = float(alpha) beta = float(beta) fi = beta - math.pi/2.0 - alpha/2.0 r = 2.0*self._R * math.sin(alpha/2.0) x = r * math.cos(fi) y = r * math.sin(fi) return (x, y) k = DoublePolarKinematics(84.0) x, y = 38.0, 23.0 print x, y alpha, beta = k.inverse_kinematics(x, y) print alpha, beta x1, y1 = k.forward_kinematics(alpha, beta) print x1, y1
Re: dual-axis rotary 3d printer code anywhere? July 29, 2015 07:07PM |
Registered: 9 years ago Posts: 1,035 |
Re: dual-axis rotary 3d printer code anywhere? July 29, 2015 07:26PM |
Registered: 10 years ago Posts: 91 |
Re: dual-axis rotary 3d printer code anywhere? July 29, 2015 09:02PM |
Registered: 9 years ago Posts: 1,035 |
Re: dual-axis rotary 3d printer code anywhere? July 30, 2015 06:42AM |
Registered: 13 years ago Posts: 7,616 |
Quote
realthor
for example there is teacup-scara that is supposed to support Morgan printers but in reality never worked.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: dual-axis rotary 3d printer code anywhere? July 30, 2015 10:50AM |
Registered: 9 years ago Posts: 1,035 |
Re: dual-axis rotary 3d printer code anywhere? September 03, 2015 08:35PM |
Registered: 14 years ago Posts: 43 |
Re: dual-axis rotary 3d printer code anywhere? May 13, 2016 12:16AM |
Registered: 7 years ago Posts: 2 |
Quote
ambrop7
By "modular" I meant in the mathematical sense (modular arithmetic). But sure having a modular firmware helps
If you need I can try to adapt my APrinter firmware to support this configuration. My firmware allows easily adding new kinds of coordinate transforms, but just for this particular one I'd need to also make a more "core" change to support the wrap-around (modular) geometry of the bed-rotation axis.
Re: dual-axis rotary 3d printer code anywhere? May 15, 2016 04:27AM |
Registered: 10 years ago Posts: 91 |
Re: dual-axis rotary 3d printer code anywhere? May 17, 2016 02:40AM |
Registered: 7 years ago Posts: 2 |