Coder Social home page Coder Social logo

Comments (5)

pattacini avatar pattacini commented on July 19, 2024 2

This bug has been fixed via robotology/icub-tests#60.

We demonstrated that the approach of using IRemoteVariables is viable.
We may take this into consideration for a possible future overhaul of the icub-tests in this sense.

cc @davidetome @traversaro @gsisinna @Uboldi80

from robots-configuration.

pattacini avatar pattacini commented on July 19, 2024 1

Thanks @violadelbono for the thorough analysis 🎉

I can see two problems:

  • it's fundamentally a mistake that the test is taking the parameters from its own ini files instead of getting them from the official robot configuration, either by reading those files straight away or making some calls to the API. We really need to stick to the principle of the single source of truth.
  • we don't have to adjust Gearbox and matrixJ2M in order to get the expected results; rather, we need to fix them up in order to make them correspond to their physical meaning. The fact that the test will be successful is only a consequence of such a fix. Gearbox and matrixJ2M do have different meanings indeed although they refer to the same mechanism and do have mutual interplay.

I suggest the option 1 for all the future robots, so I don't have to change the ini files, but I would like some feedback.

We need to fix all the robots that have this problem, past and future, and if this means that we need to touch thousands of conf files, it's the only way to go (we already did this in the past).

We will discuss this further.

from robots-configuration.

violadelbono avatar violadelbono commented on July 19, 2024 1

@pattacini @traversaro I agree with you! Right now it's a bit confusing

from robots-configuration.

traversaro avatar traversaro commented on July 19, 2024 1

We would need to double check the values, but it seems that several related parameters/values are indeed exposed:

from robots-configuration.

pattacini avatar pattacini commented on July 19, 2024

Talking w/ @traversaro, it came out that we could exploit http://www.yarp.it/git-master/classyarp_1_1dev_1_1IRemoteVariables.html to access robot variables.

This way, the test wouldn't have to load the parameters from its own conf files and the single source of truth would be guaranteed.

Example of usage.

from robots-configuration.

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.