Skip to content

Commit 13ad6e5

Browse files
committed
chore: add comment for quat
Signed-off-by: vividf <yihsiang.fang@tier4.jp>
1 parent e2af91f commit 13ad6e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sensing/pointcloud_preprocessor/src/distortion_corrector/distortion_corrector.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,9 @@ inline void DistortionCorrector2D::undistortPointImplementation(
377377
theta_ += w * time_offset;
378378
baselink_quat_.setValue(
379379
0, 0, autoware::universe_utils::sin(theta_ * 0.5f),
380-
autoware::universe_utils::cos(theta_ * 0.5f)); // baselink_quat.setRPY(0.0, 0.0, theta);
380+
autoware::universe_utils::cos(
381+
theta_ *
382+
0.5f)); // baselink_quat.setRPY(0.0, 0.0, theta); (Note that the value is slightly different)
381383
const float dis = v * time_offset;
382384
x_ += dis * autoware::universe_utils::cos(theta_);
383385
y_ += dis * autoware::universe_utils::sin(theta_);

0 commit comments

Comments
 (0)