Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lf-zhao committed May 19, 2024
1 parent 0e0d6cf commit 13f21ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions predicators/envs/spot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,8 +1202,7 @@ def _on_classifier(state: State, objects: Sequence[Object]) -> bool:
"VLM predicate classifier should be evaluated in batch!")

# Check that the bottom of the object is close to the top of the surface.
expect = state.get(obj_surface,
"z") + state.get(obj_surface, "height") / 2
expect = state.get(obj_surface, "z") + state.get(obj_surface, "height") / 2
actual = state.get(obj_on, "z") - state.get(obj_on, "height") / 2
classification_val = abs(actual - expect) < _ONTOP_Z_THRESHOLD

Expand Down

0 comments on commit 13f21ce

Please sign in to comment.