Skip to content
Snippets Groups Projects
Commit 3d48e028 authored by Tommy Persson's avatar Tommy Persson
Browse files

bagserver/client

parent 248ce566
No related branches found
No related tags found
No related merge requests found
...@@ -2,19 +2,23 @@ ...@@ -2,19 +2,23 @@
import rospy import rospy
from lrs_srvs.srv import *
def start_recording(req): def start_recording(req):
print req print "start_recording", req
return BSStartRecordingResponse(True, 0, "")
def stop_recording(req): def stop_recording(req):
print req print "stop_recording", req
return BSStopRecordingResponse(True, 0, "")
if __name__ == "__main__": if __name__ == "__main__":
rospy.init_node('listener', anonymous=True) rospy.init_node('listener', anonymous=True)
ns = rospy.get_namespace () ns = rospy.get_namespace ()
rospy.loginfo ("NAMESPACE: %s", ns) rospy.loginfo ("NAMESPACE: %s", ns)
s1 = rospy.Service('start_recording', BSStartRecording, start_recording) s1 = rospy.Service('bag_start_recording', BSStartRecording, start_recording)
s2 = rospy.Service('stop_recording', BSStopRecording, stop_recording) s2 = rospy.Service('bag_stop_recording', BSStopRecording, stop_recording)
rospy.spin() rospy.spin()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment