srinivas.siteApplied RoboticsUnit 26

Unit 26 · Semester 2 · about 3 weeks, 20–30 focused hours

Rigid-body dynamics and state-space control

Mission: Predict how one frictional cart responds to a fixed push, explain its limiting speed while position keeps changing, and check a numerical model against the reference. This 100-minute introduction is separate from the full unit. Prerequisite: Unit 25 math bridge.

The interactive version of this unit needs JavaScript. Below are its steps as text.

Steps

1. Push the cart

Press Apply push to apply 2 N from rest.

Why it matters: A net force changes velocity.

2. Change the mass

Press Compare mass to compare the initial acceleration at 2 kg and 4 kg.

Why it matters: At rest the damping force is zero, so acceleration is force divided by mass.

3. Oppose motion

Press Reverse velocity to see drag oppose motion to the left.

Why it matters: The force −bv opposes the current velocity.

4. Keep enough information

Press Compare states to compare two carts at the same position with different velocities.

Why it matters: Position alone does not predict the next position. The state needs both position and velocity.

5. Write both rates

Press Reveal rates to connect velocity to position change and net force to velocity change.

Why it matters: Newton’s second law connects the net horizontal force to acceleration.

6. Map the rows

Press Map rows to show the same two rates as a matrix equation.

Why it matters: State-space notation collects the same equations into rows. Its entries have different units because the state has mixed units.

7. Follow the step

Press Run step to follow the fixed push for 2 s.

Why it matters: The damping force approaches the applied force. A limiting velocity does not imply a limiting position.

8. Check a numerical model

Press Compare coarse to compare Euler steps of 0.25 s with the exact reference at 2 s.

Why it matters: Forward Euler uses the old position and old velocity for both updates. A numerical comparison is not physical validation.

9. Refine the calculation

Press Refine step to compare 0.125 s and 0.25 s at 2 s.

Why it matters: A smaller step can reduce numerical error in this case. It is not a universal guarantee.

10. Find a sign error

Press Flip sign to see +bv accelerate a moving cart even with no push.

Why it matters: The positive sign reinforces velocity. Passive damping uses the negative sign.

11. Test a local approximation

Press Compare drag to compare linear drag with an extra quadratic drag term.

Why it matters: The baseline mass-damper model is already linear. Linearizing the alternative quadratic-drag model around rest is a local approximation, not a measurement.

12. Retain the evidence

Press Show handoff to reveal the evidence needed for your own simulation.

Why it matters: Record your own parameters, derivation, code version, raw outputs and limitations. The worked example is not your experiment.

Go deeper

State-space and units

ẋ=v; v̇=(u−bv)/m. With z=[x,v], ż=Az+Bu, A=[[0,1],[0,−b/m]], B=[[0],[1/m]]. Row one has m/s; row two has m/s². Matrix entries have mixed units, not one uniform unit.

For b>0, τ=m/b and vss=u/b. Euler velocity pole is 1−hb/m; 0<h<2m/b gives asymptotically stable velocity numerics. At h=2m/b the pole is −1; b=0 requires separate treatment. Position has an integrator and is not asymptotically stable.

The baseline is linear with constant m and b on a flat line; no saturation, deadzone or wheel slip is represented. Adding −cv|v| gives a specified nonlinear alternative; linearization around v*=0, u*=0 retains slope b. Neither simulation is a calibrated physical cart. This is an open-loop step response, not a designed feedback controller.

Read and watch

Stanford CS223A archived lectures 11–15: dynamics 11–12, control 13–15; review matrix algebra and mechanics. The archive supports further study, not validation of this simulation.