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

Car on racecourse #278

Closed
wants to merge 14 commits into from
Closed

Conversation

Peter230655
Copy link
Contributor

@Peter230655 Peter230655 commented Dec 14, 2024

A car must move from start to finish on a windy road as fast as possible.

The road is modelled as two functions with $f(x) > g(x) \forall{a}$.
I take number of points $P(x_i | y_i)$ evenly spaced on the body of the car and ensure that $f(x_i) > y_i > g(x_i)$
This is done by using additional state variables $P_{upper_i}, P_{lower_i}$, set, say, $P_{upper_i} = f(x_i) - y_i$ and bound $P_{upper_i} > 0.0$
This exactly like my car parking in a garage, just a bit more elaborate, so I think at most one of them should be merged.

I also limit the maximum accelerations for the front and the end of the car, to mimick slowing down in curves.

NB: opty always arranged the car to "drive backwards" ,like a fork lift. Apparently better to solve this problem.

@Peter230655
Copy link
Contributor Author

I must have made some mistake pushing this

@Peter230655
Copy link
Contributor Author

New attempt.

@Peter230655
Copy link
Contributor Author

I psuhed this again (#290) from the correct branch, so I close this one.

@Peter230655 Peter230655 deleted the car-on-racecourse branch December 30, 2024 10:08
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

Successfully merging this pull request may close these issues.

1 participant