Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(motion_velocity_smoother): remove string stream creation #7131

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,12 @@ bool calcStopVelocityWithConstantJerkAccLimit(
}

// for debug
std::stringstream ss;
RCLCPP_DEBUG(rclcpp::get_logger("velocity_planning_utils"), "Calculate stop velocity.");
for (unsigned int i = 0; i < ts.size(); ++i) {
ss << "t: " << ts.at(i) << ", x: " << xs.at(i) << ", v: " << vs.at(i) << ", a: " << as.at(i)
<< ", j: " << js.at(i) << std::endl;
RCLCPP_DEBUG(
rclcpp::get_logger("velocity_planning_utils"), "--- t: %f, x: %f, v: %f, a: %f, j: %f",
ts.at(i), xs.at(i), vs.at(i), as.at(i), js.at(i));
}
RCLCPP_DEBUG(
rclcpp::get_logger("velocity_planning_utils"), "Calculate stop velocity. %s", ss.str().c_str());

const double a_target = 0.0;
const double v_margin = 0.3;
Expand Down
Loading