Ontology is used in robotics to help with decision-making, perception, and understanding of the environment.