Add pre generated terrain scenes
This commit is contained in:
parent
030472693c
commit
8d914aee1d
|
@ -1,5 +1,5 @@
|
||||||
robot: "go2" # Robot name, "go2", "b2", "b2w", "h1"
|
robot: "go2" # Robot name, "go2", "b2", "b2w", "h1"
|
||||||
robot_scene: "scene.xml" # Robot scene
|
robot_scene: "scene_terrain.xml" # Robot scene
|
||||||
|
|
||||||
domain_id: 1 # Domain id
|
domain_id: 1 # Domain id
|
||||||
interface: "lo" # Interface
|
interface: "lo" # Interface
|
||||||
|
|
|
@ -279,15 +279,15 @@ if __name__ == "__main__":
|
||||||
tg.AddSuspendStairs(init_pos=[1.0, 6.0, 0.0], yaw=0.0)
|
tg.AddSuspendStairs(init_pos=[1.0, 6.0, 0.0], yaw=0.0)
|
||||||
|
|
||||||
# Rough ground
|
# Rough ground
|
||||||
tg.AddRoughGround(init_pos=[-1.5, 5.0, 0.0],
|
tg.AddRoughGround(init_pos=[-2.5, 5.0, 0.0],
|
||||||
euler=[0, 0, 0.0],
|
euler=[0, 0, 0.0],
|
||||||
nums=[10, 8])
|
nums=[10, 8])
|
||||||
|
|
||||||
# Perlin heigh field
|
# Perlin heigh field
|
||||||
tg.AddPerlinHeighField(position=[-0.5, 4.0, 0.0], size=[2.0, 1.5])
|
tg.AddPerlinHeighField(position=[-1.5, 4.0, 0.0], size=[2.0, 1.5])
|
||||||
|
|
||||||
# Heigh field from image
|
# Heigh field from image
|
||||||
tg.AddHeighFieldFromImage(position=[-0.5, 2.0, 0.0],
|
tg.AddHeighFieldFromImage(position=[-1.5, 2.0, 0.0],
|
||||||
euler=[0, 0, -1.57],
|
euler=[0, 0, -1.57],
|
||||||
size=[2.0,2.0],
|
size=[2.0,2.0],
|
||||||
input_img="./unitree_robot.jpeg",
|
input_img="./unitree_robot.jpeg",
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue