Skip to content

Commit

Permalink
fix: wall height and bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
simojo committed Mar 18, 2024
1 parent 9ca53f9 commit dfbe56d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pcg/src/pcg/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def generate_room(
polygon=wall_polygon,
thickness=wall_thickness,
height=wall_height,
pose=[0, 0, 0, 0, 0, 0],
pose=[0, 0, wall_height / 2, 0, 0, 0],
extrude_boundaries=True,
color="xkcd",
)
Expand Down Expand Up @@ -287,9 +287,9 @@ def customize_world_file(path_to_world: str) -> None:

# append custom physics params and parquet_plane model into xml file
world.append(new_physics_xml)
world.append(scene_el)
world.append(parquet_plane_el)
world.append(sun_el)
world.append(scene_xml)
world.append(parquet_plane_xml)
world.append(sun_xml)

# write modified element tree to original filepath
tree.write(path_to_world)

0 comments on commit dfbe56d

Please sign in to comment.