Giter Club home page Giter Club logo

gym-line-follower's People

Contributors

nplan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gym-line-follower's Issues

Gpu support

does it support cuda and tf-gpu?
and great work by the way

No registered env with id: LineFollower-v0

  1. pip3 install -e gym_line_follower
    I used 'gym-line-follower' instead of 'gym_line_follower' because the folder name is 'gym-line-follower', and the containing folder 'gym_line_follower' doesn't have setup.py

  2. I'm not sure if it matters but I used pip instead of pip3. I only have pip and it corresponds to python3.7

Human render mode

Hi!
Is there any example on how to run the env in render='human' mode?

Thanks!

High speed sim settings

Hi, this looks like a really cool environment. I was planning to use it in some experiments when I noticed that with the default settings it is rather slow. For example the following code runs at about 67 steps (frames) per second:

env = LineFollowerEnv(gui=False, nb_cam_pts=8, max_track_err=0.4, power_limit=0.4, max_time=600, obsv_type="points_latch")

start, steps = time.time(), 0
env.reset()
for ep in range(20):
     for i in range(1000):
         obsv, rew, done, info = env.step((np.random.rand(), np.random.rand()))
         if done:
             print(ep, i)
             steps += i
             break
    env.reset()
env.close()

print("Did {} steps in {:3.1f}s along {} episodes.".format(steps, time.time() - start, ep))
Did 1931 steps in 28.8s along 19 episodes.

Any suggestion which arguments to change for higher fps without messing the simulation? Thank you!

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.