Ask Your Question

Revision history [back]

I just ran your code, don't have a bunch of nodes publishing to the topics, but I get one line of 4 zeros as I would expect.

The line you say never runs does run, but onlyruns once at the beginning, on the next line it reaches rose.spin(). It stays at that point. The only activity you will then see are from the callbacks being called when messages coming in, so you would see individual values being printed out as they come in on each of the topics.

I just ran your code, don't have a bunch of nodes publishing to the topics, but I get one line of 4 zeros as I would expect.

The line you say never runs does run, but onlyruns once at the beginning, on the next line it reaches rose.spin(). It stays at that point. The only activity you will then see are from the callbacks being called when messages coming in, come in on a topic, so you would see individual values being printed out as they come in on each of the topics.

I just ran your code, don't have a bunch of nodes publishing to the topics, but I get one line of 4 zeros as I would expect.

The line you say never runs does run, but onlyruns once at the beginning, on the next line it reaches rose.spin(). ros.spin(). It stays at that point. The only activity you will then see are from the callbacks being called when messages come in on a topic, so you would see individual values being printed out as they come in on each of the topics.