Skip to content

Commit

Permalink
fix: pre-commit
Browse files Browse the repository at this point in the history
Signed-off-by: tanaka3 <ttatcoder@outlook.jp>
  • Loading branch information
taikitanaka3 committed Jan 13, 2022
1 parent b60b2fa commit 42b3701
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ lanelet::ConstLanelet toPathLanelet(const PathWithLaneId & path)
lanelet::Points3d path_points;
path_points.reserve(path.points.size());
for (const auto & path_point : path.points) {
const auto &p = path_point.point.pose.position;
const auto & p = path_point.point.pose.position;
path_points.emplace_back(lanelet::InvalId, p.x, p.y, p.z);
}
lanelet::LineString3d centerline(lanelet::InvalId, path_points);
Expand Down
4 changes: 2 additions & 2 deletions planning/behavior_velocity_planner/test/src/test_geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include <vector>


TEST(buildSlices, one_full_slice)
{
using behavior_velocity_planner::geometry::buildSlices;
Expand Down Expand Up @@ -77,7 +76,8 @@ TEST(buildSlices, 3x3square_slice)
range.max_distance = -3.0;
const double slice_length = 1.0;
const double slice_width = 1.0;
const int num_right_slice = (len - 1)/slice_length * std::abs(range.max_distance - range.min_distance)/slice_width;
const int num_right_slice =
(len - 1) / slice_length * std::abs(range.max_distance - range.min_distance) / slice_width;
{
std::vector<Slice> slices;
buildSlices(slices, traj_lanelet, range, slice_length, slice_width, 0.5);
Expand Down

0 comments on commit 42b3701

Please sign in to comment.