test_marker.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 import roslib; roslib.load_manifest('wviz')
00003 import rospy
00004 import time
00005 
00006 
00007 from std_msgs.msg import String
00008 from visualization_msgs.msg import Marker
00009 
00010 def callback(marker):
00011     rospy.loginfo(rospy.get_name()+"Got a marker of type %d",marker.type)
00012     #time.sleep(10)
00013 
00014 def listener():
00015     rospy.init_node('marker_listener', anonymous=True)
00016     rospy.Subscriber("/tabletop_detector_markers", Marker, callback)
00017     rospy.spin()
00018 
00019 if __name__ == '__main__':
00020     listener()


remote_lab_examples
Author(s): Halit Bener Suay
autogenerated on Sat Sep 27 2014 12:03:00