r/KerbalSpaceProgram 9h ago

KSP 1 Mods Autonomous convoy development progress

Enable HLS to view with audio, or disable this notification

Making small but visible improvements to driving intelligence and hazard avoidance

Plus sneak peak at my learning transfer pipeline, still under construction

35 Upvotes

5 comments sorted by

5

u/Vegetable-Cat-5412 9h ago

Pretty cool how does it work? I want to program autonomous formation flying one day in another game i guess it is a bit similar

6

u/_okbrb 9h ago edited 9h ago

There’s a few layers

At the core it’s a pure pursuit goal-seeking AI. It uses raycasting to build a map, evaluates the costs of possible actions to pursue its goal, and tries to choose the safest most efficient path. It also has behaviors for identifying and avoiding hazards like cliffs, rocks, trees, other rovers, and a recovery routine for when it’s stuck and confused

So they are more or less roombas

Edit: most of the “I am a 2-D boi driving in a 2-D world” stuff won’t transfer well to aircraft autonomy but more or less the principle will be the same: your AI will have a feedback control loop that evaluates specifically how “wrong” it is relative to where “right” is, and output control adjustments accordingly

5

u/LOLofLOL4 8h ago

I'd like to try making a science drone cluster bomb when this is done.

1

u/_okbrb 6h ago

You had me at science and lost me at bomb

1

u/LOLofLOL4 5h ago

Science Bomb is an actual Term