Skip to content

Commit

Permalink
update sampler for hand view
Browse files Browse the repository at this point in the history
  • Loading branch information
lf-zhao committed Nov 4, 2024
1 parent 12c650c commit bc2fff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions predicators/ground_truth_models/spot_env/nsrts.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def _move_to_hand_view_object_from_top_sampler(state: State, goal: Set[GroundAto
obj_to_nav_to = objs[1]

# TODO NOTE: Ensure the angle is set to view from the top
# min_angle, max_angle = _get_approach_angle_bounds(obj_to_nav_to, state)
min_angle, max_angle = _get_approach_angle_bounds(obj_to_nav_to, state)
# min_angle, max_angle = 0.8 * np.pi, np.pi
min_angle, max_angle = -0.2 * np.pi, 0.2 * np.pi
# min_angle, max_angle = -0.2 * np.pi, 0.2 * np.pi

return _move_offset_sampler(state, robot_obj, obj_to_nav_to, rng, min_dist,
max_dist, min_angle, max_angle)
Expand Down

0 comments on commit bc2fff5

Please sign in to comment.