Skip to content

Commit b43ab84

Browse files
committed
fix: use format string
Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
1 parent 08daedc commit b43ab84

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

planning/motion_velocity_smoother/src/smoother/analytical_jerk_constrained_smoother/velocity_planning_utils.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,8 @@ bool calcStopVelocityWithConstantJerkAccLimit(
201201
// for debug
202202
RCLCPP_DEBUG(rclcpp::get_logger("velocity_planning_utils"), "Calculate stop velocity.");
203203
for (unsigned int i = 0; i < ts.size(); ++i) {
204-
RCLCPP_DEBUG_STREAM(
205-
rclcpp::get_logger("velocity_planning_utils"), "--- "
206-
<< "t: " << ts.at(i) << ", x: " << xs.at(i)
207-
<< ", v: " << vs.at(i) << ", a: " << as.at(i)
208-
<< ", j: " << js.at(i));
204+
RCLCPP_DEBUG(
205+
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));
209206
}
210207

211208
const double a_target = 0.0;

0 commit comments

Comments
 (0)