Skip to content

Commit 3523225

Browse files
committed
argument_name --> name, argument_value --> value
1 parent 227140e commit 3523225

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

ur_robot_driver/examples/send_dummy_motion_primitives_ur10e.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@
5353
moveJ_1.joint_positions = [1.57, -1.57, 1.57, -1.57, -1.57, -1.57]
5454
moveJ_1.blend_radius = 0.1
5555
moveJ_1.additional_arguments = [
56-
MotionArgument(argument_name="velocity", argument_value=joint_velocity),
57-
MotionArgument(argument_name="acceleration", argument_value=joint_acceleration),
58-
MotionArgument(argument_name="move_time", argument_value=move_time),
56+
MotionArgument(name="velocity", value=joint_velocity),
57+
MotionArgument(name="acceleration", value=joint_acceleration),
58+
MotionArgument(name="move_time", value=move_time),
5959
]
6060
# Linear movement down
6161
moveL_1 = MotionPrimitive()
6262
moveL_1.type = MotionPrimitive.LINEAR_CARTESIAN
6363
moveL_1.blend_radius = 0.05
6464
moveL_1.additional_arguments = [
65-
MotionArgument(argument_name="velocity", argument_value=cart_velocity),
66-
MotionArgument(argument_name="acceleration", argument_value=cart_acceleration),
65+
MotionArgument(name="velocity", value=cart_velocity),
66+
MotionArgument(name="acceleration", value=cart_acceleration),
6767
]
6868
pose_L1 = PoseStamped()
6969
pose_L1.pose.position.x = 0.174
@@ -129,63 +129,63 @@
129129
moveJ_eval_0.joint_positions = [1.57, -1.57, 1.57, -1.57, -1.57, -1.57]
130130
moveJ_eval_0.blend_radius = eval_blend_radius
131131
moveJ_eval_0.additional_arguments = [
132-
MotionArgument(argument_name="move_time", argument_value=eval_move_time),
132+
MotionArgument(name="move_time", value=eval_move_time),
133133
]
134134
moveJ_eval_1 = MotionPrimitive()
135135
moveJ_eval_1.type = MotionPrimitive.LINEAR_JOINT
136136
moveJ_eval_1.joint_positions = [1.57, -1.1, 1.0, -1.57, -1.57, -1.57]
137137
moveJ_eval_1.blend_radius = eval_blend_radius
138138
moveJ_eval_1.additional_arguments = [
139-
MotionArgument(argument_name="move_time", argument_value=eval_move_time),
139+
MotionArgument(name="move_time", value=eval_move_time),
140140
]
141141
moveJ_eval_2 = MotionPrimitive()
142142
moveJ_eval_2.type = MotionPrimitive.LINEAR_JOINT
143143
moveJ_eval_2.joint_positions = [2.0, -0.9, 0.7, -1.57, -1.57, -1.57]
144144
moveJ_eval_2.blend_radius = eval_blend_radius
145145
moveJ_eval_2.additional_arguments = [
146-
MotionArgument(argument_name="move_time", argument_value=eval_move_time),
146+
MotionArgument(name="move_time", value=eval_move_time),
147147
]
148148
moveJ_eval_3 = MotionPrimitive()
149149
moveJ_eval_3.type = MotionPrimitive.LINEAR_JOINT
150150
moveJ_eval_3.joint_positions = [2.4, -1.57, 1.57, -1.57, -1.57, -1.57]
151151
moveJ_eval_3.blend_radius = eval_blend_radius
152152
moveJ_eval_3.additional_arguments = [
153-
MotionArgument(argument_name="move_time", argument_value=eval_move_time),
153+
MotionArgument(name="move_time", value=eval_move_time),
154154
]
155155
moveJ_eval_4 = MotionPrimitive()
156156
moveJ_eval_4.type = MotionPrimitive.LINEAR_JOINT
157157
moveJ_eval_4.joint_positions = [1.57, -1.57, 1.57, -1.57, -1.57, -1.57]
158158
moveJ_eval_4.blend_radius = eval_blend_radius
159159
moveJ_eval_4.additional_arguments = [
160-
MotionArgument(argument_name="move_time", argument_value=eval_move_time),
160+
MotionArgument(name="move_time", value=eval_move_time),
161161
]
162162
moveJ_eval_5 = MotionPrimitive()
163163
moveJ_eval_5.type = MotionPrimitive.LINEAR_JOINT
164164
moveJ_eval_5.joint_positions = [1.57, -1.1, 1.0, -1.57, -1.57, -1.57]
165165
moveJ_eval_5.blend_radius = eval_blend_radius
166166
moveJ_eval_5.additional_arguments = [
167-
MotionArgument(argument_name="move_time", argument_value=eval_move_time),
167+
MotionArgument(name="move_time", value=eval_move_time),
168168
]
169169
moveJ_eval_6 = MotionPrimitive()
170170
moveJ_eval_6.type = MotionPrimitive.LINEAR_JOINT
171171
moveJ_eval_6.joint_positions = [1.1, -0.9, 0.7, -1.57, -1.57, -1.57]
172172
moveJ_eval_6.blend_radius = eval_blend_radius
173173
moveJ_eval_6.additional_arguments = [
174-
MotionArgument(argument_name="move_time", argument_value=eval_move_time),
174+
MotionArgument(name="move_time", value=eval_move_time),
175175
]
176176
moveJ_eval_7 = MotionPrimitive()
177177
moveJ_eval_7.type = MotionPrimitive.LINEAR_JOINT
178178
moveJ_eval_7.joint_positions = [0.7, -1.57, 1.57, -1.57, -1.57, -1.57]
179179
moveJ_eval_7.blend_radius = eval_blend_radius
180180
moveJ_eval_7.additional_arguments = [
181-
MotionArgument(argument_name="move_time", argument_value=eval_move_time),
181+
MotionArgument(name="move_time", value=eval_move_time),
182182
]
183183
moveJ_eval_8 = MotionPrimitive()
184184
moveJ_eval_8.type = MotionPrimitive.LINEAR_JOINT
185185
moveJ_eval_8.joint_positions = [1.57, -1.57, 1.57, -1.57, -1.57, -1.57]
186186
moveJ_eval_8.blend_radius = eval_blend_radius
187187
moveJ_eval_8.additional_arguments = [
188-
MotionArgument(argument_name="move_time", argument_value=eval_move_time),
188+
MotionArgument(name="move_time", value=eval_move_time),
189189
]
190190

191191

0 commit comments

Comments
 (0)