Skip to content
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

does this tool support "relay" mode? #71

Open
asimay opened this issue Nov 25, 2017 · 4 comments
Open

does this tool support "relay" mode? #71

asimay opened this issue Nov 25, 2017 · 4 comments

Comments

@asimay
Copy link

asimay commented Nov 25, 2017

does this tool support "relay" mode?
if not, and can you add it?

@mikaelarguedas
Copy link
Member

Hi @asimay,
Could you expllain what you mean by "relay" mode? Do you want to create node/nodelet that subscribe to a topic and republishes the same data on another topic ?

@asimay
Copy link
Author

asimay commented Nov 26, 2017

hi, @mikaelarguedas , dear, yes. I used topic_tools before, and find your tools, topic_tools has "relay" mode, and I want to know your package has this kind of mode or not? because I need to defined this kind of mode across files.

but 1 disadvantage of topic_tools relay mode is: it also copy the topic data, this will waste the resources of PC.

@mikaelarguedas
Copy link
Member

Thanks for clarifying.
Currently nodelet_topic_tools does not provide a relay nodelet.

It could be fairly easily implemented by providing a nodelet templated on the message type and taking input and output topic names as parameters (you can look at nodelet_mux.h or nodelet_throttle.h for examples of nodelets templated on message types.

Though it is recommended to remap topics (if it makes sense in the case of your application) rather than subscribing and republishing them, this allow to avoid serialization/deserialization put as well as unnecessary copies. Please see ros/roscpp_core#31 for more information of cases where copies will be performed anyway.

@peci1
Copy link
Contributor

peci1 commented Aug 16, 2023

http://wiki.ros.org/cras_topic_tools provides a relay nodelet. The package is released, so simply sudo apt install ros-${ROS_DISTRO}-cras-topic-tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants