Skip to content

Commit

Permalink
update refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhiram824 committed Nov 7, 2024
1 parent 2920183 commit 46c34b2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ def refactor_composite_controller_config(controller_config, robot_type, arms):
else:
new_controller_config = {}
new_controller_config["type"] = "BASIC"
new_controller_config["body_parts"] = {}
new_controller_config["body_parts_controller_configs"] = {}

for arm in arms:
new_controller_config["body_parts"][arm] = copy.deepcopy(controller_config)
new_controller_config["body_parts"][arm]["gripper"] = {"type": "GRIP"}
new_controller_config["body_parts_controller_configs"][arm] = copy.deepcopy(controller_config)
new_controller_config["body_parts_controller_configs"][arm]["gripper"] = {"type": "GRIP"}
return new_controller_config


Expand Down

0 comments on commit 46c34b2

Please sign in to comment.