A six-wheel rover plans a route across Martian terrain, driving only where its wheels can actually grip. Click the ground to send it somewhere; drag to orbit the camera.
Gravity and weight. Mars g = 3.711 m/s2, so the 899 kg rover weighs W = 3336 N (it would be 8820 N on Earth).
Traction (Bekker / Janosi-Hanamoto). Maximum thrust is H = cA + W cosθ tanφ (cohesion c, contact area A, friction angle φ). Thrust available at wheel slip s is DP(s) = H [1 - (K/sL)(1 - e-sL/K)] - Rc with shear deformation modulus K, contact length L, and rolling resistance Rc. To hold a slope the rover needs W sinθ; the planner solves DP(s) = W sinθ for the slip s (bisection) and refuses slopes with no solution below 100% slip. Loose sand has low φ and high Rc, so its limit is far below that of bedrock.
Energy. Drive power = W(sinθ + Rc cosθ) v / η plus 90 W base load (heaters and electronics); a 110 W radioisotope generator charges a 1000 Wh battery. The rover rests when the battery drops below 15%.
Route planning. A* on a 2.5 m grid with step cost = distance x (1 + 4 (slope/limit)2); nodes steeper than the limit or holding rocks are forbidden.
Honest simplifications. One lumped soil model, constant slip per step, no sinkage dynamics, no suspension articulation physics (the body just follows the ground), terrain is procedural noise, not real Mars data.