Skip to content

Question in terms of ICEORYX ERROR when publishing data. (chunk and images) #856

Answered by elfenpiff
GeYapeng asked this question in Q&A
Discussion options

You must be logged in to vote

@GeYapeng There seems to be two problems, the roudi is running out of chunks since there are too many samples in use and the publisher does not handle the case when roudi is unable to provide samples. When roudi is running out of chunks publisher.loan() will return an invalid sample since there aren't any left and this case seems to be not covered.

  1. To fix the segmentation fault in the publisher (handle running out of chunks) adjust the code like this:
publisher.loan()
    .and_then([&](auto& pub_data) {
        extern cv::Mat img;  // This is the img to publish.
        if (!img.empty()) {
            for (int i = 0; i < ROWS; i++) {
                for (int j = 0; j < COLS; j++) {
    …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@elBoberido
Comment options

@GeYapeng
Comment options

@GeYapeng
Comment options

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