-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(mpc_lateral_controller) is_converged gets false after manual driving #6421
Comments
@TomoyukiaW Could you please confirm the issue persists on autoware's latest status. |
@TomoyukiaW I'm not so sure wether your solution solves the problem, Also, if you can make a PR to solve this issue we really appreciate and review the PR soon 😍 |
@idorobotics I'm sorry for my late response. I was working with another task from last weekend. I checked this issue in the customer vehicle in some project. And currently we are in verification phase. So, there is no time to prepare the latest source with the customer configuration. But I think my mentioned source code part is not changed in the latest source. I'll check other person's opinions and consider the best way to solve/check this issue. |
@kyoichi-sugahara Thank you for the status suggestion. It's my expected status. I'll create a PR after checking how to create it... |
@VRichardJP If my understanding is correct, #4915 is the issue not in autonomous mode. So, it seems that after applying #5183, still occur this issue. |
@TomoyukiaW |
@kyoichi-sugahara Thank you for supporting this issue! In my environment, resetting m_ctrl_cmd_prev was enough to clear the issue. I think aligning m_ctrl_cmd_prev to current vehicle tire angle during manual driving (and not during stopping in autonomous driving mode) is reasonable. I'm sorry for not having supported PR. It was happened in the customer environment, and I did the instant WA. But I didn't have the chance to capture the rosbag to verify the modification for PR. I'll ask someone's help next time. |
Checklist
Description
I'm working with Autoware v1.0. After we drive the vehicle manually, sometimes is_converged in mpc_lateral_controller.cpp gets false, trajectory_follower is staying in stopping state. I feel it's often happened after we drive backward with moving steering (meandering backward). I dumped cmd.steering_tire_angle and m_current_steering.steering_tire_angle with the following debug print.
In this log, diff is 0.239239 grater than 0.1.
Expected behavior
After the manual driving and when we start auto operation, is_converged should be true.
Actual behavior
Sometimes is_converged gets false.
Steps to reproduce
->autoware control gets enabled, operation mode gets Auto. But the vehicle doesn't move. The console output the log, "target speed > 0, but keep stop condition is met. Keep STOPPED."
Versions
Possible causes
Should we reset m_ctrl_cmd_prev as well as MPC state like the following? In my debugging, sometimes only is_mpc_solved couldn't be detected the above situation, so I added OperationModeState::LOCAL and OperationModeState::REMOTE states conditions to reset in this condition. (Semantically, using autoware control = disabled is better, but it is not passed to mpc_lateral_controller.cpp.)
Additional context
No response
The text was updated successfully, but these errors were encountered: