Skip to content

Commit dc3751f

Browse files
authored
fix(autoware_motion_velocity_obstacle_velocity_limiter_module): fix unreadVariable warning (#7625)
Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
1 parent 6c2e484 commit dc3751f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

planning/motion_velocity_planner/autoware_motion_velocity_obstacle_velocity_limiter_module/src/trajectory_preprocessing.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,13 @@ TrajectoryPoints downsampleTrajectory(
6868

6969
void calculateSteeringAngles(TrajectoryPoints & trajectory, const double wheel_base)
7070
{
71-
auto t = 0.0;
7271
auto prev_point = trajectory.front();
7372
auto prev_heading = tf2::getYaw(prev_point.pose.orientation);
7473
for (auto i = 1ul; i < trajectory.size(); ++i) {
7574
const auto & prev_point = trajectory[i - 1];
7675
auto & point = trajectory[i];
7776
const auto dt = autoware::universe_utils::calcDistance2d(prev_point, point) /
7877
prev_point.longitudinal_velocity_mps;
79-
t += dt;
8078
const auto heading = tf2::getYaw(point.pose.orientation);
8179
const auto d_heading = heading - prev_heading;
8280
prev_heading = heading;

0 commit comments

Comments
 (0)