Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roscpp ActionClient subscription queue size should be consistent with rospy. #162

Merged
Merged
4 changes: 2 additions & 2 deletions actionlib/include/actionlib/client/action_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ class ActionClient
int pub_queue_size;
int sub_queue_size;
n_.param("actionlib_client_pub_queue_size", pub_queue_size, 10);
n_.param("actionlib_client_sub_queue_size", sub_queue_size, 1);
n_.param("actionlib_client_sub_queue_size", sub_queue_size, -1);
if (pub_queue_size < 0) {pub_queue_size = 10;}
if (sub_queue_size < 0) {sub_queue_size = 1;}
if (sub_queue_size < 0) {sub_queue_size = 0;}

status_sub_ = queue_subscribe("status", static_cast<uint32_t>(sub_queue_size),
&ActionClientT::statusCb, this, queue);
Expand Down