-
Notifications
You must be signed in to change notification settings - Fork 276
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
Add PerformerDetector, a system for detecting when performers enter a specified region #125
Conversation
… specified region Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
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.
This plugin is very similar to Gazebo-classic's ContainPlugin, did you get a chance to look at that? Some differences being:
- The usage of performers
- The usage of
AxisAlignedBox
instead ofOrientedBox
(if I remember correctly, this was a helpful difference during the SRC) - The use of
Intersects
instead ofContains
- The message being published
- The "enabled" feature
It would be nice if we could say that the contain plugin has been migrated to Ignition. Do you think we could at least make the change to oriented box?
Those are good suggestions. The problem is timing. We need this out the door asap in order to meet a deadline on Wednesday next week. Can these features be saved for future improvements, maybe captured in an issue and moved on the project board? |
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, with the addition of documentation to the system.
Sounds good, if @azeey doesn't get to it I can add it to my list of issues to ticket. I think the missing features can be added in a backwards-compatible way. |
Yes, @iche033 mentioned that in our design discussion. I didn't know that the |
yeah there are also a couple of other plugins in gazebo classic do something similar so it would be nice to make this generic. But if we don't have any plans / time to commit to this in the near future, we probably just do what @azeey suggetesd and rename and create an alias later when the time comes. |
Sure, I don't think the name is a big deal, we've renamed other things as we ported them. We just need a migration guide for each plugin 🙂
Given that the entity needs a geometry, and to be movable, I think limiting the plugin to performers is reasonable. |
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
The
PerformerDetector
system publishes a message when a performer enters or leaves its region. This can be used as a trigger in another system to do something in response to a performer approaching an area.The system does not assume that levels are enabled, but it does need performers to be specified.
I needed to change the code in
LevelManager.cc
to read in performer info even when levers are not enabled.I'll keep this as a draft while I work on a system that spawns objects by using the PerformerDetector as a trigger.