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

Why use the timestamp from the LiDAR time not the timestamp from roscore time? #32

Closed
harderthan opened this issue Mar 6, 2021 · 3 comments

Comments

@harderthan
Copy link

Why use the timestamp from the LiDAR time?

pcl_conversions::toPCL(ros::Time(timestamp), cld->header.stamp);

The messages published by the lidar ros driver are often used by other nodes like localization, recognition.
At that time, a header time of lidar point message is necessary info to calculate latency or data interfolation, etc..
If the driver use the time from LiDAR sensor not roscore time, user should write codes to get rostime in duplicate.

I think, below code looks more good.

pcl_conversions::toPCL(ros::Time::now(), cld->header.stamp);
@harderthan
Copy link
Author

Can I contribute to develop this issue for others?
If okay, I will create a new PR with this feature.

@yangfanFred
Copy link
Contributor

Hi haderthan...please try set the "timestmap_tye" in launch file to "realtime"

@harderthan
Copy link
Author

Thank. I made a new PR #35

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

No branches or pull requests

2 participants