Skip to content

Commit

Permalink
Fix werror of trajectory_follower
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed May 20, 2022
1 parent 20a10d6 commit 468a024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions control/trajectory_follower/src/mpc_lateral_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ LateralOutput MpcLateralController::run()
output.control_cmd = cmd_msg;
output.sync_data.is_steer_converged =
std::abs(cmd_msg.steering_tire_angle - m_current_steering_ptr->steering_tire_angle) <
m_converged_steer_rad;
static_cast<float>(m_converged_steer_rad);
return output;
}

Expand All @@ -234,7 +234,7 @@ LateralOutput MpcLateralController::run()
output.control_cmd = cmd_msg;
output.sync_data.is_steer_converged =
std::abs(cmd_msg.steering_tire_angle - m_current_steering_ptr->steering_tire_angle) <
m_converged_steer_rad;
static_cast<float>(m_converged_steer_rad);
return output;
}

Expand Down Expand Up @@ -372,7 +372,7 @@ bool8_t MpcLateralController::isStoppedState() const
std::fabs(target_vel) < m_stop_state_entry_target_speed &&
(!m_check_steer_converged_for_stopped_state ||
std::abs(m_ctrl_cmd_prev.steering_tire_angle - m_current_steering_ptr->steering_tire_angle) <
m_converged_steer_rad)) {
static_cast<float>(m_converged_steer_rad))) {
return true;
} else {
return false;
Expand Down

0 comments on commit 468a024

Please sign in to comment.