Commit 4463d8da authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel

Improve debug output.

parent 5f4ebe9f
......@@ -7,8 +7,9 @@ def wait_for_service (srv, time = 0.2):
try:
rospy.wait_for_service(srv, time)
except rospy.ROSException:
print("Waiting for service: " + srv)
rospy.logwarn("Waiting for service: {0}".format(srv))
rospy.wait_for_service(srv)
rospy.loginfo("Service {0} found.".format(srv))
class RosInterface(object):
def __init__ (self, supervisor = None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment