@@ -82,7 +82,7 @@ bool MPC::calculateMPC(
82
82
83
83
// get the diagnostic data w.r.t. the original trajectory
84
84
const auto [success_data_traj_raw, mpc_data_traj_raw] =
85
- getData (mpc_traj_raw , current_steer, current_kinematics);
85
+ getData (m_mpc_traj_raw , current_steer, current_kinematics);
86
86
if (!success_data_traj_raw) {
87
87
return fail_warn_throttle (" fail to get MPC Data for the raw trajectory. Stop MPC." );
88
88
}
@@ -192,11 +192,11 @@ void MPC::setReferenceTrajectory(
192
192
const double ego_offset_to_segment = motion_utils::calcLongitudinalOffsetToSegment (
193
193
trajectory_msg.points , nearest_seg_idx, current_kinematics.pose .pose .position );
194
194
195
- mpc_traj_raw = MPCUtils::convertToMPCTrajectory (trajectory_msg);
195
+ m_mpc_traj_raw = MPCUtils::convertToMPCTrajectory (trajectory_msg);
196
196
197
197
// resampling
198
198
const auto [success_resample, mpc_traj_resampled] = MPCUtils::resampleMPCTrajectoryByDistance (
199
- mpc_traj_raw , param.traj_resample_dist , nearest_seg_idx, ego_offset_to_segment);
199
+ m_mpc_traj_raw , param.traj_resample_dist , nearest_seg_idx, ego_offset_to_segment);
200
200
if (!success_resample) {
201
201
warn_throttle (" [setReferenceTrajectory] spline error when resampling by distance" );
202
202
return ;
@@ -233,7 +233,7 @@ void MPC::setReferenceTrajectory(
233
233
*/
234
234
if (param.extend_trajectory_for_end_yaw_control ) {
235
235
MPCUtils::extendTrajectoryInYawDirection (
236
- mpc_traj_raw .yaw .back (), param.traj_resample_dist , m_is_forward_shift, mpc_traj_smoothed);
236
+ m_mpc_traj_raw .yaw .back (), param.traj_resample_dist , m_is_forward_shift, mpc_traj_smoothed);
237
237
}
238
238
239
239
// calculate yaw angle
0 commit comments