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
Stack Of Tasks
sot-talos
Commits
fa490d59
Commit
fa490d59
authored
Jul 23, 2020
by
Guilhem Saurel
Browse files
[Python] fix syntax
parent
fa43f3ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test-simple-seq-play.py
View file @
fa490d59
...
...
@@ -2,8 +2,9 @@
# flake8: noqa
import
sys
import
rospy
from
dynamic_graph_bridge_msgs.srv
import
*
import
rospy
from
std_srvs.srv
import
*
try
:
...
...
@@ -19,10 +20,10 @@ def launchScript(code, title, description=""):
rospy
.
loginfo
(
code
)
for
line
in
code
:
if
line
!=
''
and
line
[
0
]
!=
'#'
:
print
line
print
(
line
)
answer
=
runCommandClient
(
str
(
line
))
rospy
.
logdebug
(
answer
)
print
answer
print
(
answer
)
rospy
.
loginfo
(
"...done with "
+
title
)
...
...
@@ -53,5 +54,5 @@ try:
input
(
"Wait before starting the seqplay"
)
runCommandClient
(
"aSimpleSeqPlay.start()"
)
except
rospy
.
ServiceException
,
e
:
except
rospy
.
ServiceException
as
e
:
rospy
.
logerr
(
"Service call failed: %s"
%
e
)
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