feat(perception): add persistent lidar motion evidence
This commit is contained in:
@@ -267,6 +267,30 @@ def test_recorded_cuboid_presentation_holds_one_failed_association_then_expires(
|
||||
assert expired is None
|
||||
|
||||
|
||||
def test_recorded_cuboid_presentation_omits_unavailable_distance() -> None:
|
||||
state = _CuboidPresentationState(hold_ns=500_000_000)
|
||||
accepted = {
|
||||
"association_group": "person",
|
||||
"clustered_points": 3,
|
||||
"cuboid_status": "accepted-world-track-provisional-e24-v1",
|
||||
"distance_smoothed_m": None,
|
||||
"label": "person",
|
||||
"track_id": 9,
|
||||
}
|
||||
|
||||
presented = state.update(
|
||||
1_000_000_000,
|
||||
[accepted],
|
||||
np.asarray([[1.0, 2.0, 3.0]], dtype=np.float32),
|
||||
np.asarray([[0.35, 0.35, 0.9]], dtype=np.float32),
|
||||
np.asarray([[0.0, 0.0, 0.0, 1.0]], dtype=np.float32),
|
||||
np.asarray([[118, 204, 132, 88]], dtype=np.uint8),
|
||||
)
|
||||
|
||||
assert presented is not None
|
||||
assert presented[4] == ["person #9 person · 3 pts"]
|
||||
|
||||
|
||||
def test_e13_completes_a_visible_car_face_away_from_the_sensor() -> None:
|
||||
fusion, runner = _worker_modules()
|
||||
profile, _digest = runner.read_profile(
|
||||
|
||||
Reference in New Issue
Block a user