def _set_params(target, param, values, dof):
if not isinstance(values, (list, tuple, np.ndarray)):<EOL><INDENT>values = [values] * dof<EOL><DEDENT>assert dof == len(values)<EOL>for s, value in zip(['<STR_LIT>', '<STR_LIT:2>', '<STR_LIT:3>'][:dof], values):<EOL><INDENT>target.setParam(getattr(ode, '<STR_LIT>'.format(param, s)), value)<EOL><DEDENT>
Set the given param for each of the DOFs for a joint.