Skip to content

Commit

Permalink
fix(autoware_freespace_planning_algorithms): fix constStatement warni…
Browse files Browse the repository at this point in the history
…ng (autowarefoundation#7580)

Signed-off-by: Ryuta Kambe <[email protected]>
  • Loading branch information
veqcc authored Jun 20, 2024
1 parent a5e975c commit b747520
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ AstarSearch::TransitionTable createTransitionTable(
for (int i = 0; i < turning_radius_size; ++i) {
double R = R_min + i * dR;
double step = R * dtheta;
const NodeUpdate forward_left{
R * sin(dtheta), R * (1 - cos(dtheta)), dtheta, step, true, false};
const double shift_x = R * sin(dtheta);
const double shift_y = R * (1 - cos(dtheta));
const NodeUpdate forward_left{shift_x, shift_y, dtheta, step, true, false};
const NodeUpdate forward_right = forward_left.flipped();
forward_node_candidates.push_back(forward_left);
forward_node_candidates.push_back(forward_right);
Expand Down

0 comments on commit b747520

Please sign in to comment.