GithubHelp home page GithubHelp logo

Comments (6)

HassamSheikh avatar HassamSheikh commented on August 27, 2024

https://github.com/shariqiqbal2810/multiagent-particle-envs

Shariq has added walls in his version of MPE.

from multiagent-particle-envs.

mkouzehgar avatar mkouzehgar commented on August 27, 2024

in environment.py there seem to be some chances to define range (low/high), please check.
This is for action_spaces (forces)

u_action_space = spaces.Box(low=-agent.u_range, high=+agent.u_range, shape=(world.dim_p,), dtype=np.float32)

Furthurmore, for the environment shown while rendering, the below exists in rendering.py:

def set_bounds(self, left, right, bottom, top):

which is used in environment.py as below:

self.viewers[i].set_bounds(pos[0]-cam_range,pos[0]+cam_range,pos[1]-cam_range,pos[1]+cam_range)

but for setting a real boundary that confines agents during simulation, you should manipulate the done value returned by step function. Please refer to issue#10

We are trying to add boundaries to the environment, but when we check the code of the entity in core.py, there is only the size property, from our understanding, we can only create circle object. Are there any solutions to create other shape?

from multiagent-particle-envs.

emanuelepesce avatar emanuelepesce commented on August 27, 2024

https://github.com/shariqiqbal2810/multiagent-particle-envs

Shariq has added walls in his version of MPE.

That's definitely great. Is there any way to make the walls visible to the agents, rather than being invisible entities that cannot be crossed?

from multiagent-particle-envs.

Kimonili avatar Kimonili commented on August 27, 2024

@emanuelepesce did you manage to place the wall objects around the rendering window in order to limit the agents from running to infinity?

from multiagent-particle-envs.

emanuelepesce avatar emanuelepesce commented on August 27, 2024

@Kimonili to limit the agents from running to infinity you can use the wall class defined by Shariq (multiagent) as suggested by @HassamSheikh .

from multiagent-particle-envs.

HassamSheikh avatar HassamSheikh commented on August 27, 2024

from multiagent-particle-envs.

Related Issues (20)

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.