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

C++ equivalent of allow_headerless synchronization #74

Open
akgoins opened this issue Jun 6, 2022 · 2 comments
Open

C++ equivalent of allow_headerless synchronization #74

akgoins opened this issue Jun 6, 2022 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@akgoins
Copy link

akgoins commented Jun 6, 2022

I know that you can set allow_headerless = True in python, but is there an equivalent option for C++? Are there plans to add it in the future?

@clalancette
Copy link
Contributor

It looks like there is nothing equivalent in C++ right now. Certainly we would be happy to review a pull request that added it to the C++ side of things, so please consider contributing.

@clalancette clalancette added the help wanted Extra attention is needed label Jun 7, 2022
@lix19937
Copy link

lix19937 commented Sep 2, 2024

In this example, the Cache stores the last 100 messages received on my_topic, and myCallback is called on the addition of every new message. The user can then make calls like cache.getInterval(start, end) to extract part of the cache.

If the message type does not contain a header field that is normally used to determine its timestamp, and the Cache is contructed with allow_headerless=True, the current ROS time is used as the timestamp of the message. This is currently only available in Python.

@akgoins http://wiki.ros.org/message_filters#ExactTime_Policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants