Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
pluto
Commits
1aeba1d5
Commit
1aeba1d5
authored
May 11, 2020
by
Anders Blomdell
Browse files
Add rule for empty AUTO programs
parent
6eb43621
Changes
1
Show whitespace changes
Inline
Side-by-side
robotlab_safety/pluto_auto.py
View file @
1aeba1d5
...
@@ -31,7 +31,9 @@ class PlutoVariables:
...
@@ -31,7 +31,9 @@ class PlutoVariables:
rh
.
append
(
expr
.
format
(
*
matches
,
pluto
=
v
[
0
]))
rh
.
append
(
expr
.
format
(
*
matches
,
pluto
=
v
[
0
]))
pass
pass
pass
pass
if
op
==
'AND'
:
if
len
(
rh
)
==
0
:
return
(
"%s=0"
%
(
lh
))
elif
op
==
'AND'
:
return
(
"%s=%s"
%
(
lh
,
'*'
.
join
(
rh
)))
return
(
"%s=%s"
%
(
lh
,
'*'
.
join
(
rh
)))
elif
op
==
'OR'
:
elif
op
==
'OR'
:
return
(
"%s=%s"
%
(
lh
,
'+'
.
join
(
rh
)))
return
(
"%s=%s"
%
(
lh
,
'+'
.
join
(
rh
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment