• Diff for "nodelet_topic_tools"
Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2010-03-11 01:55:04
Size: 286
Editor: TullyFoote
Comment:
Revision 5 as of 2011-01-21 03:04:04
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: 

common: actionlib | bfl | bond | bondcpp | bondpy | filters | nodelet | nodelet_topic_tools | pluginlib | smclib | tinyxml | xacro | yaml_cpp

Package Summary

This package contains common nodelet tools such as a mux and a demux nodelet.

Package Summary

This package contains common nodelet tools such as a mux and a demux nodelet.

nodelet_core: nodelet | nodelet_topic_tools

Package Summary

This package contains common nodelet tools such as a mux, demux and throttle.

nodelet_core: nodelet | nodelet_topic_tools

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)
nodelet_core: nodelet | nodelet_topic_tools

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)
nodelet_core: nodelet | nodelet_topic_tools

Package Summary

This package contains common nodelet tools such as a mux, demux and throttle.

nodelet_core: nodelet | nodelet_topic_tools

Package Summary

This package contains common nodelet tools such as a mux, demux and throttle.

nodelet_core: nodelet | nodelet_topic_tools

Package Summary

This package contains common nodelet tools such as a mux, demux and throttle.

nodelet_core: nodelet | nodelet_topic_tools

Package Summary

This package contains common nodelet tools such as a mux, demux and throttle.

nodelet_core: nodelet | nodelet_topic_tools

Package Summary

This package contains common nodelet tools such as a mux, demux and throttle.

nodelet_core: nodelet | nodelet_topic_tools

Package Summary

This package contains common nodelet tools such as a mux, demux and throttle.

Contents

  1. MUX

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).

Wiki: nodelet_topic_tools (last edited 2021-08-08 12:02:21 by Combinacijus)