Skip to content

Commit

Permalink
fix(autoware_mpc_lateral_controller): add timestamp and frame ID to p…
Browse files Browse the repository at this point in the history
…ublished trajectory (autowarefoundation#8164) (#1452)

add timestamp and frame ID to published trajectory

Signed-off-by: kyoichi-sugahara <[email protected]>
Co-authored-by: Kyoichi Sugahara <[email protected]>
  • Loading branch information
takayuki5168 and kyoichi-sugahara authored Aug 8, 2024
1 parent 913d199 commit 1a60db7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion control/autoware_mpc_lateral_controller/src/mpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,10 @@ Trajectory MPC::calculatePredictedTrajectory(
const auto frenet = m_vehicle_model_ptr->calculatePredictedTrajectoryInFrenetCoordinate(
mpc_matrix.Aex, mpc_matrix.Bex, mpc_matrix.Cex, mpc_matrix.Wex, x0, Uex, reference_trajectory,
dt);
const auto frenet_clipped = MPCUtils::convertToAutowareTrajectory(
auto frenet_clipped = MPCUtils::convertToAutowareTrajectory(
MPCUtils::clipTrajectoryByLength(frenet, predicted_length));
frenet_clipped.header.stamp = m_clock->now();
frenet_clipped.header.frame_id = "map";
m_debug_frenet_predicted_trajectory_pub->publish(frenet_clipped);
}

Expand Down

0 comments on commit 1a60db7

Please sign in to comment.