From 74d3db6bccdf1640b72b5cd12db93ad99a062d8f Mon Sep 17 00:00:00 2001 From: arth-shukla <44527268+arth-shukla@users.noreply.github.com> Date: Thu, 25 Jan 2024 02:09:16 -0800 Subject: [PATCH] Trivial: table scene builder height and width --- mani_skill2/utils/scene_builder/table/table_scene_builder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mani_skill2/utils/scene_builder/table/table_scene_builder.py b/mani_skill2/utils/scene_builder/table/table_scene_builder.py index c88da9e8f..5a53cc9d4 100644 --- a/mani_skill2/utils/scene_builder/table/table_scene_builder.py +++ b/mani_skill2/utils/scene_builder/table/table_scene_builder.py @@ -37,8 +37,12 @@ def build(self): .find_component_by_type(sapien.render.RenderBodyComponent) .compute_global_aabb_tight() ) + self.table_width = aabb[1, 0] - aabb[0, 0] + self.table_length = aabb[1, 1] - aabb[0, 1] self.table_height = aabb[1, 2] - aabb[0, 2] + print(self.table_width, self.table_length, self.table_height) + self.ground = build_tesselated_square_floor( self.scene, altitude=-self.table_height )