Giter Site home page Giter Site logo

Comments (5)

simbaforrest avatar simbaforrest commented on July 16, 2024

Thanks for reporting this. @jshen04 can you take a look (and update the repo accordingly)?

from deepparticlerobot.

jshen04 avatar jshen04 commented on July 16, 2024

@anetnna It appears that our code was using an older version of pymunk, but hopefully it is resolved now. Please let me know if you have any other issues.

from deepparticlerobot.

anetnna avatar anetnna commented on July 16, 2024

@jshen04 Many thanks! The gui is displaying now. I have switched all packages into the version in requirements.txt. Namely,

matplotlib                 3.4.2
numpy                      1.20.3
pygame                     2.0.1
pymunk                     5.5.0
gym                        0.21.0

However, the display seems to have some problems. I could barely see anything in the gui. Is it normal?
gui_DPR

from deepparticlerobot.

jshen04 avatar jshen04 commented on July 16, 2024

@anetnna Most likely the particle robots are out of the dimensions of the visualizer. Note the visualizer as it is only displays the first quadrant (default width=600, height=500).

When initializing the environment, with the default arguments, the starting location of the particle robots is randomly generated. You are able to fix the starting position by changing the arguments.

fixedStart=False, fixedGoal=True,
fixedStartCoords=None, fixedGoalCoords=(0, 0),
polarStartCoords=True, polarGoalCoords=False,
transformRectStart=(0, 0), transformRectGoal=(0, 0),
xLower=-1000, xUpper=1000, yLower=-1000, yUpper=1000,
radiusLower=450, radiusUpper=550, angleLower=0, angleUpper=2 * math.pi,

Set fixedStart to True, and set polarStartCoords to True if you wish to use polar coordinates and False if you wish to use cartesian coordinates. Then set fixedStartCoords to your desired starting coordinates (in the first quadrant). The particle robots should be visible under this setup.

During training we just wish to randomly initialize the starting position.

from deepparticlerobot.

anetnna avatar anetnna commented on July 16, 2024

@jshen04 I followed your instruction and saw the output! Thanks a lot!
running_gui

from deepparticlerobot.

Related Issues (1)

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.