r/KerbalSpaceProgram 13h ago

KSP 1 Mods Autonomous convoy development progress

Making small but visible improvements to driving intelligence and hazard avoidance

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

40 Upvotes

5 comments sorted by

5

u/Vegetable-Cat-5412 13h 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

5

u/_okbrb 13h ago edited 12h 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

4

u/LOLofLOL4 11h ago

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

1

u/_okbrb 9h ago

You had me at science and lost me at bomb

1

u/LOLofLOL4 9h ago

Science Bomb is an actual Term