ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the topic "/radarTrack" publishes messages every 20ms, [..] When the length of tracks array is large, the calculation time of for-loop could be larger than 20ms. In this case, Does the messages that are published by "/radarTrack" wait until the for-loop calculation is complete although its calculation time is larger than 20ms?

callbacks are not pre-empted, so if callback(..) takes longer than 20 ms to process all the tracks, processing of other messages will be delayed.

the topic "/radarTrack" publishes messages every 20ms, [..] When the length of tracks array is large, the calculation time of for-loop could be larger than 20ms. In this case, Does the messages that are published by "/radarTrack" wait until the for-loop calculation is complete although its calculation time is larger than 20ms?

callbacks are not pre-empted, interrupted or run in parallel (with a standard single-threaded spinner as you are using), so if callback(..) takes longer than 20 ms to process all the tracks, processing of other messages will be delayed.