Skip to content

how to get TIMEOUT state from waitset.timedWait? #2312

Closed Answered by elBoberido
leiBravo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @leiBravo

The timeout state is an empty notificationVector :)

if(notificationVector.empty()) {
    std::cout << "The WaitSet timed out before notifications arrived" << std::endl;
}

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by leiBravo
Comment options

You must be logged in to vote
1 reply
@elBoberido
Comment options

Comment options

You must be logged in to vote
1 reply
@elBoberido
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants