In autonomous vehicle design, a lidar sensor scans the surroundings by emitting light pulses across a specific field of view. The domain of the range-finding function is restricted by the sensor's physical limits: the horizontal scanning angle θ is restricted to [−3π​,3π​] radians, and the radial distance d is restricted to [0.1,150] meters.
To determine how the vehicle should respond to obstacles, software engineers program a piecewise control function A(d) to evaluate safety zones:
Determine the vehicle's response and safety state if an obstacle is detected at a distance of:
d=2Â meters
d=10Â meters
d=80Â meters
Step-by-Step Solution:
For d=2 m, since 0.1≤2<3, we use the first piecewise condition:
A(2)=Full Emergency Braking
For d=10 m, since 3≤10<15, we use the second piecewise condition:
A(10)=Proportional Deceleration
For d=80 m, since 15≤80≤150, we use the third piecewise condition:
A(80)=Maintain Cruise Speed
Meaning of the Answer & Real-Life Application:
Identifying domain constraints and evaluating piecewise functions in real-time allows the vehicle's onboard computer to calculate safe velocity profiles without executing undefined operations or misinterpreting out-of-range sensor noise. For example, if an obstacle is detected outside the sensor's domain (d>150 or d<0.1), the system ignores the signal or triggers a sensor fault handler.