31 import roslib; roslib.load_manifest(
'realtime_tools')
33 from realtime_tools.msg
import BufferedData
40 for i
in range(len(msg.channels)):
41 print "# %2d: %s" % ((i+1), msg.channels[i].name)
42 for i
in range(len(msg.channels[0].values)):
43 print "%f" % msg.channels[0].values[i],
44 for c
in msg.channels[1:]:
45 print ", %f" % c.values[i],
49 topic = rospy.myargv()[1]
51 rospy.init_node(
"channelecho", anonymous=
True)
52 rospy.Subscriber(topic, BufferedData, dataCB)
57 if __name__ ==
'__main__':
main()