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

Fixed flood of errors on startup for mesh_filter #2550

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

JStech
Copy link
Contributor

@JStech JStech commented Mar 11, 2021

Description

The mesh filter was producing a flood of errors when it started, which stopped after a subscriber connected to its output. This prevents these errors, and instead produces a trickle of debug messages. I cleaned up a few little things, too, while I was at it.

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

@codecov
Copy link

codecov bot commented Mar 11, 2021

Codecov Report

Merging #2550 (1409ea6) into master (dd42164) will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2550      +/-   ##
==========================================
+ Coverage   60.19%   60.21%   +0.02%     
==========================================
  Files         351      351              
  Lines       26492    26492              
==========================================
+ Hits        15945    15950       +5     
+ Misses      10547    10542       -5     
Impacted Files Coverage Δ
...ma_kinematics_plugin/src/lma_kinematics_plugin.cpp 71.12% <0.00%> (-2.96%) ⬇️
...nning_scene_monitor/src/planning_scene_monitor.cpp 67.47% <0.00%> (-0.15%) ⬇️
...ipulation/pick_place/src/manipulation_pipeline.cpp 74.47% <0.00%> (+1.07%) ⬆️
...eit_ros/manipulation/pick_place/src/pick_place.cpp 92.23% <0.00%> (+3.34%) ⬆️
.../ompl_interface/src/detail/constrained_sampler.cpp 60.00% <0.00%> (+17.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dd42164...d615154. Read the comment docs.

Copy link
Contributor

@simonschmeisser simonschmeisser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would there also be a way for it to not complain at all when it has not yet received data (as opposed to incorrect data)? (haven't looked at the underlying code)

@JStech
Copy link
Contributor Author

JStech commented Mar 11, 2021

Would there also be a way for it to not complain at all when it has not yet received data (as opposed to incorrect data)? (haven't looked at the underlying code)

I think you're describing exactly what I'm fixing. When it has not yet received a depth map, the frame_id_ is the empty string.

Copy link
Member

@AndyZe AndyZe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved provided you make the small change in the while loop

@AndyZe AndyZe merged commit f4ebdd4 into moveit:master Mar 12, 2021
@tylerjw tylerjw mentioned this pull request Apr 9, 2021
tylerjw pushed a commit to tylerjw/moveit that referenced this pull request Apr 29, 2021
* fixed mesh_filter error spam on startup

* infinite loop fix from Andy
@tylerjw tylerjw mentioned this pull request Apr 29, 2021
tylerjw pushed a commit to tylerjw/moveit that referenced this pull request May 3, 2021
* fixed mesh_filter error spam on startup

* infinite loop fix from Andy
tylerjw pushed a commit that referenced this pull request May 3, 2021
* fixed mesh_filter error spam on startup

* infinite loop fix from Andy
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

4 participants