Although the existing code for either approach currently requires plugging in existing data, their creators ultimately want more flexible code that determines qualities on the spot and reacts accordingly.
ENGADGET: MIT algorithms teach robot arms to think outside of the box (video)