Skip to content

Commit c28f20c

Browse files
committed
Fix: UR Parameter Generation (#277)
Use merge instead of update to prevent clobbering parameters
1 parent 289d2d3 commit c28f20c

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
@@ -131,7 +131,9 @@ def generate_parameters(self, use_sim_time: bool = False) -> None:
131131
parameters={}
132132
)
133133
update_rate_param_file.read()
134-
updated_parameters.update(update_rate_param_file.parameters)
134+
updated_parameters = merge_dict(
135+
updated_parameters,
136+
update_rate_param_file.parameters)
135137
except Exception as e:
136138
print(f'Unable to get UniversalRobots {arm.ur_type}_'
137139
f'update_rate.yaml parameter file: {e.args[0]}')

0 commit comments

Comments
 (0)