From 982e9d59f7a1e72e4337c0ff1426b1b65a4d010c Mon Sep 17 00:00:00 2001 From: Peter van Dooren Date: Tue, 1 Aug 2023 20:28:31 +0200 Subject: [PATCH] fix deepcopy error --- .../src/challenge_serve_breakfast/tuning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenge_serve_breakfast/src/challenge_serve_breakfast/tuning.py b/challenge_serve_breakfast/src/challenge_serve_breakfast/tuning.py index 22bef1cb9..a51d393d1 100644 --- a/challenge_serve_breakfast/src/challenge_serve_breakfast/tuning.py +++ b/challenge_serve_breakfast/src/challenge_serve_breakfast/tuning.py @@ -69,7 +69,7 @@ def item_vector_to_item_frame(item_vector): def get_item_place_pose(item_name): item_vector = ITEM_VECTOR_DICT[item_name] - item_frame = BREAKFAST_POSE + item_frame = copy.deepcopy(BREAKFAST_POSE) item_frame.p = BREAKFAST_POSE * item_vector item_place_offset = ITEM_OFFSET_DICT[item_name] @@ -81,7 +81,7 @@ def get_item_place_pose(item_name): def get_item_pour_poses(item_name): item_vector = ITEM_VECTOR_DICT[item_name] - item_frame = BREAKFAST_POSE + item_frame = copy.deepcopy(BREAKFAST_POSE) item_frame.p = BREAKFAST_POSE * item_vector item_pour_offsets = POUR_OFFSET_DICT[item_name]