|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: calculating position using follower wheels
Great work, Jacob and Ryan. Reps to you both. Ryan: what CAS did you use for that? The syntax you used was rejected by Maxima, Octave, and SciLab. (I got it to work in Maxima by changing the syntax a bit) Jacob: You got the right answer, but didn't show your work. How did you solve it? This has a potential practical application for FRC. If you put 3 omni follower wheels -- in the the correct configuration -- on a robot, you can get FWD, STR, and RCW information from them. Then you can use something like the attached C code to get the position and orientation of the robot. Last edited by Ether : 05-10-2013 at 14:22. |
|
#2
|
|||
|
|||
|
Re: calculating position using follower wheels
I used Microsoft mathematics, which only allows radians in calculus functions:
X: integral((5+1t)cos((90-15)(pi/180)-120pi/180t)+3sin((90-15)(pi/180)-120pi/180t), t, 0, 3) Y: integral((5+1t)sin((90-15)(pi/180)-120pi/180t)+3cos((90-15)(pi/180)-120pi/180t), t, 0, 3) |
|
#3
|
||||
|
||||
|
Re: calculating position using follower wheels
Question 4: In the code block highlighted in blue at the bottom of post 11 the following code appears for calculating position and heading: Code:
Q+=dR/2.0; X+=dF*sin(Q)+dS*cos(Q); Y+=dF*cos(Q)-dS*sin(Q); Q+=dR/2.0; Code:
Q+=dR; X+=dF*sin(Q)+dS*cos(Q); Y+=dF*cos(Q)-dS*sin(Q); |
|
#4
|
|||
|
|||
|
Re: calculating position using follower wheels
Spoiler for Justification:
It is not the best proof, but it explains the general reasoning. |
|
#5
|
||||
|
||||
|
Re: calculating position using follower wheels
Quote:
See attachment for additional explanation using geometry and a bit of calculus. |
|
#6
|
||||
|
||||
|
Re: calculating position using follower wheels
Just for fun. Last edited by Ether : 07-10-2013 at 17:20. Reason: added plot with sensor error |
|
#7
|
||||
|
||||
|
Re: calculating position using follower wheels
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|