-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MJX colab with hfield example.
PiperOrigin-RevId: 641061897 Change-Id: I2d840aa2e696a73d31522b8a94c9c4e0c58d1218
- Loading branch information
1 parent
3ff2857
commit 24e4502
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,39 @@ | ||
<mujoco model="barkour vB scene"> | ||
<include file="barkour_vb_mjx.xml"/> | ||
|
||
<statistic center="0 0 0.1" extent="0.8"/> | ||
|
||
<visual> | ||
<headlight diffuse="0.6 0.6 0.6" ambient="0.3 0.3 0.3" specular="0 0 0"/> | ||
<rgba haze="0.15 0.25 0.35 1"/> | ||
<global azimuth="120" elevation="-20"/> | ||
</visual> | ||
|
||
<asset> | ||
<texture type="skybox" builtin="gradient" rgb1="0.3 0.5 0.7" rgb2="0 0 0" width="512" height="3072"/> | ||
<texture type="2d" name="groundplane" builtin="checker" mark="edge" rgb1="0.2 0.3 0.4" rgb2="0.1 0.2 0.3" | ||
markrgb="0.8 0.8 0.8" width="300" height="300"/> | ||
<material name="groundplane" texture="groundplane" texuniform="true" texrepeat="5 5" reflectance="0.2"/> | ||
<hfield name="hfield" file="assets/hfield.png" size="10 10 .05 0.1"/> | ||
</asset> | ||
|
||
<worldbody> | ||
<light pos="0 0 1.5" dir="0 0 -1" directional="true"/> | ||
<camera name="default" pos="0.846 -1.465 0.916" xyaxes="0.866 0.500 0.000 -0.171 0.296 0.940"/> | ||
<geom name="floor" type="hfield" hfield="hfield" conaffinity="1" material="groundplane"/> | ||
</worldbody> | ||
|
||
<keyframe> | ||
<key name="home" | ||
qpos="0 0 0.3 | ||
1 0 0 0 | ||
0.0 0.5 1.0 | ||
0.0 0.5 1.0 | ||
0.0 0.5 1.0 | ||
0.0 0.5 1.0" | ||
ctrl="0.0 0.5 1.0 | ||
0.0 0.5 1.0 | ||
0.0 0.5 1.0 | ||
0.0 0.5 1.0"/> | ||
</keyframe> | ||
</mujoco> |