Decision making and learning for hybrid dynamical agents