Understanding the Application of Utility Theory in Robotics and Artificial Intelligence: A Survey