From 028bd2569a5a8f6f31ed969f28aca41a5db0788b Mon Sep 17 00:00:00 2001 From: Francois Keith <keith@lirmm.fr> Date: Fri, 21 Feb 2014 14:52:44 +0100 Subject: [PATCH] Adapt run_command to the extraction of the messages from dynamic_graph_bridge. --- scripts/run_command | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/run_command b/scripts/run_command index 0d05a4d..f06cf1c 100755 --- a/scripts/run_command +++ b/scripts/run_command @@ -3,7 +3,7 @@ import roslib; roslib.load_manifest('dynamic_graph_bridge') import rospy -import dynamic_graph_bridge.srv +import dynamic_graph_bridge_msgs.srv import sys import code @@ -18,7 +18,7 @@ class RosShell(InteractiveConsole): rospy.loginfo('waiting for service...') rospy.wait_for_service('run_command') 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): @@ -29,7 +29,7 @@ class RosShell(InteractiveConsole): if not self.client: print("Connection to remote server lost. Reconnecting...") self.client = rospy.ServiceProxy( - 'run_command', dynamic_graph_bridge.srv.RunCommand, True) + 'run_command', dynamic_graph_bridge_msgs.srv.RunCommand, True) if retry: print("Retrying previous command...") self.cache = source @@ -44,7 +44,7 @@ class RosShell(InteractiveConsole): except rospy.ServiceException, e: print("Connection to remote server lost. Reconnecting...") self.client = rospy.ServiceProxy( - 'run_command', dynamic_graph_bridge.srv.RunCommand, True) + 'run_command', dynamic_graph_bridge_msgs.srv.RunCommand, True) if retry: print("Retrying previous command...") self.cache = source -- GitLab