Skip to content

Commit

Permalink
Add last skill execution to _TruncatedSpotObservation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashay-bdai committed Sep 16, 2024
1 parent 37b5245 commit 6e25b72
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions predicators/envs/spot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ class _TruncatedSpotObservation:
executed_skill: Optional[_Option] = None
# Object detections per camera in self.rgbd_images.
object_detections_per_camera: Dict[str, List[Tuple[ObjectDetectionID, SegmentedBoundingBox]]]
# Last skill
executed_skill: Optional[_Option] = None


class _PartialPerceptionState(State):
Expand Down Expand Up @@ -2630,7 +2632,8 @@ def _actively_construct_env_task(self) -> EnvironmentTask:
set(),
self._spot_object,
gripper_open_percentage,
object_detections_per_camera
object_detections_per_camera,
None
)
goal_description = self._generate_goal_description()
task = EnvironmentTask(obs, goal_description)
Expand Down Expand Up @@ -2701,7 +2704,8 @@ def step(self, action: Action) -> Observation:
set(),
self._spot_object,
gripper_open_percentage,
object_detections_per_camera
object_detections_per_camera,
action.get_option()
)
return obs

Expand Down

0 comments on commit 6e25b72

Please sign in to comment.