big delay between publisher and subscriber !
I made a package to control the nao robot using the Emotic EPOC+ EEG sensor to drive the robot depends on the facial expressions
basically my package consist of two nodes 1- Publisher : which read the values coming from the sensor using the Emotiv SDK and then publish which expression I am doing with my face in a topic named /emoState
2- Subscriber : which read from that topic and give the commands to the nao robot using its SDK
the problem is my publisher is too fast and so the subscriber is taking the values which are published like a 20 seconds or 40 seconds ago, I want it to take the value in the time I making the expression
any clue ? where could be the problem
How did you initialize the subscriber (especially which queue_size are you using?) And how long does your callback take to process a single message?
I used queue size of one for the publisher and nothing for the subscriber for how long does my callback take for a single process? it takes around 3 seconds something what I should do now what do you think ?