frk2 / opencaret

An open-source/open-data L3 highway autopilot system for modern cars. Initially being perfected on the Kia Soul EV
MIT License
57 stars 22 forks source link

Jose/radar fixes #24

Closed J-Rojas closed 5 years ago

J-Rojas commented 5 years ago

Radar tracks:

1) valid flag is passed through from radar sensor untouched 2) valid_count is increased when valid flag is true 3) valid_count is decreased when valid flag is false or when radar track is missing from the current set 4) radar tracks/accels are published in order by track id 5) radar tracks that are missing but have a valid_count > 0 are published (with valid=False and an updated counter) 6) all radar tracks in a set should have the same counter value 7) radar tracks are not filtered by valid flag or valid_count; if the track is received, it is published so downstream node can interpret/process. 8) radar_viz shows valid_count using 'alpha' value to indicate strength. 9) radar_viz now shows all tracks with valid_count > 0 in red 10) radar_viz shows tracks with valid_count == 0 in gray.

Tested with a static can dump using radar_viz. Needs more testing with a dynamic scene.