ros node misses data while subscribed to another node
Hi,
I am running two nodes, one publishing and one subscribing. My subscriber is being simulated this way:
rostopic pub /motor_msg geometry_msgs/Twist -r 15 '[0.7,0,0]' '[0,0,0]'
My subscriber node seems to be missing some of the published data, regardless of the publication rate. For instance, if I publish "0.7" (like above), my subscriber will, mos of the time print 0.7, but there are some times when my subscriber will print "0." With happens regardless of the value I publish. I set up both subscriber and publisher to the same rate, and that does not help.
What could be the problem in this case?
Thanks
it's hard to answer without looking at your code.