Giter VIP home page Giter VIP logo

Comments (4)

mmetcalfe avatar mmetcalfe commented on June 23, 2024

Was looking at this last night.
Rather than the time variables + interpolation causing issues (tb, te, t), it turns out that 'length' was incorrect. KickPlayer's getLength method is returning something like 7e+33.
I think there's a problem with the loading of the phases (before WalkingEngineKick::init is called).

(although WalkingEngineKick::init is called by KickPlayer::init, which is called by WalkingEngine::updateKickPlayer() - and I may have forgotten to make some changes to that method that were made to Jake's code on Tuesday)

from robocup.

Jade-Fountain avatar Jade-Fountain commented on June 23, 2024

I had a quick look and discovered that in the config files two parameters were commented out (using '#'), so I uncommented them. I can't quite see what is going wrong with the length though.

from robocup.

mmetcalfe avatar mmetcalfe commented on June 23, 2024

Wrote a method to more clearly print the tracks + phases in a WalkingEngineKick on Wednesday.
Used it yesterday to have a look at what the kicks looked like right after loading them.
There were a bunch of values that looked uninitialized, all of which were Value::value. Adding an initializer to Value's constructor that set it's value to 0 fixed this, and changed the robots behaviour (it sort of forces both of its legs backwards simultaneously, or just straightens out and stops walking, just moving it's head).
WalkingEngineKick::firstValue was one of the Values that was uninitialized, but when i had a look for where it's used, i only found the places where it's created and deleted. It appears to be entirely unused (even in the original B-Human codebase).


Note: the b-human code also doesn't initialize Value::value in Value's constructor.
Note, also: I couldn't find any usages of Value::value at all when i had a quick look. There must be some i missed, though?

from robocup.

josiahw avatar josiahw commented on June 23, 2024

Pushing this back to 2014 so we can have working kicks now.

from robocup.

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.