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 tolerance calculation precision #934

Merged
merged 2 commits into from
Jan 3, 2023

Conversation

xkaraman
Copy link
Contributor

@xkaraman xkaraman commented Dec 20, 2022

Currently there is an open issue #852 that laser scan error flickers and warns about extrapolation errors. I've found myself hitting on this issue as well, so i tracked it down a bit and found probably the culprit.

According to ros-perception/laser_geometry#83 fix (it has been merged despite the wrong icon) there is some precision lost due to the multiplication float32 and int64 leading to some other errors on their repo.

So, i incorporated the same fix in laser_scan_display.cpp as well, and the flickering has gone for me as well and no more extrapolation errors.

rclcpp::Duration::from_seconds(double) was introduced from eloquent distro, so this fix should apply for all currently available distros.

Give it a try and pull it if it does indeed solve the issue! :)

@ahcorde
Copy link
Contributor

ahcorde commented Dec 22, 2022

compiled --packages-above-and-dependencies rviz_default_plugins and tests --packages-above rviz_default_plugins

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@xkaraman
Copy link
Contributor Author

xkaraman commented Jan 3, 2023

@ahcorde is there something wrong that make the builds fail? Should i change anything or is the fix wrong?

@ahcorde
Copy link
Contributor

ahcorde commented Jan 3, 2023

The ros.repos file was wrong. Relaunched here

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit 0c41714 into ros2:rolling Jan 3, 2023
@Wimll
Copy link

Wimll commented Jan 26, 2023

I'm also seeing the same behavior for RVIZ on humble, is this planned to be merged into humble as well? Just like issue #852

981213 pushed a commit to 981213/rviz that referenced this pull request Apr 3, 2023
ahcorde pushed a commit that referenced this pull request Jun 8, 2023
(cherry picked from commit 0c41714)

Co-authored-by: Xenofon Karamanos <xenakiskaramanos@gmail.com>
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.

None yet

3 participants