ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Solved by myself - changing subscriber's queue_size
works out for me. Using the code example on my environment I described in the question, I increased it from 1 to 5 in the problematic code (the one in python). Btw the queue_size
in the publisher is not showing influence here.
PS. However I still don't get why...I've read documents including this QA though. Is my understanding below correct...? I'll give a vote if someone corrects it.
Increasing
queue_size
means the number of msgs processed in one callback increases, and that number is greater than calling callback during the same period.
2 | No.2 Revision |
Solved by myself - changing subscriber's queue_size
works out for me. Using the code example on my environment I described in the question, I increased it from 1 to 5 in the problematic code (the one in python). Btw the queue_size
in the publisher is not showing influence here.
PS. However I still don't get why...I've read documents including this QA though. Is my understanding below correct...? I'll give a vote if someone corrects it.
Increasing
queue_size
means the number of msgs processed in one callback increases, and that numberiscould be greater than calling callback duringtheexactly same length of period.