ros node misses data while subscribed to another node

asked 2014-04-22 19:42:05 -0600

Pototo gravatar image

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

edit retag flag offensive close merge delete

Comments

it's hard to answer without looking at your code.

Mike Charikov gravatar image Mike Charikov  ( 2014-04-23 01:58:15 -0600 )edit