Skip to content
Snippets Groups Projects
Commit 9f9d4678 authored by Ziqi Zhou's avatar Ziqi Zhou
Browse files

refactor: add const to s

parent 76bb740d
No related branches found
No related tags found
1 merge request!104Fix: apply downsampling to logical lane boundary
Pipeline #70840 passed
......@@ -29,7 +29,7 @@ road_logic_suite::types::LaneSection CreateSectionWithSingleRightLaneWithConstan
road_logic_suite::types::LaneSection section{};
road_logic_suite::types::Lane right_lane{};
road_logic_suite::types::Poly3 constant_width(4, 0, 0, 0);
auto s0{0.0_m};
const auto s0{0.0_m};
right_lane.width_polys.Insert(s0, constant_width);
right_lane.id = -1;
section.right_lanes.push_back(right_lane);
......@@ -39,7 +39,7 @@ road_logic_suite::types::LaneSection CreateSectionWithSingleRightLaneWithConstan
TEST(ConverterUtilsTest,
GivenALaneSectionWithASingleRightLane_WhenGettingTheBoundaryOffsetForThatLane_ThenTheReturnedOffsetShouldBeCorrect)
{
auto s{0.0_m};
const auto s{0.0_m};
const auto section = CreateSectionWithSingleRightLaneWithConstantWidth();
const auto lane_id = -1;
......@@ -51,7 +51,7 @@ TEST(ConverterUtilsTest,
TEST(ConverterUtilsTest,
GivenALaneSectionWithASingleRightLane_WhenGettingTheLaneCenterOffset_ThenTheReturnedOffsetShouldBeCorrect)
{
auto s{0.0_m};
const auto s{0.0_m};
const auto section = CreateSectionWithSingleRightLaneWithConstantWidth();
const auto lane_id = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment