GithubHelp home page GithubHelp logo

Comments (4)

Robokan avatar Robokan commented on June 12, 2024

Have you looked at cheetah_state_estimator under go1_gym_deploy/utils? This is what will actually run on the go1 robot.

from walk-these-ways.

mertgungor avatar mertgungor commented on June 12, 2024

Yes, I have looked at this file, but I do not see where linear velocity is updated. Moreover, I do not see any NN for training an estimator or the use of a pre-trained model. As far as I understand from the papers I read, there needs to be a 2 layered MLP for state estimation. Am I missing something?

from walk-these-ways.

Qianzhong-Chen avatar Qianzhong-Chen commented on June 12, 2024

I have the same confusion here, it seems that you use this function to get linear velocity,

def get_body_linear_vel(self):
self.body_lin_vel = np.dot(self.R.T, self.world_lin_vel)
return self.body_lin_vel

but how can I get the world_lin_vel?

from walk-these-ways.

gmargo11 avatar gmargo11 commented on June 12, 2024

Hi @mertgungor @Qianzhong-Chen ,

The default policy I released differs from the paper here. To estimate the velocity, you'll need to train a new policy with the following flag turned on in train.py:

Cfg.env.priv_observe_body_velocity = True

Setting this flag to True during training will make the new adaptation module predict the velocity from the state history. First, the privileged observation is constructed here where you can see the priv_observe_body_velocity flag will be considered to include/exclude the body velocity. Then, the gradient step for the adaptation module is defined here. This step trains the adaptation module to predict the privileged observation using supervised learning. Finally, you can see here how the latent is predicted by the adaptation module and concatenated to the policy observation in each forward pass.

-Gabe

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.