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

Output selected topic name #17

Open
ihs-systems opened this issue Feb 20, 2020 · 3 comments
Open

Output selected topic name #17

ihs-systems opened this issue Feb 20, 2020 · 3 comments

Comments

@ihs-systems
Copy link

(In my case) it would be handy to have information which input topic is selected for current output, similar to
mux/selected topic in topic_tools/mux package.

Have you been thinking of this functionality? Perhaps I can provide PR when i start digging into it.

@Michael-Equi
Copy link

Have you added this feature somewhere? I am interested in it too.

@Michael-Equi
Copy link

Just added the feature here in a PR here #20

@peci1
Copy link

peci1 commented Jul 11, 2023

Our generalized mux package has this ability: https://github.com/ctu-vras/ros-utils/blob/master/cras_topic_tools/include/cras_topic_tools/priority_mux.h . It should be released with next Noetic sync (there was an older version of priority_mux that is released now, but it was broken).

The package is "backwards compatible" with twist_mux - it can be configured with the exact same YAML files (but it adds more features like multiple output topics or working with any message types).

You can run it with rosrun cras_topic_tools priority_mux. The selected topic will be published on ~/selected/cmd_vel (if you publish to cmd_vel). You can also read the active priority level on ~/active_priority.

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

No branches or pull requests

2 participants