Sequential decision making based on emergent emotion for a humanoid robot