Hello, I ´ve a problem using DDS Filter. The problem is about content condition in filter topic. My topic has several fields and one like this:
Arbitrary_field:
[0]: 'E'
[1]: 'x'
[2]: 'a'
[3]: 'm'
[4]: 'p'
[5]: 'l'
[6]: 'e'
The result above is when I publish the topic and I watch it by DDS Spy. I´d like filter it by name ('Example').
If I print by screen the result I get something like this:
[..., Arbitrary_field: {E , x, a, m, p, l, e}, ...]
I´m using ContentFilteredTopic like this:
Hello Rafael,
From your explanation, I guess you are using an array or a Sequence for this specific field (correct me if I am wrong).
Let's assume for example you are using the following IDL type definition:
Then, if you want to filter your samples by ‘{E, x, a, m, p, l, e}’, you should check for each array’s position individually. This is how your filter expression should look like:
*Note: This filter expression also works for Sequences.
Finally, you can find more information about SQL Filter Expressions in our Core Libraries User’s Manual.
Best regards,
Alvaro
Perfect, now it works fine, with an addition: ,I've had to change ContentFilteredTopic size because it's defined in 256 bytes default and I'll need more. I hope don't have any problems in future with that.
Thank for all!
Regards.