fix: vectorize LineSegments3D encoding and decoding - #3956
Conversation
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #3956 +/- ##
==========================================
+ Coverage 77.80% 77.82% +0.02%
==========================================
Files 1392 1393 +1
Lines 131250 131277 +27
Branches 11390 11388 -2
==========================================
+ Hits 102115 102171 +56
+ Misses 25887 25857 -30
- Partials 3248 3249 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Greptile SummaryThe vectorized line-segment visualization accepts a weight array whose length differs from the number of segments. That can either crash Rerun conversion or hand it incomplete color metadata. Confidence Score: 4/5Safe to merge with a non-blocking follow-up to reject malformed segment-weight inputs. One confirmed non-blocking input-validation issue remains. Direct execution reproduced both the empty-weight crash and inconsistent Rerun metadata for a short weight array. Files Needing Attention: dimos/msgs/nav_msgs/LineSegments3D.py
What T-Rex did
|
Contribution path
Problem
Visualizing large sets of line segments (like large maps in the planner) would take a long time (over 500ms in some cases I was testing).
Solution
Rewrite the decoding and to_rerun functions to be vectorized instead of iterating.
How to Test
AI assistance
Checklist