11 out_msg = Int32Stamped()
12 out_msg.header = msg.header
13 out_msg.data = int(time.time() % len(msg.cluster_indices))
17 if __name__ ==
'__main__':
18 rospy.init_node(
'sample_int_publisher_from_cluster_indices')
19 pub = rospy.Publisher(
'~output', Int32Stamped, queue_size=1)
20 sub = rospy.Subscriber(
'~input', ClusterPointIndices, cb, queue_size=1)