Adding BeamNG example #3
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding a BeamNG in-the-loop example.
This example is a bit heavy on the dependencies, so I'm not expecting the PR to review whether it works; I've ensured on my end that if BeamNGRL is installed correctly and is on the right branch, then the example should work.
This example runs the planner in the background using torch multi-processing and allows the MPC and Planner to work asynchronously (as it would on a real system) while being run from the same Python script.
Places where feedback could be useful: is the README + code sufficiently clear on how someone would use the planner in the loop (if it had to be run from the same python script)? Do I need to explain parts of the code/places where comments would be useful.