-
Notifications
You must be signed in to change notification settings - Fork 35
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
Multiple metadata entries in properties #41
Comments
The problem is related how orogen handles subclassing. the metadata creating on each parent and child class a property "metadata". The same is truth for input/output ports either. I see currently no easy was to solve this. It might be the best solution if a port with the same name and type is generated on a superclass to not generate the respective member on the child. But i don't know if this would have other side-effects within the framework. The current solution is not good either, because a superclass might call metadata.set('something') but the metadata object on the parent is another instance and would not updated here. |
It seems the complete orogen loading mechanism is partwise broken which makes this bug even harder. the metadata plugin checks if it's already registered and skipts the generation otherwise.
the find_extension should check the superclasses too, but the problem is that this does not work. on this step of loading the Even is the check would be there. the c++ code generation should be done on the child to build up the port-model for the child too. This starts to get tricky for the same reasons than in my previous post... |
👍 on the general analysis, in addition: (1) the Spec's each_ methods should never yield two interface objects that have the same name, as a matter of rule |
Hey,
there seems to be a bug in the latest orogen. If I run
task.each_property I get the entry for metadata of
type metadata::TaskContext 2 times. Any ideas
what might be the source ?
Janosch
The text was updated successfully, but these errors were encountered: