ros-tooling / topic_tools

Tools for directing, throttling, selecting, and otherwise manipulating ROS 2 topics at a meta-level.
Apache License 2.0
71 stars 33 forks source link

Port demux #105

Closed rcywongaa closed 2 months ago

rcywongaa commented 4 months ago

Description

Basically porting https://github.com/ros/ros_comm/blob/noetic-devel/tools/topic_tools/src/demux.cpp to ROS2

demux is a generic ROS topic demultiplexer: one input topic is fanned out to 1 of N output topics. A service is provided to select between the outputs

Completion Criteria

ros2 run topic_tools demux <intopic> <outtopic1> [outtopic2...]

Implementation Notes / Suggestions

Might be a good first issue since the ROS1 version already exists and this is very similar to Mux which has already been ported to ROS2.

Testing Notes / Suggestions

It seems the original ROS1 code also didn't have any unit tests for demux

christophebedard commented 4 months ago

Might be a good first issue

I've added the "good first issue" label. PRs are welcome!