Skip to content

Commit 5f0d402

Browse files
committed
Refactor jug grasping logic in PyBulletGrowGroundTruthOptionFactory to use dedicated method
1 parent f45d2fd commit 5f0d402

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

predicators/ground_truth_models/grow/options.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,8 @@ def _get_jug_pose(
276276
) -> Tuple[float, float, float, float]:
277277
del params, config
278278
_, jug = objects
279-
gz = env_cls.table_height + env_cls.jug_handle_height
280-
return (state.get(jug,
281-
"x"), state.get(jug,
282-
"y"), gz, state.get(jug, "rot"))
279+
hx, hy, hz = PyBulletCoffeeEnv._get_jug_handle_grasp(state, jug)
280+
return (hx, hy, hz, state.get(jug, "rot"))
283281

284282
PickJug = create_pick_skill(
285283
name="PickJug",

0 commit comments

Comments
 (0)