forked from robfiras/loco-mujoco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into four_ages_fix
- Loading branch information
Showing
97 changed files
with
1,027 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Unitree G1 | ||
======================================================= | ||
|
||
.. image:: https://github.com/robfiras/loco-mujoco/assets/69359729/be7c3b29-03db-49c2-8e27-527562218f74 | ||
:width: 49% | ||
.. image:: https://github.com/robfiras/loco-mujoco/assets/69359729/23cf5988-7326-453e-af24-0f0adc255c9c | ||
:width: 49% | ||
|
||
.. automodule:: loco_mujoco.environments.humanoids.unitreeG1 | ||
:members: | ||
:undoc-members: | ||
:private-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import numpy as np | ||
|
||
from loco_mujoco import LocoEnv | ||
|
||
|
||
def experiment(seed=0): | ||
|
||
np.random.seed(seed) | ||
|
||
mdp = LocoEnv.make("UnitreeG1.run") | ||
|
||
mdp.play_trajectory_from_velocity(n_episodes=3, n_steps_per_episode=500) | ||
|
||
|
||
if __name__ == '__main__': | ||
experiment() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import numpy as np | ||
from loco_mujoco import LocoEnv | ||
|
||
# create the environment and task | ||
env = LocoEnv.make("UnitreeG1.walk") | ||
|
||
# get the dataset for the chosen environment and task | ||
expert_data = env.create_dataset() | ||
|
||
action_dim = env.info.action_space.shape[0] | ||
|
||
env.reset() | ||
env.render() | ||
absorbing = False | ||
i = 0 | ||
|
||
while True: | ||
if i == 1000 or absorbing: | ||
env.reset() | ||
i = 0 | ||
action = np.random.randn(action_dim) | ||
nstate, reward, absorbing, info = env.step(action) | ||
|
||
env.render() | ||
i += 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = '0.2.2' | ||
__version__ = '0.3.0' | ||
|
||
try: | ||
|
||
|
Binary file added
BIN
+259 KB
loco_mujoco/datasets/humanoids/real/mini_datasets/02-constspeed_UnitreeG1.npz
Binary file not shown.
Binary file added
BIN
+259 KB
loco_mujoco/datasets/humanoids/real/mini_datasets/05-run_UnitreeG1.npz
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.