Open
Conversation
Both existing python nodes as well as the planned filter relay node use these shared elements. Using a shared parent class cleans up code repetition.
Node will need to create multiple publishers and evaluate input functions to determine whether node should publish message on topic. This involves a lot of the same logic as the transform node for message evaluation against a function, with the addition of multiple publishers.
Every filter that a message matches will publish using the associated publisher.
Author
|
Hello, I would really appreciate any feedback you have for this PR. In all honesty, 90% of this node is the same as the existing transform node, as it shares a lot of underlying requirements. I have also taken the opportunity to refactor the existing python nodes to use a shared base node, which should make it easier for future developers to add new nodes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the feature related to #141 by adding a new filter relay node to the topic tools package.
This node is capable of subscribing to a topic, and based on a python conditional statement, can republish the message on zero to multiple topics.
An example use case of this node is during deployment, a system may want all pointcloud messages to publish on a single topic. However during development and debugging, you may want to be able to split these messages into multiple topics to view or use just one.