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
Stack Of Tasks
dynamic_graph_bridge
Commits
028bd256
Commit
028bd256
authored
11 years ago
by
Francois Keith
Browse files
Options
Downloads
Patches
Plain Diff
Adapt run_command to the extraction of the messages from dynamic_graph_bridge.
parent
cc2df49f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/run_command
+4
-4
4 additions, 4 deletions
scripts/run_command
with
4 additions
and
4 deletions
scripts/run_command
+
4
−
4
View file @
028bd256
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
import
roslib
;
roslib
.
load_manifest
(
'
dynamic_graph_bridge
'
)
import
roslib
;
roslib
.
load_manifest
(
'
dynamic_graph_bridge
'
)
import
rospy
import
rospy
import
dynamic_graph_bridge.srv
import
dynamic_graph_bridge
_msgs
.srv
import
sys
import
sys
import
code
import
code
...
@@ -18,7 +18,7 @@ class RosShell(InteractiveConsole):
...
@@ -18,7 +18,7 @@ class RosShell(InteractiveConsole):
rospy
.
loginfo
(
'
waiting for service...
'
)
rospy
.
loginfo
(
'
waiting for service...
'
)
rospy
.
wait_for_service
(
'
run_command
'
)
rospy
.
wait_for_service
(
'
run_command
'
)
self
.
client
=
rospy
.
ServiceProxy
(
self
.
client
=
rospy
.
ServiceProxy
(
'
run_command
'
,
dynamic_graph_bridge
.
srv
.
RunCommand
,
True
)
'
run_command
'
,
dynamic_graph_bridge
_msgs
.
srv
.
RunCommand
,
True
)
def
runcode
(
self
,
code
,
retry
=
True
):
def
runcode
(
self
,
code
,
retry
=
True
):
...
@@ -29,7 +29,7 @@ class RosShell(InteractiveConsole):
...
@@ -29,7 +29,7 @@ class RosShell(InteractiveConsole):
if
not
self
.
client
:
if
not
self
.
client
:
print
(
"
Connection to remote server lost. Reconnecting...
"
)
print
(
"
Connection to remote server lost. Reconnecting...
"
)
self
.
client
=
rospy
.
ServiceProxy
(
self
.
client
=
rospy
.
ServiceProxy
(
'
run_command
'
,
dynamic_graph_bridge
.
srv
.
RunCommand
,
True
)
'
run_command
'
,
dynamic_graph_bridge
_msgs
.
srv
.
RunCommand
,
True
)
if
retry
:
if
retry
:
print
(
"
Retrying previous command...
"
)
print
(
"
Retrying previous command...
"
)
self
.
cache
=
source
self
.
cache
=
source
...
@@ -44,7 +44,7 @@ class RosShell(InteractiveConsole):
...
@@ -44,7 +44,7 @@ class RosShell(InteractiveConsole):
except
rospy
.
ServiceException
,
e
:
except
rospy
.
ServiceException
,
e
:
print
(
"
Connection to remote server lost. Reconnecting...
"
)
print
(
"
Connection to remote server lost. Reconnecting...
"
)
self
.
client
=
rospy
.
ServiceProxy
(
self
.
client
=
rospy
.
ServiceProxy
(
'
run_command
'
,
dynamic_graph_bridge
.
srv
.
RunCommand
,
True
)
'
run_command
'
,
dynamic_graph_bridge
_msgs
.
srv
.
RunCommand
,
True
)
if
retry
:
if
retry
:
print
(
"
Retrying previous command...
"
)
print
(
"
Retrying previous command...
"
)
self
.
cache
=
source
self
.
cache
=
source
...
...
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