Complex self-driving behaviors emerging from affordance competition in layered control architectures. (June 2023)