Skip to content

Commit 85e2660

Browse files
Nagi70kobayu858
andauthored
fix(autoware_freespace_planning_algorithms): fix variableScope (#8431)
fix: variableScope Signed-off-by: Nagi70 <n.yoshimura.060@ms.saitama-u.ac.jp> Co-authored-by: kobayu858 <129580202+kobayu858@users.noreply.github.com>
1 parent be16b07 commit 85e2660

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

planning/autoware_freespace_planning_algorithms/src/reeds_shepp.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ ReedsSheppStateSpace::StateXYT ReedsSheppStateSpace::interpolate(
676676
}
677677

678678
StateXYT s_out;
679-
double phi, v;
679+
double v;
680680

681681
s_out.x = s_out.y = 0.0;
682682
s_out.yaw = s0.yaw;
@@ -689,7 +689,7 @@ ReedsSheppStateSpace::StateXYT ReedsSheppStateSpace::interpolate(
689689
v = std::min(seg, path.length_[i]);
690690
seg -= v;
691691
}
692-
phi = s_out.yaw;
692+
double phi = s_out.yaw;
693693
switch (path.type_[i]) {
694694
case RS_LEFT:
695695
s_out.x += (sin(phi + v) - std::sin(phi));

0 commit comments

Comments
 (0)