Messages lost between rospy and roscpp
I encountered a strange problem of losing some messages between roscpp node and rospy node. I can see my roscpp node publishing my defined message using rostopic echo, but the rospy node sometimes cannot receive them(sometimes it can). I tried to reproduce the problem but just end up with nothing.
The only clue I can get is when this happen, I use rxgraph to see the ros node graph, and it prints:
"unknown node reported: unknown node /XXX"
/XXX is the name of my rospy node. The rospy node uses 3 threads and it calls rospy.spin() in the main thread.
I am using electric under ubuntu 11.10. There are more than 10 nodes running when this problem happen.
Thank you for any help or suggestions.
Could you provide more details or a reproducible example? Otherwise it is extremely hard to comment on what might be going wrong.
Unfortunately I cannot, the only clue is provided above. So what does this warning mean? (unknown node reported: unknown node). I will try to reproduce the problem as far as I can.
Finally I find out that it was not message dropping, but a latency of messages(about ~2 seconds or more), and my rospy node mistakenly drops them out because I thought it was old data. Thanks for helping.
Please help me close the question.
Please post your solution (or explanation of the problem) as an answer. After about a week or so, you should be able to "accept" that answer and it will show this question as answered. You may also want to try this on Fuerte and 12.04 and see if the problem is still present.