Keep do_transform_vector3 from zeroing the transform's translation #1008
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.33) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 142 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.297
Real PR Conversation Timeline
1 comments
"Review active on #1008"
general
weight: 0.35
Rahul-cs50
Description
do_transform_vector3()ignores the translation by setting it to zero on theTransformStampedpassed in:That changes the caller's transform. Using the same transform afterwards gives wrong results, for example:
This change builds the matrix from the rotation alone and leaves the input untouched. The result for the vector is the same as before.
The same code is on
humble,jazzyandkilted, so this may be worth backporting.Tests
New test
test_transform_vector3_keeps_transformtransforms a vector, then checks the transform still has its translation and thatdo_transform_point()with it still translates. It fails on the current code and passes with the fix.In a
ros:rolling-ros-basecontainer:test_tf2_geometry_msgs.py2 passed,ament_flake8clean.