Conditional pose 'p' prefix in movexs.
This commit is contained in:
parent
6e2aa2939e
commit
a8515fe713
@ -401,10 +401,13 @@ class URRobot(object):
|
|||||||
raise RobotException(
|
raise RobotException(
|
||||||
'movexs: "radius" must be a number or a list '
|
'movexs: "radius" must be a number or a list '
|
||||||
+ 'of numbers the same length as "pose_list"!')
|
+ 'of numbers the same length as "pose_list"!')
|
||||||
|
prefix = ''
|
||||||
|
if command in ['movel', 'movec']:
|
||||||
|
prefix = 'p'
|
||||||
for idx, pose in enumerate(pose_list):
|
for idx, pose in enumerate(pose_list):
|
||||||
prog += self._format_move(command, pose, acc,
|
prog += self._format_move(command, pose, acc,
|
||||||
vel[idx], radius[idx],
|
vel[idx], radius[idx],
|
||||||
prefix="p") + "\n"
|
prefix=prefix) + "\n"
|
||||||
prog += end
|
prog += end
|
||||||
self.send_program(prog)
|
self.send_program(prog)
|
||||||
if wait:
|
if wait:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user