Subscriber gets older timestamped messages
2 different nodes are listening to a msg with the same topic
. 1 node (written in C++
) gets the msg and print its content in an expected, minimum delay. But the other (python
) node shows the older content and I have no idea why this delay occurs. I'd appreciate any ideas.
Codes (partial, they show where I compare the values):
- Successful listener (
C++
) - Unsuccessful listener (
python
) subclass - Unsuccessful listener (
python
) parent class
Coincident or not, the difference is the language (C++ vs Python), and extension (Codes in python is separated into parent and sub class). But I don't know if these factors matter (and hopefully they do not).
All nodes run on the same machine (Ubuntu 11.04, electric
, Intel i7 quad).
Update 11/2/11) I'm now comparing timestamp
and approx. 30 seconds after starting program, the difference of timestamps from both nodes are 8 ROS seconds.