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 remove_attached_object API in Python PSI, add clear() #2609
Conversation
def clear(self): | ||
""" Remove all objects from the planning scene """ | ||
self.remove_attached_object() | ||
self.remove_world_object() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a useful abstraction, but it would be nicer to expose this API as sending a single PlanningScene message.
It's just stupid overhead that can even show in Rviz (the attached objects might actually detach in RViz before being removed).
It looks like the asynchronous backend of the class does not even have a publisher to planning_scene
at the moment...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. CI failed for seemingly unrelated reasons, I restarted the job.
Please consider my inline comment though.
Codecov Report
@@ Coverage Diff @@
## master #2609 +/- ##
==========================================
- Coverage 60.49% 60.48% -0.01%
==========================================
Files 402 402
Lines 29611 29611
==========================================
- Hits 17911 17908 -3
- Misses 11700 11703 +3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can only support Michael's review. +1
Thanks for the reviews. I agree that there are things to be improved in the backend (a |
…moveit#2609) Also fixes comment formatting.
…moveit#2609) Also fixes comment formatting.
…moveit#2609) Also fixes comment formatting.
…#2609) Also fixes comment formatting.
Setting the link name in
remove_attached_object
is not necessary.planning_scene.cpp
treats the message as described.I also added a
clear()
method because I could have used it today and saw that @mikeferguson also did in moveit_python.