Skip to content

Commit 13b96ad

Browse files
miurshyukke42
andauthored
refactor: fix spell-check (autowarefoundation#4289)
* refactor: fix spell-check Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp> * fix spell-check Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp> * fix typo Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp> * Fix obvious typo, shortened words Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp> * Fix obvious typo, shortened words, in common directory Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp> * add cspell ignore Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp> * Update perception/tensorrt_classifier/CMakeLists.txt Co-authored-by: Yusuke Muramatsu <yukke42@users.noreply.github.com> --------- Signed-off-by: Shunsuke Miura <shunsuke.miura@tier4.jp> Co-authored-by: Yusuke Muramatsu <yukke42@users.noreply.github.com>
1 parent d20adaa commit 13b96ad

File tree

37 files changed

+277
-263
lines changed

37 files changed

+277
-263
lines changed

common/perception_utils/include/perception_utils/prime_synchronizer.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class PrimeSynchronizer
158158
* @tparam Idx
159159
* @param argv
160160
* @return true All messages are not nullptr
161-
* @return false At least one message in the tuplc is nullptr
161+
* @return false At least one message in the topic is nullptr
162162
*/
163163
template <std::size_t Idx = 0>
164164
bool isArgvValid(

common/tensorrt_common/src/tensorrt_common.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ bool TrtCommon::buildEngineFromOnnx(
416416
first = false;
417417
}
418418
if (last) {
419+
// cspell: ignore preds
419420
if (
420421
contain(name, "reg_preds") || contain(name, "cls_preds") ||
421422
contain(name, "obj_preds")) {

common/tvm_utility/tvm_utility-extras.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ function(get_neural_network MODEL_NAME MODEL_BACKEND DEPENDENCY)
3535
set(PREPROCESSING "")
3636

3737
# Prioritize user-provided models.
38+
# cspell: ignore COPYONLY
3839
if(IS_DIRECTORY "${DATA_PATH}/user/${MODEL_NAME}")
3940
message(STATUS "Using user-provided model from ${DATA_PATH}/user/${MODEL_NAME}")
4041
file(REMOVE_RECURSE "${DATA_PATH}/models/${MODEL_NAME}/")

perception/ground_segmentation/test/test_ray_ground_filter.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ TEST_F(RayGroundFilterComponentTestSuite, TestCase1)
109109
// check out_cloud
110110
int effect_num = 0;
111111
int total_num = 0;
112-
const float min_noground_point_z = 0.1; // z in base_frame
112+
const float min_no_ground_point_z = 0.1; // z in base_frame
113113
for (sensor_msgs::PointCloud2ConstIterator<float> iter_x(out_cloud, "x"), iter_y(out_cloud, "y"),
114114
iter_z(out_cloud, "z");
115115
iter_x != iter_x.end(); ++iter_x, ++iter_y, ++iter_z) {
116116
const float z = *iter_z;
117117
total_num += 1;
118-
if (z > min_noground_point_z) {
118+
if (z > min_no_ground_point_z) {
119119
effect_num += 1;
120120
}
121121
}

perception/ground_segmentation/test/test_scan_ground_filter.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ScanGroundFilterTest : public ::testing::Test
4545
output_pointcloud_pub_ = rclcpp::create_publisher<sensor_msgs::msg::PointCloud2>(
4646
dummy_node_, "/test_scan_ground_filter/output_cloud", 1);
4747

48-
// no real uages,ScanGroundFilterComponent cosntruct need these params
48+
// no real usages, ScanGroundFilterComponent constructor need these params
4949
rclcpp::NodeOptions options;
5050
std::vector<rclcpp::Parameter> parameters;
5151
parameters.emplace_back(rclcpp::Parameter("wheel_radius", 0.39));
@@ -173,13 +173,13 @@ TEST_F(ScanGroundFilterTest, TestCase1)
173173
// check out_cloud
174174
int effect_num = 0;
175175
int total_num = 0;
176-
const float min_noground_point_z = 0.1;
176+
const float min_no_ground_point_z = 0.1;
177177
for (sensor_msgs::PointCloud2ConstIterator<float> iter_x(out_cloud, "x"), iter_y(out_cloud, "y"),
178178
iter_z(out_cloud, "z");
179179
iter_x != iter_x.end(); ++iter_x, ++iter_y, ++iter_z) {
180180
const float z = *iter_z;
181181
total_num += 1;
182-
if (z > min_noground_point_z) {
182+
if (z > min_no_ground_point_z) {
183183
effect_num += 1;
184184
}
185185
}

perception/lidar_centerpoint_tvm/lib/postprocess/generate_detected_boxes.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -146,28 +146,28 @@ void generateDetectedBoxes3D(
146146
// construct boxes3d failed
147147
std::cerr << "lidar_centerpoint_tvm: construct boxes3d failed" << std::endl;
148148
}
149-
std::vector<Box3D> det_boxes3d_nonms(num_det_boxes3d);
149+
std::vector<Box3D> det_boxes3d_no_nms(num_det_boxes3d);
150150
std::copy_if(
151-
boxes3d.begin(), boxes3d.end(), det_boxes3d_nonms.begin(),
151+
boxes3d.begin(), boxes3d.end(), det_boxes3d_no_nms.begin(),
152152
is_score_greater(config.score_threshold_));
153153

154154
// sort by score
155-
std::sort(det_boxes3d_nonms.begin(), det_boxes3d_nonms.end(), score_greater());
155+
std::sort(det_boxes3d_no_nms.begin(), det_boxes3d_no_nms.end(), score_greater());
156156

157157
// suppress by NMS
158158
std::vector<bool> final_keep_mask(num_det_boxes3d);
159159
const auto num_final_det_boxes3d =
160-
circleNMS(det_boxes3d_nonms, config.circle_nms_dist_threshold_, final_keep_mask);
160+
circleNMS(det_boxes3d_no_nms, config.circle_nms_dist_threshold_, final_keep_mask);
161161

162162
det_boxes3d.resize(num_final_det_boxes3d);
163163
std::size_t box_id = 0;
164164
for (std::size_t idx = 0; idx < final_keep_mask.size(); idx++) {
165165
if (final_keep_mask[idx]) {
166-
det_boxes3d[box_id] = det_boxes3d_nonms[idx];
166+
det_boxes3d[box_id] = det_boxes3d_no_nms[idx];
167167
box_id++;
168168
}
169169
}
170-
// std::copy_if(det_boxes3d_nonms.begin(), det_boxes3d_nonms.end(), final_keep_mask.begin(),
170+
// std::copy_if(det_boxes3d_no_nms.begin(), det_boxes3d_no_nms.end(), final_keep_mask.begin(),
171171
// det_boxes3d.begin(), is_kept());
172172
}
173173

perception/lidar_centerpoint_tvm/lib/preprocess/voxel_generator.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ std::size_t VoxelGenerator::pointsToVoxels(
7575
auto pc_msg = pc_cache_iter->pointcloud_msg;
7676
auto affine_past2current =
7777
pd_ptr_->getAffineWorldToCurrent() * pc_cache_iter->affine_past2world;
78-
float timelag = static_cast<float>(
78+
float time_lag = static_cast<float>(
7979
pd_ptr_->getCurrentTimestamp() - rclcpp::Time(pc_msg.header.stamp).seconds());
8080

8181
for (sensor_msgs::PointCloud2ConstIterator<float> x_iter(pc_msg, "x"), y_iter(pc_msg, "y"),
@@ -87,7 +87,7 @@ std::size_t VoxelGenerator::pointsToVoxels(
8787
point[0] = point_current.x();
8888
point[1] = point_current.y();
8989
point[2] = point_current.z();
90-
point[3] = timelag;
90+
point[3] = time_lag;
9191

9292
out_of_range = false;
9393
for (std::size_t di = 0; di < config_.point_dim_size_; di++) {

perception/map_based_prediction/src/map_based_prediction_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ ObjectClassification::_label_type changeLabelForPrediction(
550550
label == ObjectClassification::MOTORCYCLE || label == ObjectClassification::BICYCLE) {
551551
// if object is within road lanelet and satisfies yaw constraints
552552
const bool within_road_lanelet = withinRoadLanelet(object, lanelet_map_ptr_, true);
553-
const float high_speed_threshold = 25.0 / 18.0 * 5.0; // High speed bycicle 25 km/h
553+
const float high_speed_threshold = 25.0 / 18.0 * 5.0; // High speed bicycle 25 km/h
554554
const bool high_speed_object =
555555
object.kinematics.twist_with_covariance.twist.linear.x > high_speed_threshold;
556556

0 commit comments

Comments
 (0)