Skip to content

Commit

Permalink
revert spot_env
Browse files Browse the repository at this point in the history
  • Loading branch information
NishanthJKumar committed Nov 14, 2023
1 parent cebc8b0 commit 4eebadf
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions predicators/envs/spot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import matplotlib
import numpy as np
import scipy
from bosdyn.client import create_standard_sdk, math_helpers
from bosdyn.client.lease import LeaseClient, LeaseKeepAlive
from bosdyn.client.sdk import Robot
Expand Down Expand Up @@ -178,19 +177,6 @@ def __init__(self, use_gui: bool = True) -> None:
# Create constant objects.
self._spot_object = Object("robot", _robot_type)

# DEBUGGING!
metadata = load_spot_metadata()
allowed_regions = metadata.get("allowed-regions", {})
convex_hulls = []
for region_pts in allowed_regions.values():
dealunay_hull = scipy.spatial.Delaunay(np.array(region_pts))
convex_hulls.append(dealunay_hull)
# We can simply test if a point is inside the hull or not with
# hull.find_simplex(np.array(point)) >= 0
# Next step: put this in an integration test!
import ipdb
ipdb.set_trace()

@property
def strips_operators(self) -> Set[STRIPSOperator]:
"""Expose the STRIPSOperators for use by oracles."""
Expand Down

0 comments on commit 4eebadf

Please sign in to comment.