Skip to content

Commit b450381

Browse files
committed
Use merge instead of update to prevent clobbering parameters
1 parent 0164126 commit b450381

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clearpath_generator_common/clearpath_generator_common/param/manipulators.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ def generate_parameters(self, use_sim_time: bool = False) -> None:
142142
parameters={}
143143
)
144144
update_rate_param_file.read()
145-
updated_parameters.update(update_rate_param_file.parameters)
145+
updated_parameters = merge_dict(
146+
updated_parameters,
147+
update_rate_param_file.parameters)
146148
except Exception as e:
147149
print(f'Unable to get UniversalRobots {arm.ur_type}_'
148150
f'update_rate.yaml parameter file: {e.args[0]}')

0 commit comments

Comments
 (0)