I want to simulate car lane changing using BeamNG.Research. I want to know that how to add more than one car using BeamNG Py. Code: vehicle = Vehicle('ego_vehicle', model='etk800', licence='PYTHON') vehicleRed = Vehicle('leading_vehicle', model='etk800',licence='PYTHON', color='Red') # Add it to our scenario at this position and rotation scenario.add_vehicle(vehicle, pos=(-713, 101, 118), rot=(0, 0, 45)) scenario.add_vehicle(vehicleRed, pos=(-717, 101, 118), rot=(0, 0, 45)) This code only adds one vehicle to the scenario. Can someone explain how to do this using BeamNG Python.
We'll get back to you on monday about this, sorry for the delay, but I'm the only one in the office right now
I want to set two cars, ego vehicle, and leading vehicle. The ego vehicle has to overtake leading vehicle with lane changing techniques.
Your code looks fine to me. By default, BeamNG.research is limited to a single vehicle. You can contact us at research@beamng.gmbh with a short overview on what you work on to get around that restriction.
Alright. I will contact on the given mail to work around this scenario. Another question I want to add: How to Artificial Intelligently drive the car in the scenario. Code: vehicle.ai_set_mode('span') . Till now I can manually control the vehicle with this parameter.