Skip to content

Commit

Permalink
fix(trajectory_follower): fix mpc trajectory z pos (backport autoware…
Browse files Browse the repository at this point in the history
  • Loading branch information
h-ohta authored Apr 13, 2023
1 parent 859af0a commit 7123a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/trajectory_follower/src/mpc_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ bool8_t convertToMPCTrajectory(
for (const autoware_auto_planning_msgs::msg::TrajectoryPoint & p : input.points) {
const float64_t x = p.pose.position.x;
const float64_t y = p.pose.position.y;
const float64_t z = 0.0;
const float64_t z = p.pose.position.z;
const float64_t yaw = ::motion::motion_common::to_angle(p.pose.orientation);
const float64_t vx = p.longitudinal_velocity_mps;
const float64_t k = 0.0;
Expand Down

0 comments on commit 7123a7f

Please sign in to comment.