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

Fix for at least two types of timestamps in PointCloud2 messages #13

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tizianoGuadagnino
Copy link
Collaborator

This is mainly to tackle the issue reported in #12 . In essence, some drivers (in this case the Livox driver) express the timestamps in nanoseconds, while other vendors (e.g. Ouster if my mind doesn't fail me) report the stamp directly in seconds. To handle the scenario I decided to count the digits of the timestamps, as we know that ROS stores the seconds and nanoseconds in int32. As this type cannot handle more than 10 digits, any stamp with more than 10 digits in the integer part of the floating point is assumed to be expressed in nanoseconds and converted.

It will need some testing to be sure but on the preliminary analysis, I don't see any difference in results for our data. @KenN7 can you test it on your stuff? or if you can send me the data ;)

@tizianoGuadagnino tizianoGuadagnino linked an issue Oct 29, 2024 that may be closed by this pull request
@KenN7
Copy link
Contributor

KenN7 commented Nov 5, 2024

Hi there,
I cannot send you my data unfortunately, but i can tell you, that from my initial tests, it seems to work fine :)

@KenN7
Copy link
Contributor

KenN7 commented Nov 5, 2024

I was only wondering whether it is normal that the method outputs less points on rviz when the computation is faster ? (in debug vs release)

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

Successfully merging this pull request may close these issues.

Timestamp problem
2 participants