In robotics, an abstraction gives higher-level code a meaningful interface while hiding raw sensor and actuator details. Instead of interpreting a switch state or voltage throughout movement logic, code can ask whether a collision occurred or whether a computer is active. section 3.2.1
From raw brightness to robot meaning
get_brightness() converts an analog voltage into candela, while is_computer_active() compares that value with an activity threshold. Code elsewhere uses the meaningful condition instead of sensor-specific details.























