Welcome to this private Jupyter notebooks repository on GitHub. This repository contains several Jupyter notebooks for BeamNG. Each notebook has a unique purpose and is available for non-commercial use under the Creative Commons License.
Here is a brief overview of the notebooks to find in this repository:
WORK IN PROGRESS useOSMdataWithBeamNg.ipynb
- In this example, we download OpenStreetMap data for San Francisco and use the OSMnx library to generate a network graph of the streets and roads in the area. We then use the Scenario and Road classes in BeamNGpy to create a scenario that includes roads based on the OpenStreetMap data. Finally, we add a vehicle to the scenario and use the ai_set_route method to drive the vehicle along the roads in the scenario.
- Ensure you have Conda installed on your system.
- Open your terminal or Anaconda Prompt, navigate to the directory containing the
environment.yml
file, and create a new Conda environment called 'beam_ng' with the specified packages:conda env create -f environment.yml
- Activate the
beam_ng
environment:conda activate beam_ng
- Launch the Jupyter Notebook:
jupyter notebook
- Now, open the Jupyter Notebook file (
useOSMdataWithBeamNg.ipynb
) and run the code cells.
Before you run the notebook, you need to install and set up the BeamNG Research extension on the computer running the BeamNG simulation. Follow these steps:
- Download the latest release of BeamNG.research from the official GitHub repository: https://github.com/BeamNG/BeamNGpy/releases
- Extract the contents of the downloaded archive.
- Copy the extracted research folder into your BeamNG installation's mods folder. The path should look like:
<BeamNG_folder>/mods/research
. - Start BeamNG.
- Activate the BeamNG Research mod by going to
Options > Mods
, find the "Research" mod, and enable it. Restart the simulation when prompted. - In the main menu, click on the "Play" button and then select "Scenarios". From the list of scenarios, select "beamngpy" and then click "Start".
All Jupyter notebooks in this repository are available under the Creative Commons License for Non-Commercial Use. This means that you are free to use, modify, and share these projects as long as it is for non-commercial purposes. If you wish to use these Jupyter notebooks for commercial purposes, please contact the owner of this repository for licensing information.
If you have any questions or feedback, please do not hesitate to reach out to the owner of this repository.
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.