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

[noetic] LaserScan message are cutted off after 1 meter #1511

Closed
doisyg opened this issue May 27, 2020 · 4 comments
Closed

[noetic] LaserScan message are cutted off after 1 meter #1511

doisyg opened this issue May 27, 2020 · 4 comments

Comments

@doisyg
Copy link
Contributor

doisyg commented May 27, 2020

Looks like the following function applies a 1 meter default cuttoff:

projector_->transformLaserScanToPointCloud(fixed_frame_.toStdString(), *scan, *cloud, *tf,
laser_geometry::channel_option::Intensity);

If I replace it by :

projector_->transformLaserScanToPointCloud(fixed_frame_.toStdString(), *scan, *cloud, *tf, 60.0,
                                               laser_geometry::channel_option::Intensity);

the problem disappears (or I guess a 60 meters cuttoff is applied)

@doisyg
Copy link
Contributor Author

doisyg commented May 27, 2020

By default the range_max value of the LaserScan msg should be used as the cutoff, so maybe a bug here:
https://github.com/ros-perception/laser_geometry/blob/d55d1e297b999b1dd7783665cdc8610b0351a827/include/laser_geometry/laser_geometry.h#L253

@rhaschke
Copy link
Contributor

Looks like, we missed this when migrating from tf1 to tf2, because the old tf-based function isn't available anymore for tf2, but silently shadowed by another one.
We just need to add the -1.0 default cutoff. Could you file a corresponding PR, please?

@doisyg
Copy link
Contributor Author

doisyg commented May 27, 2020

#1512

@rhaschke
Copy link
Contributor

Fixed via #1512

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