Skip to content

Commit ae6ae5c

Browse files
committed
chore: fix twist and imu iterator function name
Signed-off-by: vividf <yihsiang.fang@tier4.jp>
1 parent c6d9cc1 commit ae6ae5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sensing/pointcloud_preprocessor/include/pointcloud_preprocessor/distortion_corrector/distortion_corrector.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class DistortionCorrector : public DistortionCorrectorBase
8989
geometry_msgs::msg::TransformStamped::SharedPtr geometry_imu_to_base_link_ptr);
9090

9191
bool isInputValid(sensor_msgs::msg::PointCloud2 & pointcloud);
92-
void getIteratorOfTwistAndIMU(
92+
void getTwistAndIMUIterator(
9393
bool use_imu, double first_point_time_stamp_sec,
9494
std::deque<geometry_msgs::msg::TwistStamped>::iterator & it_twist,
9595
std::deque<geometry_msgs::msg::Vector3Stamped>::iterator & it_imu);

sensing/pointcloud_preprocessor/src/distortion_corrector/distortion_corrector.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void DistortionCorrector<Derived>::enqueueIMU(
115115
}
116116

117117
template <class Derived>
118-
void DistortionCorrector<Derived>::getIteratorOfTwistAndIMU(
118+
void DistortionCorrector<Derived>::getTwistAndIMUIterator(
119119
bool use_imu, double first_point_time_stamp_sec,
120120
std::deque<geometry_msgs::msg::TwistStamped>::iterator & it_twist,
121121
std::deque<geometry_msgs::msg::Vector3Stamped>::iterator & it_imu)
@@ -176,7 +176,7 @@ void DistortionCorrector<Derived>::undistortPointCloud(
176176

177177
std::deque<geometry_msgs::msg::TwistStamped>::iterator it_twist;
178178
std::deque<geometry_msgs::msg::Vector3Stamped>::iterator it_imu;
179-
getIteratorOfTwistAndIMU(use_imu, first_point_time_stamp_sec, it_twist, it_imu);
179+
getTwistAndIMUIterator(use_imu, first_point_time_stamp_sec, it_twist, it_imu);
180180

181181
// For performance, do not instantiate `rclcpp::Time` inside of the for-loop
182182
double twist_stamp = rclcpp::Time(it_twist->header.stamp).seconds();

0 commit comments

Comments
 (0)