We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0281cc commit aed090eCopy full SHA for aed090e
mobotpy/models.py
@@ -529,8 +529,12 @@ def ackermann(self, x):
529
ackermann_angles : ndarray of length 2
530
The left and right wheel angles (phi_L, phi_R).
531
"""
532
- phi_L = np.arctan(2 * self.ell_W * np.tan(x[3]) / (2 * self.ell_W - self.ell_T * np.tan(x[3])))
533
- phi_R = np.arctan(2 * self.ell_W * np.tan(x[3]) / (2 * self.ell_W + self.ell_T * np.tan(x[3])))
+ phi_L = np.arctan(
+ 2 * self.ell_W * np.tan(x[3]) / (2 * self.ell_W - self.ell_T * np.tan(x[3]))
534
+ )
535
+ phi_R = np.arctan(
536
+ 2 * self.ell_W * np.tan(x[3]) / (2 * self.ell_W + self.ell_T * np.tan(x[3]))
537
538
ackermann_angles = np.array([phi_L, phi_R])
539
return ackermann_angles
540
0 commit comments