Skip to content

Commit

Permalink
Remove unnecessary utils
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Oct 18, 2023
1 parent 69a0cf4 commit a59643f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from omnigibson import object_states
from omnigibson.action_primitives.action_primitive_set_base import ActionPrimitiveError, ActionPrimitiveErrorGroup, BaseActionPrimitiveSet
from omnigibson.utils.object_state_utils import sample_cuboid_for_predicate
from omnigibson.object_states.utils import get_center_extent
from omnigibson.objects.object_base import BaseObject
from omnigibson.robots import BaseRobot
from omnigibson.tasks.behavior_task import BehaviorTask
Expand Down Expand Up @@ -1713,7 +1712,7 @@ def _sample_position_on_aabb_face(target_obj):
Returns:
3-array: (x,y,z) Position in the world frame
"""
aabb_center, aabb_extent = get_center_extent(target_obj.states)
aabb_center, aabb_extent = target_obj.aabb_center, target_obj.aabb_extent
# We want to sample only from the side-facing faces.
face_normal_axis = random.choice([0, 1])
face_normal_direction = random.choice([-1, 1])
Expand Down
16 changes: 0 additions & 16 deletions omnigibson/object_states/utils.py

This file was deleted.

0 comments on commit a59643f

Please sign in to comment.