Skip to content

Commit

Permalink
remove outdated use of Simulator based bb drawing API (#2106)
Browse files Browse the repository at this point in the history
  • Loading branch information
aclegg3 authored Nov 13, 2024
1 parent 2c164c3 commit f411876
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions habitat-lab/habitat/tasks/rearrange/rearrange_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,10 +749,6 @@ def _create_obj_viz(self):
rom = self.get_rigid_object_manager()
obj_attr_mgr = self.get_object_template_manager()

# Enable BB render for the debug render call.
for obj_id in self._draw_bb_objs:
self.set_object_bb_draw(True, obj_id)

if self._debug_render_goal:
for target_handle, transform in self._targets.items():
# Visualize the goal of the object
Expand All @@ -767,7 +763,6 @@ def _create_obj_viz(self):
ro = rom.add_object_by_template_handle(
list(matching_templates.keys())[0]
)
self.set_object_bb_draw(True, ro.object_id)
ro.transformation = transform
make_render_only(ro, self)
ro_global_bb = habitat_sim.geo.get_transformed_bb(
Expand Down Expand Up @@ -913,10 +908,6 @@ def step(self, action: Union[str, int]) -> Observations:
rom = self.get_rigid_object_manager()
self._try_acquire_context()

# Disable BB drawing for observation render
for obj_id in self._draw_bb_objs:
self.set_object_bb_draw(False, obj_id)

# Remove viz objects
for obj in self._viz_objs.values():
if obj is not None and rom.get_library_has_id(obj.object_id):
Expand Down

0 comments on commit f411876

Please sign in to comment.