10 import roslib;roslib.load_manifest(PKG)
12 from visualization_msgs.msg
import Marker, MarkerArray
16 global marker_array, marker_array_pub
18 marker_array = MarkerArray()
19 msg.id = len(marker_array.markers)
20 marker_array.markers.append(msg)
21 marker_array_pub.publish(marker_array)
24 global marker_array_pub
25 rospy.init_node(
"marker_appender")
26 marker_array_pub = rospy.Publisher(
"marker_array", MarkerArray, queue_size=1)
27 s = rospy.Subscriber(
"marker", Marker, callback)
30 if __name__ ==
"__main__":