In include/message_filters/sync_policies/latest_time.h
rates_ is array of struct Rate. I thought that its index corresponds to channel index. But its initialization in function initialize_rate<i>() doesn't put the struct (including alphas and prev) to index "i". Instead "pushback" is used. As a result, the index of rates seems to represent the order of arrival of the first message of each channel. This appears confusing to me. How can I properly set the alphas for each channel?
In include/message_filters/sync_policies/latest_time.h
rates_ is array of struct Rate. I thought that its index corresponds to channel index. But its initialization in function
initialize_rate<i>()
doesn't put the struct (including alphas and prev) to index "i". Instead "pushback" is used. As a result, the index of rates seems to represent the order of arrival of the first message of each channel. This appears confusing to me. How can I properly set the alphas for each channel?Here is the source code of initialize_rate():