-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature request: Provide "perceive"/"update" action? #1
Comments
Ok yes, I can add this feature. Just a few clarification questions:
|
Yes, exactly this. The pose_selector should behave exactly as before, only that the "activate / wait / deactivate" now happens on the pose_selector side, not on the client side.
For the current use case, an empty action result would be fine; but if it's easy to do, returning the DOPE result (converted to
No, I can't think of any meaningful action feedback. BTW: Only do this if you want to. This issue came up in our last Tuesday meeting, and I wanted to keep track of it because I've been thinking about this several times now and I think "somebody" should do it, but that somebody doesn't have to be you! :) Also, it might be a bit tricky regarding threading. I'm afraid if you use the SimpleActionServer, it will block inside the action feedback, so the DOPE callback will never be called and therefore the action will wait forever for a DOPE update. If that's the case, then either we have to
I guess option 1 is easier. Anyhow, just a warning, maybe it's not a problem. |
Sorry for the delay on this, but I have finally gotten a chance to look at this in more detail. My current idea for a solution to this would be to have the perceive action server in pose_selector:
Does this seem like a valid way forward, or do you have any other feedback? If this looks good, let me know and I should have this completed soon and ready for some testing/review. |
Yes, this sounds exactly right!
Yup! All that
Yes, that's what I mean. Has to be tested though, perhaps it's not an issue. Some things to test/look out for:
|
It would be great if the pose_selector would provide a ROS action that the planner could call which enables DOPE, waits until it gets an update from DOPE (with a timeout of course), and then returns.
Currently, the planner calls the
activate
service, sleeps for 3 seconds in the hope thatpose_selector
will have received an update from DOPE during that time, then callsdeactivate
again:https://github.com/DFKI-NI/mobipick_api/blob/246e7cde4cee8f76036c3ab01dfd41d3f8bc6acf/mobipick_api/perception.py#L65-L73
The problem is that either this sleep is too long (which slows down the demo) or too short (which leads to bugs like DFKI-NI/mobipick_labs#45). The proposed action would provide a feedback mechanism so that the planner can be sure that the pose_selector has received an update.
@marcvinci @alexander-sung : As we discussed on the Tuesday meeting, please coordinate with @AmosSmith3.
The text was updated successfully, but these errors were encountered: