-
Notifications
You must be signed in to change notification settings - Fork 34
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
wildcard filtering expression for sequences #11
Comments
sorry to interrupt you all the sudden, but as you know we are trying to enable ContentFilteredTopic to ROS2. thanks in advance. |
Hi @iuhilnehc-ynos and @fujitatomoya, thank you for reaching out, and for filing this issue. I'm glad to see you have been making progress with your work with I was trying to think of possible workarounds to overcome the current lack of support for wildcards, and the "unbounded" nature of these fields really precludes any good solution. If the fields were statically bounded, then one could probably mimic a wildcard by In the case of unbounded sequences, one could possibly follow this strategy by establishing some hard-coded static limit, maybe tuned based on the actual needs of an application, but it would be a "hack" at best. In general, this sounds like a "core" feature that will need to be addressed in the Connext libraries rather than in the RMW, so I have propagated the question internally at RTI, and I'll get back to you as soon as I hear back from our development team. Meanwhile, would you mind me asking if you are planning on pushing your CFT improvements (e.g. to As you probably know, we are working toward replacing Once that happens, I might have some time to review any changes you made to |
thanks for the quick response 👍
that would be really appreciated. one thing we are not sure is that this requirement for wildcard is actually something
that was a plan, we have been working on that. but according to the timeline and it's kinda big change for all stacks, i believe that it is unlikely to have this CFT in Galactic, we will try but it's gonna be tight.
sounds great ❗ we've been watching this since our CFT is dependent on
thanks again! no pressure at all, we just don't interrupt your work here. so when you got time, that would be appreciated! |
At this point it's definitely a One aspect I had not considered earlier is that we already use Discussing your proposal internally, I was reminded that Connext supports custom content filters, where a user can install a content filter based on a custom implementation they provide. I know this is not a portable solution, but we have an example of how to use this facility with filters expressed as "lambdas", and it might be a way to test the effects of filtering strategies which are not yet supported by the built-in SQL filter. I haven't tested custom content filters myself, so let me know if you would be interested in trying them. I expect some possible "quirks" in using these filters on top of
Happy to help. I saw @iuhilnehc-ynos opened #12 and I'll try to provide feedback soon! I'm going to close the issue because I don't expect any direct action item for |
@asorbini thanks for the insights. |
Signed-off-by: Michael Carroll <[email protected]>
Feature Description
Content filtered topic feature in rti-connext-dds is excellent, especially supporting arrys and sequences.
We decide to use this feature to filter data of ROS2 topics including "/parameter_events", "${concrete_action_name}/_action/feedback" and "${concrete_action_name}/_action/status", but we are experiencing a problem that is not filtering data for sequences of uncertain size and unknown item location.
For topic "/parameter_events", the publisher will publish data as following,
We can filter the node name with a filter expression "node MATCH '/parameter_blackboard'", but it seems there is no SQL grammar in rti-connext-dds to filter new_parameters with a specific name.
The publishers for topic "${concrete_action_name}/_action/status" are also publishing status data with uncertain size and index,
so we can't set the filter expression with a specific 'uuid' on the subscriber side.
Implementation Considerations
I think it's a very useful feature to filter these data, do you plan to support the feature like wildcard filtering expression for sequences, such as "new_parameters[*].name MATCH 'use_sim_time'", "status_list[].goal_info.goal_id.uuid = &hex(%s)" or other non-number related statement.
NOTE: I'm sorry if it's not the correct place to post this feature request.
The text was updated successfully, but these errors were encountered: