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

waitUntilFormed and waitUntilBroken quit with erroneus error code on timeout #32

Open
mikaelarguedas opened this issue Aug 18, 2017 · 0 comments

Comments

@mikaelarguedas
Copy link
Member

If you try to wait for a bond to be formed for more than 10 seconds it returns true leading to believe a bond has been established.

How to reproduce

ros::init(argc, argv, "ProcessA", true);
ros::AsyncSpinner spinner(1);
spinner.start();
bond::Bond bond("example_bond_topic", "myBondId123456");
printf("A starting bond\n");
bond.start();
printf("A waiting for bond to be formed\n");
if (!bond.waitUntilFormed(ros::Duration(15.0))) {
    ROS_ERROR("ERROR!");
    return false;
}
else {
    ROS_INFO("a bond has been established right?");  
}

The return value should be fixed and the documentation improved to mention the ConnectTimeout limit for waiting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant