Skip to content

Commit

Permalink
seemingly works?
Browse files Browse the repository at this point in the history
  • Loading branch information
NishanthJKumar committed Aug 17, 2023
1 parent bc920af commit 1fc4364
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 8 additions & 5 deletions predicators/spot_utils/spot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,11 +757,14 @@ def placeOntopController(self, objs: Sequence[Object],
relative_to_default_pose=False,
angle=angle)
# Look down to see if the object landed where we hoped.
self.hand_movement(params,
keep_hand_pose=False,
relative_to_default_pose=False,
open_gripper=False,
angle=(np.cos(np.pi / 4), 0, np.sin(np.pi / 4), 0))
if objs[2].type.name == "bag":
self.hand_movement(params,
keep_hand_pose=False,
relative_to_default_pose=False,
open_gripper=False,
angle=(np.cos(np.pi / 4), 0, np.sin(np.pi / 4), 0))
else:
self.stow_arm()
# Longer sleep necessary to prevent blurry images.
time.sleep(2.0)

Expand Down
2 changes: 2 additions & 0 deletions predicators/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
from predicators.third_party.fast_downward_translator.translate import \
main as downward_translate

from bosdyn.client import math_helpers

if TYPE_CHECKING:
from predicators.envs import BaseEnv

Expand Down

0 comments on commit 1fc4364

Please sign in to comment.