Comments (3)
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.
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.
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)
- Generating your own actuator network training data HOT 1
- Is there a specific reason not to run controller on pi instead of Nano? HOT 1
- How to run a newly trained network on the Go1? HOT 3
- Output test.py HOT 1
- How to get joint torque values from StateEstimator? Maybe tau_est? HOT 6
- How to make it automatically run the repo's NN rather than the original on boot? HOT 3
- How to deploy this code on custom model? HOT 1
- How to create data to retrain the actuator net? HOT 1
- Is Kp = 20 too soft? HOT 11
- Velocity estimation HOT 4
- decimation of 4 seems to create some instability have you been successful with lower values like 2? HOT 9
- Can't find docker image after sudo ../installer/install_deployment_code.sh HOT 1
- When deployed, Go1 still moves despite neutral commands are given HOT 1
- When recording data using L2 button, generated data does not contain "tau_est" HOT 4
- Code not running on Untree A1 robot HOT 9
- I have confusion about foot clearance. HOT 3
- open /var/lib/docker/tmp/docker-import-221834566/repositories: no such file or directory HOT 2
- ./lcm_position: error while loading shared libraries: liblcm.so.1: cannot open shared object file: No such file or directory HOT 4
- ValueError invalid values HOT 1
- When we change some terrain in this situation why robots are start at sky? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from walk-these-ways.