Skip to content

Commit

Permalink
fix: use format string
Browse files Browse the repository at this point in the history
Signed-off-by: Fumiya Watanabe <[email protected]>
  • Loading branch information
rej55 committed May 29, 2024
1 parent 08daedc commit 8a87a6a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,9 @@ bool calcStopVelocityWithConstantJerkAccLimit(
// for debug
RCLCPP_DEBUG(rclcpp::get_logger("velocity_planning_utils"), "Calculate stop velocity.");
for (unsigned int i = 0; i < ts.size(); ++i) {
RCLCPP_DEBUG_STREAM(
rclcpp::get_logger("velocity_planning_utils"), "--- "
<< "t: " << ts.at(i) << ", x: " << xs.at(i)
<< ", v: " << vs.at(i) << ", a: " << as.at(i)
<< ", j: " << js.at(i));
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));
}

const double a_target = 0.0;
Expand Down

0 comments on commit 8a87a6a

Please sign in to comment.