Giter VIP home page Giter VIP logo

Comments (2)

sibocw avatar sibocw commented on May 20, 2024 1

As we discussed today:

  • Let's have a Simulation class which is the main MDP environment (ie. implements gym.Env)
  • Simulation contains an Arena object and one or more NeuroMechFly instances
  • The dm_control.mjcf.physics.Physics instance will belong to Simulation instead of NeuroMechFly

The advantages are:

  • If we need to modify the arena (eg. change the object position in an arena with a moving object), we don't need to do it strangely by accessing the arena through the fly.
  • A cleaner interface for simulations with multiple flies (useful for social behaviors).

Questions:

  • Do the NeuroMechFly and Arena need an inverse link to the Simulation that they belong to? I don't like this because it makes the UML diagram messy and recurrent, but it might be necessary if we want to have an interface for the user to do things with the arena or the flies that would require access to the Physics instance.

@tkclam: Look at Barbara and Florian's semester project, they've done something like this already.

I don't think this is urgent but I do think it's better to do this now than later, as this is a major API change. If maintaining backward compatibility is too complicated, we can also forget about it and make a non-backward-compatible version as the paper is updated for revision. I think it's a reasonable thing to do.

from flygym.

sibocw avatar sibocw commented on May 20, 2024

This is being implemented in https://github.com/NeLy-EPFL/flygym/tree/new-api

from flygym.

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.