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

ydlidar_node.cpp #14

Open
koki-ogura opened this issue Dec 6, 2018 · 5 comments
Open

ydlidar_node.cpp #14

koki-ogura opened this issue Dec 6, 2018 · 5 comments

Comments

@koki-ogura
Copy link

        scan_msg.scan_time = scan.config.scan_time/1000000000.0;
        scan_msg.time_increment = scan.config.time_increment/1000000000.0;
@r7vme
Copy link

r7vme commented Dec 23, 2018

After updating to 1.3.9 also having issues with timestamps. So far fix above did not help.

Transform [sender=unknown_publisher]
For frame [laser_frame]: No transform to fixed frame [map]. TF error: [Lookup would require extrapolation into the future. Requested time 1545577101.607486000 but the latest data is at time 1545576997.884670960, when looking up transform from frame [laser_frame] to frame [map]]

@koki-ogura
Copy link
Author

For me the problem with tf has been solved with the above fix.
Have you recompiled after correcting the source?

@r7vme
Copy link

r7vme commented Dec 24, 2018

Yes, i did. But honestly did not have much time to troubleshoot. Will try one more time later.

So far @koki-ogura do not hesitate to create pull request to this repo with your fix.

@r7vme
Copy link

r7vme commented Dec 24, 2018

@koki-ogura your fix works fine, thanks. So far i think it makes sense to fix inside SDK not in ROS node.

https://github.com/r7vme/ydlidar/commit/840589dbe7705f7c6bda75d0393ea9b7e8d5e7be

@jonra1993
Copy link

Thanks @koki-ogura :) I was trying to implement cartographer for many day and the problem was that scan_time and time_increment were in ns.

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

3 participants