Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic_graph_bridge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
dynamic_graph_bridge
Commits
de87cda1
Unverified
Commit
de87cda1
authored
3 years ago
by
Guilhem Saurel
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #90 from florent-lamiraux/devel
Compatibility with python3.
parents
4a43f765
c674342e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/run_command
+5
-5
5 additions, 5 deletions
scripts/run_command
with
5 additions
and
5 deletions
scripts/run_command
+
5
−
5
View file @
de87cda1
...
...
@@ -67,12 +67,12 @@ class RosShell(InteractiveConsole):
return
self
.
runcode
(
code
,
False
)
response
=
self
.
client
(
str
(
source
))
if
response
.
standardoutput
!=
""
:
print
response
.
standardoutput
[:
-
1
]
print
(
response
.
standardoutput
[:
-
1
]
)
if
response
.
standarderror
!=
""
:
print
response
.
standarderror
[:
-
1
]
print
(
response
.
standarderror
[:
-
1
]
)
elif
response
.
result
!=
"
None
"
:
print
response
.
result
except
rospy
.
ServiceException
,
e
:
print
(
response
.
result
)
except
rospy
.
ServiceException
as
e
:
print
(
"
Connection to remote server lost. Reconnecting...
"
)
self
.
client
=
rospy
.
ServiceProxy
(
'
run_command
'
,
dynamic_graph_bridge_msgs
.
srv
.
RunCommand
,
True
)
...
...
@@ -88,7 +88,7 @@ class RosShell(InteractiveConsole):
return
self
.
runcode
(
c
)
else
:
return
True
except
SyntaxError
,
OverflowError
:
except
(
SyntaxError
,
OverflowError
)
:
self
.
showsyntaxerror
()
self
.
cache
=
""
return
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment