Coder Social home page Coder Social logo

lexasss / scenario_runner-0.9.13 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 9.82 MB

Clone on the CARLA's scenario_runner project adapted for the research needs

License: MIT License

PowerShell 0.30% Dockerfile 0.19% Python 89.72% XSLT 9.71% Shell 0.08%

scenario_runner-0.9.13's Introduction

Clone of ScenarioRunner for CARLA adapted for own research needs.

The original ScenarioRunner was modified a bit:

  • fixed the issue with wrong parameter for some function,
  • manual_contorl.py:
    • the front camera moved into the cabin,
    • initial camera may be specified as a script argument with --camera 0..4
  • scenario_runner.py:
    • the script takes an optional argument --params <str> that is passed to the scenario script, and this parameter moves futher into the scenario class constructor:
    class MyScenario(BasicScenario):
        def __init__(self, world,   # skipped other parameters 
                    params=''):     # receives the string passed as --params to the scenario_runner.py
            ...

Requirements

Downloading the project

git clone https://github.com/lexasss/scenario_runner-0.9.13.git

Note:

  • After cloning the project, please specify correct pathes in .set-env.ps1,
  • Virtual environment is created and all Python dependencies are installed into this environment once any scenario is launched for the first time.

Scenarios

Scenarios are located in scenarios folder. To start, simply run CARLA and then run a scenario in PowerShell.

Note: You may need to allow PowerShell running scripts. If so, open PowerShell and run the following command:

Set-ExecutionPolicy Unrestricted

Tip: PowerShell scripts can be launched by mouse double-click if the default value of HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\Open\Command in RegEdit is set to powershell.exe -noLogo -file "%1". Note that you can add -ExecutionPolicy unrestricted into this command to avoid changing the PowerShell policy as suggested above in Note.

List of scenarios:

  • ChangeLane:
    Comes with 3 tasks:

    1. Ego car moves in the middle lane. There is a Tesla car moving a bit ahead and on the left lane. There are also few other cars moving on difference lanes. All cars move in autonomous mode,
    2. Same as in task #1, but the ego car moved a bit faster than other cars. When it approaches the Tesla moving on the left lane, the Tesla changes the lane at a safe distance in front of the ego car.
    3. Same as in task #2, but the Tesla changes the lane at an unsafe distance in front of the ego car, so the driver should slow down to avoid collision.

    Note: The original ChangeLane scenario was renamed into ChangeLaneOriginal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.