Skip to content

JuanYan/Carla-packed-as-Gym

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gym environment for Carla

How to use

  1. Install the Carla library into Python.

    CD to Carla/PythonClient folder, then type:

    pip install -e .
    
  2. install the package, CD to gym-carla folder, then either:

    to copy & install

    pip install .
    

    to be able to edit the code and install:

    pip install -e . 
    

    Carla_0.8.4 fix the collision counting problem and is requred here.

  3. To use, import the gym_carla package in the code, together with gym.

    import gym
    
    import gym_carla
    
    client = gym.make('Carla-v0')
    

    then it can be used by calling functions of seed, reset, step, close, render

  4. To launch Carla, add CarlaUE4 to PATH, then use the script launch_carla.bat or launch_carla.sh to launch Carla.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published