Size: 286
Comment:
|
Size: 1354
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## repository: https://code.ros.org/svn/ros-pkg | |
Line 4: | Line 5: |
=== Tools === * nodelet mux - takes n input topics, and publishes all of them on 1 output topic * nodelet demux - takes 1 input topic, and publishes it on n output topics. |
The `nodelet_topic_tools` package contains a MUX (`NodeletMUX`) and a DEMUX ('NodeletDEMUX`) nodelet. == MUX == `NodeletMUX` represent a mux nodelet for topics: it takes N (<=8) input topics, and publishes all of them on one output topic. One implementation of `NodeletMUX` can be found in [[pcl_ros]]. Usage example: {{{!python block=launch <node pkg="nodelet" type="nodelet" name="pcl_manager" args="manager" output="screen" /> <!-- MUX the data onto one topic --> <node pkg="nodelet" type="nodelet" name="data_mux" args="load pcl/NodeletMUX pcl_manager" output="screen"> <rosparam> input_topics: [/passthrough/output, /normal_estimation/output] </rosparam> </node> }}} The above accepts data from `/passthrough/output` and `/normal_estimation/output`, and republishes it on `/data_mux/output`. To compile the `NodeletMUX` nodelet in your library, add something like: {{{ typedef nodelet::NodeletMUX<sensor_msgs::PointCloud2, message_filters::Subscriber<sensor_msgs::PointCloud2> > NodeletMUX; PLUGINLIB_DECLARE_CLASS (pcl, NodeletMUX, NodeletMUX, nodelet::Nodelet); }}} (replace `sensor_msgs::PointCloud2` with the message type of choice). |
Show EOL distros:
Package Summary
This package contains common nodelet tools such as a mux and a demux nodelet.
- Author: Radu Bogdan Rusu, Tully Foote
- License: BSD
- Repository: ros-pkg
- Source: svn https://code.ros.org/svn/ros-pkg/stacks/common/tags/common-1.4.3
Package Summary
This package contains common nodelet tools such as a mux and a demux nodelet.
- Author: Radu Bogdan Rusu, Tully Foote
- License: BSD
- Repository: common
- Source: hg https://kforge.ros.org/common/nodeletcore
Package Summary
This package contains common nodelet tools such as a mux, demux and throttle.
- Author: Radu Bogdan Rusu, Tully Foote
- License: BSD
- Source: git https://github.com/ros/nodelet_core.git (branch: fuerte-devel)
Package Summary
This package contains common nodelet tools such as a mux, demux and throttle.
- Maintainer status: maintained
- Maintainer: Tully Foote <tfoote AT osrfoundation DOT org>
- Author: Radu Bogdan Rusu, Tully Foote
- License: BSD
- Source: git https://github.com/ros/nodelet_core.git (branch: groovy-devel)
Package Summary
This package contains common nodelet tools such as a mux, demux and throttle.
- Maintainer status: maintained
- Maintainer: Esteve Fernandez <esteve AT osrfoundation DOT org>
- Author: Radu Bogdan Rusu, Tully Foote
- License: BSD
- Source: git https://github.com/ros/nodelet_core.git (branch: hydro-devel)
Package Summary
This package contains common nodelet tools such as a mux, demux and throttle.
- Maintainer status: maintained
- Maintainer: Mikael Arguedas <mikael AT osrfoundation DOT org>
- Author: Radu Bogdan Rusu, Tully Foote
- License: BSD
- Bug / feature tracker: https://github.com/ros/nodelet_core/issues
- Source: git https://github.com/ros/nodelet_core.git (branch: indigo-devel)
Package Summary
This package contains common nodelet tools such as a mux, demux and throttle.
- Maintainer status: maintained
- Maintainer: Mikael Arguedas <mikael AT osrfoundation DOT org>
- Author: Radu Bogdan Rusu, Tully Foote
- License: BSD
- Bug / feature tracker: https://github.com/ros/nodelet_core/issues
- Source: git https://github.com/ros/nodelet_core.git (branch: indigo-devel)
Package Summary
This package contains common nodelet tools such as a mux, demux and throttle.
- Maintainer status: maintained
- Maintainer: Mikael Arguedas <mikael AT osrfoundation DOT org>
- Author: Radu Bogdan Rusu, Tully Foote
- License: BSD
- Bug / feature tracker: https://github.com/ros/nodelet_core/issues
- Source: git https://github.com/ros/nodelet_core.git (branch: indigo-devel)
Package Summary
This package contains common nodelet tools such as a mux, demux and throttle.
- Maintainer status: maintained
- Maintainer: Mikael Arguedas <mikael AT osrfoundation DOT org>
- Author: Radu Bogdan Rusu, Tully Foote
- License: BSD
- Bug / feature tracker: https://github.com/ros/nodelet_core/issues
- Source: git https://github.com/ros/nodelet_core.git (branch: indigo-devel)
Package Summary
This package contains common nodelet tools such as a mux, demux and throttle.
- Maintainer status: maintained
- Maintainer: Mikael Arguedas <mikael AT osrfoundation DOT org>
- Author: Radu Bogdan Rusu, Tully Foote
- License: BSD
- Bug / feature tracker: https://github.com/ros/nodelet_core/issues
- Source: git https://github.com/ros/nodelet_core.git (branch: indigo-devel)
Package Summary
This package contains common nodelet tools such as a mux, demux and throttle.
- Maintainer status: maintained
- Maintainer: Geoffrey Biggs <geoff AT openrobotics DOT org>
- Author: Radu Bogdan Rusu, Tully Foote, Michael Carroll <michael AT openrobotics DOT org>
- License: BSD
- Bug / feature tracker: https://github.com/ros/nodelet_core/issues
- Source: git https://github.com/ros/nodelet_core.git (branch: noetic-devel)
Contents
The nodelet_topic_tools package contains a MUX (NodeletMUX) and a DEMUX ('NodeletDEMUX`) nodelet.
MUX
NodeletMUX represent a mux nodelet for topics: it takes N (<=8) input topics, and publishes all of them on one output topic. One implementation of NodeletMUX can be found in pcl_ros.
Usage example: {{{!python block=launch
<node pkg="nodelet" type="nodelet" name="pcl_manager" args="manager" output="screen" /> <!-- MUX the data onto one topic --> <node pkg="nodelet" type="nodelet" name="data_mux" args="load pcl/NodeletMUX pcl_manager" output="screen">
<rosparam>
- input_topics: [/passthrough/output, /normal_estimation/output]
</rosparam>
</node>
}}}
The above accepts data from /passthrough/output and /normal_estimation/output, and republishes it on /data_mux/output.
To compile the NodeletMUX nodelet in your library, add something like:
typedef nodelet::NodeletMUX<sensor_msgs::PointCloud2, message_filters::Subscriber<sensor_msgs::PointCloud2> > NodeletMUX; PLUGINLIB_DECLARE_CLASS (pcl, NodeletMUX, NodeletMUX, nodelet::Nodelet);
(replace sensor_msgs::PointCloud2 with the message type of choice).