Skip to content

Commit

Permalink
perf(motion_velocity_smoother): remove some heavy debug logging (auto…
Browse files Browse the repository at this point in the history
…warefoundation#8798)

remove some heavy logging in the velocity smoother

Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
  • Loading branch information
maxime-clem committed Sep 13, 2024
1 parent 07a850d commit 16a2598
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,6 @@ bool calcStopVelocityWithConstantJerkAccLimit(
const auto acc_at_wp = interpolation::lerp(xs, as, distances);
const auto jerk_at_wp = interpolation::lerp(xs, js, distances);

// for debug
std::stringstream ssi;
for (unsigned int i = 0; i < distances.size(); ++i) {
ssi << "d: " << distances.at(i) << ", v: " << vel_at_wp.at(i) << ", a: " << acc_at_wp.at(i)
<< ", j: " << jerk_at_wp.at(i) << std::endl;
}
RCLCPP_DEBUG(
rclcpp::get_logger("velocity_planning_utils"), "Interpolated = %s", ssi.str().c_str());

for (size_t i = 0; i < vel_at_wp.size(); ++i) {
output_trajectory.at(start_index + i).longitudinal_velocity_mps = vel_at_wp.at(i);
output_trajectory.at(start_index + i).acceleration_mps2 = acc_at_wp.at(i);
Expand Down

0 comments on commit 16a2598

Please sign in to comment.