GithubHelp home page GithubHelp logo

Comments (3)

gmargo11 avatar gmargo11 commented on June 12, 2024

Hi @thvhauwe ,

The pretrained policy is only trained with stepping frequency range 2.0 to 4.0, which is specified by the parameters limit_gait_frequency and gait_frequency_cmd_range in https://github.com/Improbable-AI/walk-these-ways/blob/master/scripts/train.py#L157. Training a new policy with both these adjusted, for example to [1.5, 4.0], should work.

You can see how the gait frequency command is converted into a contact target here: https://github.com/Improbable-AI/walk-these-ways/blob/master/go1_gym/envs/base/legged_robot.py#L826

To clarify, is it the case that lower frequency commands are never being sampled when you train, despite changing the Cfg? Or that lower frequencies are being sampled, but the robot is not learning to execute them?

-Gabe

from walk-these-ways.

thvhauwe avatar thvhauwe commented on June 12, 2024

Thnx for replying!

Playing around with the play.py script showed the new policy learned to walk with lower frequency (albeit with some jigging
behaviour of swing legs, likely due to untuned rewards).

The remaining question is how to port this to the real robot. What line has to be changed to change the cmd frequency there?

from walk-these-ways.

gmargo11 avatar gmargo11 commented on June 12, 2024

During deployment, the command frequency is computed in go1_gym_deploy/utils/cheetah_state_estimator.py:

Modifying Line 174: cmd_freq = 3.0 will change the frequency in the default mode

Modifying Lines 183-186 will adjust the range of frequencies you can command with the joystick:

if MODE_RIGHT == "step_frequency":
            min_freq = 2.0
            max_freq = 4.0
            cmd_freq = (1 + self.right_stick[1]) / 2 * (max_freq - min_freq) + min_freq

Be sure to use the top right trigger to toggle into mode E (step frequency).

from walk-these-ways.

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.