Skip to content
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 cant tracking path properly and stuck #36

Open
ilkaydost opened this issue Apr 7, 2021 · 5 comments
Open

MPC cant tracking path properly and stuck #36

ilkaydost opened this issue Apr 7, 2021 · 5 comments

Comments

@ilkaydost
Copy link

Hi, @croesmann, I'm working on a project and I'm planning to use MPC cuz several reasons, one of them TEB carlike config causes oscillation. So, I started to use MPC. However MPC couldn't generate proper path or tracking trajectory for the tricycle vehicle even if there was a huge gap to pass though. On the other hand TEB can able to produce path and vehicle follow this path (with oscillation) to goal. At the end, I'm investigating the solution to stuck, produce path and path tracking for three wheeled vehicle.

My mpc config file down below.
mpc_carlike.txt
-- I tried several configurations such as force_inclusion_dist or solver and planner types but none of them can't solved my problem.
-- Costmap params for global map 1.2 both inflation and cost scaling fac. For local cost map: 0.8 cost scaling and 1.2 inflation
Note: Even if I reduce the costmap params same behavior occurs.

-In the first picture mpc giving up the track path and stop.
-In the second and third picture mpc cant turning even there was a proper gap and plan.
-In the last two picture mpc started oscillation and stuck.

stuck1

stuck2
stuck4

stuck3
stuck3_oscillation

@Huyhust13
Copy link

Huyhust13 commented Apr 7, 2021 via email

@ilkaydost
Copy link
Author

@Huyhust13 Thanks for the reply. I dont want to use so much global planner when vehicle moves but I tried your idea nevertheless couldnt solve my problem either. Still stucking. Even if Mpc produce local path to w.r.t global planner with via_points and also there was a gap to pass through, MPC himself giving up to move forward with saying is not feasible. Indeed MPC wasnt even try to pass. It's just aborting himself. But Teb could successfully passed in the same situation.

@Tubagc
Copy link

Tubagc commented Aug 31, 2021

Hi @ilkaydost , I have encountered the same problem with you. I do not want to use teb_local_planner because the plan and velocity oscillates when it is a car-like robot. I wondered if you solved the problem of stucking inside narrow corridors. I am waiting for your reply :)

@ilkaydst
Copy link

Hi @Tubagc , I couldnt solve stucking problem for MPC, then I started the use TEB local planner again. In my case I decreased acc_lim_angular and acc_lim_linear parameters like as 0.06 value also considering the motor and vehicle specs. Then TEB started to move without oscillation both narrow and wide areas ;)

@LotfiZ
Copy link

LotfiZ commented Oct 7, 2021

Hi @ilkaydst , happy to see that TEB worked for you, we have a forklift in a form of a tricycle with front steering drive wheel and we have a lot of problem of oscillations so i have some questions for you if its possible : did you modify the kinematic constraints in the TEB or did you just set cmd_angle_instead_rotvel to True ? also, how do you control the steering angle rate ? do you just set a fixed velocity or there is something else ? Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants