Coder Social home page Coder Social logo

Comments (2)

patrobic avatar patrobic commented on August 14, 2024

Ali, this is the issue I spoke to you about.
The Parameter classes are still in continual evolution, but with a proper design, it will be fairly easy to add to them as they grow.

Each module has its own Parameter class, all of which are read/write accessible from Menu.cpp as Core::Params _params;.
Within this, you have the following hierarchy of module parameters accessible with these functions.

  • GetCaptureParams();
  • GetVisionParams();
    • GetDepthObstacleParams();
    • GetTrafficLightParams();
    • GetStopSignParams();
  • GetControlParams();

The basic idea is composed of the following steps/implementations.

  • A text file format that stores parameters separated by Module (i.e. 1 header per module, with all its parameters below it in the format parameter_name=123).
  • Class that takes a pointer to Core::Params and populates it with parameters of all submodules.
  • Function that generates a stock params file with default if it doesn't exist, and adds missing/invalid entries to an existing file.
  • Function that parses the text file and writes to the Core::Params class.

Optional:

  • Function that saves the parameters in memory to file (WRITE mode).
  • Function that refreshes the parameters in runtime (if text file was modified by user).

from blindaid.

patrobic avatar patrobic commented on August 14, 2024

Using command line argument parameters instead.

from blindaid.

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.