1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

BeamNG.Research

Discussion in 'General Discussion' started by Sameed Tariq, Dec 8, 2018.

Tags:
  1. Sameed Tariq

    Sameed Tariq
    Expand Collapse

    Joined:
    Dec 8, 2018
    Messages:
    6
    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.
     
  2. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    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 :)
     
  3. Sameed Tariq

    Sameed Tariq
    Expand Collapse

    Joined:
    Dec 8, 2018
    Messages:
    6
    I want to set two cars, ego vehicle, and leading vehicle. The ego vehicle has to overtake leading vehicle with lane changing techniques.
     
  4. Palculator

    Palculator
    Expand Collapse
    Goose-typed

    Joined:
    May 24, 2018
    Messages:
    13
    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.
     
  5. Sameed Tariq

    Sameed Tariq
    Expand Collapse

    Joined:
    Dec 8, 2018
    Messages:
    6
    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.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice