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

Regarding the problem of the car exceeding the road boundary #13

Open
whitewolfcheng opened this issue Jan 21, 2021 · 0 comments
Open

Comments

@whitewolfcheng
Copy link

Hello,I am studying your code at [https://github.com/urosolia/RacingLMPC].

But I had some questions when I was running your program.

I use a judgment condition to judge whether the state variable exceeds the boundary constraint in 'SysModels.py' when a new state variable is generated :
x[i + 1, :], x_glob[i + 1, :] = _DynModel(x[i, :], x_glob[i, :], u[i, :], np, ClosedLoopData.dt, self.map.PointAndTangent) if x[i+1,5]>=self.map.halfWidth: print 'Lateral distance',x[i+1,5], 'Road boundary',self.map.halfWidth

But when I ran the program, I found that your program goes beyond the road boundary sometimes :

Lateral distance 0.4191460527916872 Road boundary 0.4 Lateral distance 0.4324614096754442 Road boundary 0.4 Lateral distance 0.4138255604138284 Road boundary 0.4

Therefore, I am more curious about whether there is an error margin when the road width constraint is exceeded.

Or is there any way to keep it strictly within the road width constraint?

In addition, I noticed that the position of the car is expressed in the form of mass points. Therefore, when the particle of the car is located at the edge of the road width constraint, what about the body part of the car that exceeds the road width constraint?

I will be very grateful if you can answer my questions.

Thanks!

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

1 participant