Sending speed isue
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!
You can change the delay value on line 50 in rosbridge_ws_client.cpp.
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?
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.