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

Moved initialisation of laser pose #4

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

neomanic
Copy link

Hey! Thanks for your good work on this port.

I was completely baffled because it worked first go, but the odometry was reversed. My laser tf is pointing backwards, so I assumed this had something to do with it.

Eventually I figured out that the laser pose tf was being requested based on last_scan, but at the time the object is created, that scan hasn't arrived yet, so the laser tf ends up being unity. I can see how this could be missed in testing if your laser faces forward.

My solution moves the pose initialisation until after the first scan is received. I can't see any downsides to this, but I don't know the code all that well.

@artivis
Copy link
Owner

artivis commented Jun 21, 2018

Hi, thanks for the great feedback !

I must admit that I did not pay much attention to the node itself of this package since I'm using the 'core' within the laser_odometry_rf2o plugin.
If you have some spare time I'd be interested knowing if this plugin (used with the laser_odometry package) handles your use-case.

In any case thanks for the PR, I'll take care of it during the week-end 👍.

@neomanic
Copy link
Author

neomanic commented Jun 21, 2018 via email

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.

2 participants