View Single Post
  #3   Spotlight this post!  
Unread 03-06-2011, 11:50
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: swerve FORWARD kinematics

Quote:
Originally Posted by James Critchley View Post
However, your solution should be limited to debugging activities only...
There was no suggestion to use forward kinematics (FK) in the code that goes on the robot. The FK solution was presented for its mathematical interest and for possible use to check the correctness of inverse kinematic (IK) calculations. For those purposes it is entirely suitable.

Quote:
solving for the motions is a DYNAMICS (Kinematics AND Kinetics) problem
That is true only if the residual RSS of the FK solution is non-negligible. If the RSS is negligible, the FK solution provides an estimated prediction of vehicle motion whose accuracy is no worse than the accuracy of IK calculations of wheel angle and speed required to produce the desired vehicle motion. AFAIK, most FRC teams use IK, not a complex dynamic model, to convert driver commands to wheel speeds and angles for swerve.

Quote:
And with the exception of rare stick-slip frictional paradoxes (not present in tire models) motions are both solvable and UNIQUE.
Two things:

1) It's not clear what you meant by "paradoxes" in this context, or why stick-slip should be "rare" (more about this below).

2) the non-uniqueness statement in the paper was entirely in the context of FK, and in that context is true as it stands. The FK problem (for swerve) involves an overdetermined system of nonlinear equations. There is no unique solution, in general, for this kind of problem; but a least-squares solution can be found and is useful subject to the caveats discussed here.

Quote:
Allowing the tires to slip means that the wheel/ground interface is compliant and requires representation as forces not exact kinematic constraints (pure rolling). Kinematics is then the wrong tool for general motion prediction.
You missed the point I think. If the residual RSS of the FK solution is small, then the solution represents a kinematically correct prediction of the vehicle motion. It's every bit as correct (or incorrect) as using IK to convert driver commands into wheel speed and angle commands. If you want to question whether IK should be used to convert driver commands to wheel speeds and angles, that would be a separate (and interesting) discussion. My guess is that introducing the complexity of dynamics would result in only marginal improvement at great cost in complexity.

Quote:
From a kinematics perspective, the system becomes LOCKED (grinds to a halt) as soon as one of the wheels does not track with the motion of the other three.
True. But as you mentioned (see below) this is not what happens if the FK residual RSS is small. If the RSS is small, the FK result predicts the vehicle motion every bit as accurately (or inaccurately) as IK determines the correct (or incorrect) wheel speeds and angles required to produce the driver-commanded vehicle motion.


Quote:
In that case, the slight compliance in the tires and chassis flexure will make-up for "nearly" perfect outputs.
Exactly.

Quote:
Because you also specify the wheel speeds (instead of torques), inconsistent kinematic variables would instead be visualized as tearing the chassis apart (into 2, 3, or even 4 pieces).
I prefer to look at it this way: If the RSS is large, what that's telling you is that the given wheel speeds and angles are not IK-correct, and that FK cannot reliably predict the vehicle motion.

Quote:
The kinematics problem is very much over constrained and as a least squares solve of the same, it is really only valid in the immediate neighborhood of kinematically consistent states (a measure of "scrubbing" as you say).
Correct.

Quote:
Actual wheel tracking will have much more to do with the normal force under each wheel AND bias will be present for those wheels that are currently in a pure rolling (not skidding) configuration.
As mentioned above, the same comment applies to IK as well as FK.

Quote:
It is entirely possible that this least squares solve will result in nice smooth, fluid, and straight motions if you miss your target angles and speeds...
If the given wheel angles and speeds are not IK-correct, then there will be a large residual RSS in the FK solution which will warn you of that, and you will know that the FK-predicted vehicle motion is not reliable.

Quote:
...where the actual system will instead rock, hop, and hunt for a direction of travel (not to mention being torque limited).
In other words, stick-slip will not be "rare". Lots of luck modeling rocking, hopping, and hunting accurately!




Last edited by Ether : 03-06-2011 at 13:47.