Skip to content

Perception: isolate location refinement state per object#15782

Open
BISTU-gzy wants to merge 1 commit intoApolloAuto:masterfrom
BISTU-gzy:codex/location-refinement-fixes
Open

Perception: isolate location refinement state per object#15782
BISTU-gzy wants to merge 1 commit intoApolloAuto:masterfrom
BISTU-gzy:codex/location-refinement-fixes

Conversation

@BISTU-gzy
Copy link
Copy Markdown

Summary

  • rebuild ObjPostProcessorOptions for each detected object so ground-boundary line segments do not leak across objects
  • skip location refinement cleanly when the calibration service cannot provide a valid ground plane
  • add regression tests for both behaviors in camera_location_refinement

Root Cause

LocationRefinerPostprocessor::Process() reused one ObjPostProcessorOptions instance across the object loop and appended to line_segs on every iteration. This made later objects depend on line segments collected from earlier detections.

The same function also continued into the refinement path even when QueryGroundPlaneInCameraFrame() failed, despite the refinement logic requiring a valid ground plane.

Testing

  • added location_refiner_postprocessor_test

Rebuild the location refiner postprocessor options for each object so ground-boundary line segments do not leak across detections. Also skip refinement cleanly when the calibration service cannot provide a valid ground plane, and add regression tests for both behaviors.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 12, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants