A classical driving stack with timed trajectories, explicit control authority, and inspectable failures. Three October driving captures show the loop in action—and expose an unresolved speed-tracking regression.
A feasible path is only useful if perception, planning, control, and actuation agree on its meaning.
I built the local perception, Frenet planning, MPC, interface, and evaluation layers around CARLA and ROS 2. The stack connects obstacle tracking, physically checked trajectories, a Pure Pursuit comparison controller, and one multiplexer that owns the final Ackermann command.
Current limitation / Speed tracking remains open
The three October captures peak at 4.63–5.55 m/s against a 3.0 m/s target. Crossing and curve runs reach their endpoints and stop, but their completion checks do not constrain overspeed. The launch transient also triggers a stop after the crossing planner loses feasibility.
October 25, 2026 · source audit, CPU checks & recorded-data replay
02 / Three measured driving captures
Watch the vehicle. Read the state.
The chase and overhead cameras were recorded during real simulator runs on October 22. Overlays add the live plan, vehicle footprints, and recorded diagnostics. Each scenario uses the Frenet planner, nonlinear MPC, and CARLA’s known obstacle states.
Crossing / stop, wait, resume
The car approaches a scripted pedestrian, peaks at 5.55 m/s, and enters a stop when no valid plan remains. It waits, resumes after the pedestrian clears, and finishes at rest with the rear axle 4.25 m before the route endpoint. Minimum measured footprint clearance is 6.57 m.
02 / Crossing · chase cameraSilent · 47 s clip · normal playback speedWatch the overhead view and read the overlays
The grey line is the route; blue marks the current plan, with a dot every 0.5 s. White outlines the ego vehicle and orange marks the pedestrian’s true footprint. The status strip shows measured speed, planned speed, controller state, MPC solve time, and feasible candidates. The complete clip retains the launch transient and waiting interval.
Same run / Overhead cameraRecorded cameras and telemetry03 / The measurement window is 44.45 s; the camera starts earlier
Empty curve / complete the route
The car follows the bend and finishes at rest, 4.26 m from the endpoint, after 36.50 simulation seconds. Its startup peak is 4.63 m/s. The scene has no dynamic obstacle.
04 / Empty curve · chase cameraSilent · 39 s clip · normal playback speed
Blocked lane / remain stopped
A stationary obstacle keeps the lane blocked. The car stops with 5.89 m minimum footprint clearance and remains about 45 m from the endpoint when the 35 s measurement window ends. This is a non-completing run; its startup still peaks at 4.66 m/s.
05 / Blocked lane · overhead cameraSilent · 38 s clip · normal playback speed
What these captures establish
All three record zero collisions, lane invasions, and observed MPC deadline misses. They are illustrative measurements that bypass the full retained-evidence harness. Ground-truth obstacles isolate planning and control; these clips do not establish LiDAR-driven completion or broader driving reliability.
03 / An unresolved regression
A completed route can hide a speed error.
The terminal stopping correction improved the final stop, while the recorded MPC speed peaks grew.
Ten retained MPC runs before the stopping changes peak at 3.16–3.31 m/s. Ten later retained runs peak at 4.13–5.38 m/s; the three October captures reach 4.63–5.55 m/s. This chronology spans several scenes and revisions, so it identifies a regression without isolating one causal change.
06 / Full-resolution measured peaks · MPC only
Follow the launch to the actuator
In the crossing capture, the vehicle passes 3.0 m/s at about 1.85 s and reaches 5.55 m/s at 3.60 s. Across the 36 samples from 1.80 to 3.55 s, 34 carry an explicit negative acceleration request. Nearby CARLA observations still show 20–74% throttle and zero brake.
07 / Time-aligned, non-atomic observations · first 5.3 s of the crossing
Observed consequence
Feasibility changes.
The planner first reports no valid plan at 3.55 s; the controller enters its stop response at 3.60 s. This first planner interruption lasts about 1.2 s. The car’s successful yield therefore includes a response to lost planning feasibility. The overspeed changes the stopping distance and the set of feasible candidates.
Hypothesis / Unconfirmed
Deceleration may be too weak.
The explicit-deceleration branch may ask the adapter for too little deceleration to overcome the launch response. An earlier diagnosis blamed the forward-mode accumulator limits. That claim was withdrawn because overspeed predates those limits and the largest retained peaks occur before them.
Evaluation gap
Completion misses overspeed.
The acceptance checks cover completion, final stop, collisions, boundaries, and solver deadlines. They do not fail on peak speed or time above the target. A passed stopping check therefore leaves this behavior untested.
Next experiment
Measure the actuator response.
The open investigation calls for bounded before-and-after actuation tests and an explicit speed-tracking gate. Current source contains the diagnosis and evidence; it does not contain a verified overspeed fix.
04 / From measurements to motion
Keep geometry, time, and authority.
LiDAR returns become clusters and timestamped detections. Measurement-time transforms move them into the map frame before Kalman tracking estimates inertial velocity. Frenet planning evaluates candidate motion along the reference road.
The implemented pipelineCARLA / ROS 2 · 50 ms simulation step
Perception pathExercised by the separate offline replay
The LiDAR and oracle paths are selectable alternatives. LiDAR-based closed-loop completion remains open.
The planner checks vehicle footprint, road bounds, curvature, steering, acceleration, and stopping reserve. Obstacle checks bound motion between samples under declared geometry and uncertainty assumptions. Named rejection reasons make an infeasible plan inspectable.
One atomic reference
A path needs a time law.
Position, speed, and acceleration travel in one generation-stamped trajectory. The controller samples at the current plan age plus each prediction step, so a delayed plan retains its original timing.
Authority expires
Revoke a failed plan.
Invalid input, no feasible candidate, stale data, solver failure, and deadline misses clear control authority and issue a stop. Recovery requires a newer valid plan.
Measured geometry
Use the rear axle.
Vehicle identification established a 1.386 m actor-origin offset and 3.391 m effective low-angle wheelbase. MPC also models the nominal speed-servo response.
Two clocks
Separate age from compute.
State and plan age use simulation time. Solver duration uses a monotonic wall clock. A solve taking 50 ms or longer loses authority, including while simulation time is paused.
The command mux bounds source age and time since receipt. An independent emergency supervisor remains outside the validated scope.
05 / Earlier stopping & recovery work
“Stop” must reach the vehicle.
Both MPC and Pure Pursuit originally failed the same terminal stopping test. Diagnostics showed zero brake and about 12% mean throttle during deceleration. A tiny positive speed floor selected passive speed-servo deceleration; a later publication issue left CARLA holding an older partial-brake command.
The correction made braking explicit, restored full-stop publication, reset stale PID history at low-speed transitions, and tapered the terminal reference using the identified servo response. Intermediate failures were retained.
Historical stopping matrix4 / 4
One fixed route · two controllers · two repeats
Final speed0 m/s
In all four retained final stopping runs
Endpoint overshoot0 m
Measured front footprint · same four runs
These September 26 results establish terminal stopping under their original checks. The two MPC runs still peak at 4.17 and 4.15 m/s. A passing final stop does not resolve the speed regression.
Inspect the retained stopping traces and near-rest diagnosisHistorical measurements / September 26, 2026
The rear axle targets 4.3 m before the route endpoint to preserve the footprint; the completion limit is 4.5 m. All four runs record zero collisions and lane invasions. Two repeats on one scene do not establish a reliability rate or controller superiority.
A separate near-rest investigation found that dividing heading change by tiny travel amplified noise into roughly ±0.884 per metre of curvature. The revised estimator waits for 0.05 m of integrated travel within a 0.5 s window. A targeted synthetic replay, using the measured residual magnitude, changes 59 rejected planning attempts out of 60 to zero. It demonstrates the noise-amplification defect; missing yaw and candidate traces prevent attributing the earlier intermittent stall to that defect alone.
Retained straight and gentle-curve fault-recovery runs also pass their profiles. Their maximum injected-fault response is 0.200 s to issue a stop command; physical stopping takes additional time.
06 / A separate sensor-pipeline check
From LiDAR returns to a moving track.
The current detection and tracking cores were replayed offline over 100 retained CARLA LiDAR sweeps. Voxel filtering, ground removal, clustering, map transforms, and Kalman tracking recover a vehicle moving across the scene. Ground truth is used for comparison and rendering; it is not fed into detection or tracking.
08 / Recorded LiDAR · current perception codeSilent · 100 sweeps · 5 s clip
All 100 sweeps produce valid output. The same vehicle track stays within 0.95 m of the truth centre throughout the replay and ends at 2.68 m/s against 3.0 m/s truth. The first sweep initializes velocity at zero; the remaining 99 distinguish the moving vehicle from 41 stationary tracks.
Replay accuracy has a boundary
A fresh October 25 replay reproduces the supplied JSON exactly. This checks the recorded sensor pipeline. Centre agreement does not establish full obstacle-footprint coverage: hidden extents and LiDAR-driven closed-loop completion remain open.
07 / Evidence & reproducibility
Preserve the run. Check the claim.
Fresh October 25 Docker checks pass the complete CPU workflow: 377 pure tests and 574 ROS/launch tests, with one intentional expected failure in each overlapping suite and no unexpected failures, errors, or skips. An installed MPC/mux smoke check verifies one final command owner, exact-zero startup commands, and clean exits.
The update recomputes all 23 plotted MPC peaks from raw samples, checks the three capture endpoints against their recorded results, and reproduces the LiDAR output. The driving measurements remain historical; no new CARLA driving trial was run for this update.
Current source: 9ccec38be508, checked October 25, 2026. October 22 camera capture revision: 3952803; runtime code and configuration are unchanged between these revisions. Earlier retained driving evidence predates the captures. The overspeed issue remains open.
Credits & scope
Individual project: Jerry Chang. CARLA supplies simulation and scene assets (CARLA-specific assets: CC-BY); the CARLA ROS bridge and ROS 2 supply transport and simulator integration. Optimization uses CasADi and IPOPT. Charts use Matplotlib and recorded project telemetry. These selected low-speed scenes leave speed-tracking correction, broader traffic, LiDAR footprint validation, and an independent emergency supervisor as future work.