GithubHelp home page GithubHelp logo

App.h Private Members about fpsci HOT 6 CLOSED

nvlabs avatar nvlabs commented on July 28, 2024
App.h Private Members

from fpsci.

Comments (6)

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

The variable m_targetDistance creates some issues here, since it should likely be moved to Experiment.h but is used in the JumpingEntity::create() call in App.cpp.

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

There are a number of variables in Experiment.h that can also be removed/protected. These include:

  • m_app (move to private)
  • mResultFileName (remove)
  • m_lastMotionChangeAt (remove, doesn't seem to be used)

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

A recent commit fixes most of these issues, but leaves behind the targetDistance as a public field to the App so we can keep the JumpingEntity::create() in the same place and w/ the same signature.

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

On targetDistance here, we should think carefully about how we want to deal with this parameter. If we are passing scene control to the developer via a config file, perhaps we want to include this in a config as well. Currently the call chain for producing targets is a bit complicated, the Experiment calls the App's spawn[X]Target() method using parameters it has been passed from the PsychHelper's Param structure, which is created from the Experiment's config.

I may create a separate issue or link this to issue #11 in an attempt to better understand where the "right" place to spawn targets is. With our new structure the App doesn't necessarily seem like it should control much about spawned target location.

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

targetDistance was moved out of App.h as of a recent commit. By moving this value into the private member Experiment::m_targetDistance we have paved the way for inclusion of this value in the experiment config.

If we choose to move forward with adding the true (i.e. not projected) target distance to the experiment config we should think about what the right level at which to do this is (i.e. target parameter or high-level parameter). Since the scene is specified at the high level, I assume this would make sense (keeps target parameters modular from scene controls).

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

A recent commit cleans up the last few commented out/unused variables from the initial commit. Closing this issue in favor of moving all discussion regarding whether the app or experiment should own spawning targets to issue #11.

from fpsci.

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.