We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 547591b commit cbf79e3Copy full SHA for cbf79e3
1 file changed
predicators/perception/spot_perceiver.py
@@ -451,8 +451,10 @@ def _create_state(self) -> State:
451
# in planning.
452
assert self._curr_env is not None
453
preds = self._curr_env.predicates
454
- state_copy = percept_state.copy()
455
- state_copy.simulator_state = simulator_state
+ # Create a _PartialPerceptionState before abstracting because some
+ # predicate classifiers (e.g., _surface_wiped_classifier) require it.
456
+ state_copy = _PartialPerceptionState(percept_state.data,
457
+ simulator_state=simulator_state)
458
abstract_state = utils.abstract(state_copy, preds)
459
simulator_state["abstract_state"] = abstract_state
460
print(f"abstract_state: {abstract_state}")
0 commit comments