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

Sending speed isue #2

Open
kimwin2 opened this issue Mar 14, 2019 · 3 comments
Open

Sending speed isue #2

kimwin2 opened this issue Mar 14, 2019 · 3 comments

Comments

@kimwin2
Copy link

kimwin2 commented Mar 14, 2019

I checked about the speed of publish.
It took about 1ms for example you uploaded.

Is there any way to increasing the speed by modifying client.cpp?

thanks!

@ppianpak
Copy link
Owner

You can change the delay value on line 50 in rosbridge_ws_client.cpp.

@kimwin2
Copy link
Author

kimwin2 commented Mar 14, 2019

Thank you for reply.

clock_t begin1, end1;
    begin1 = clock();
      rbc.publish("/ztopic", d);
    end1 = clock();
    std::cout << "consume KF: " <<  (double)(end1 - begin1)/1000  << std::endl;

I just checked above part.

Because i have to publish 200messages/sec. Original ROS Topic publish takes only 0.05ms/message so that my condition is satisfied. Is there no way except setting sleep function?

@ppianpak
Copy link
Owner

I don't understand you question.
So you want to "precisely" publish 200 messages/sec?
If that is the case, I think you will need to look out for some algorithm to control that.

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

2 participants