Sensor suite (LiDAR, radar, camera)
📖 Scenario: You are working on an electric vehicle (EV) project that uses a sensor suite to detect obstacles and navigate safely. The sensor suite includes LiDAR, radar, and camera sensors. Each sensor has specific properties like range, resolution, and type.
🎯 Goal: Build a simple data structure to represent the sensor suite, configure a threshold for detection range, filter sensors that meet the threshold, and finalize the sensor list for the EV system.
📋 What You'll Learn
Create a dictionary named
sensor_suite with three sensors: LiDAR, Radar, and Camera.Each sensor entry must be a dictionary with keys:
type, range_meters, and resolution.Add a variable
min_range to set the minimum detection range threshold.Use a dictionary comprehension to create a new dictionary
active_sensors with sensors having range_meters greater than or equal to min_range.Add a final key
status with value "active" to each sensor in active_sensors.💡 Why This Matters
🌍 Real World
Electric vehicles use sensor suites like LiDAR, radar, and cameras to detect obstacles and navigate safely.
💼 Career
Understanding how to organize and filter sensor data is important for roles in automotive engineering, robotics, and autonomous systems.
Progress0 / 4 steps