No version for distro humble showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata

jsk_topic_tools

Utilities to relay, throttle, filter, buffer and inspect ROS topics. The package provides a set of nodelets (lazy relays and throttles, mux, passthrough, Hz measurement, …), Python nodes and command line tools, and base classes for writing nodes that subscribe to their inputs only while their outputs are subscribed (ConnectionBasedNodelet, DiagnosticNodelet in C++, ConnectionBasedTransport in Python, and ConnectionBasedLifecycleNode on ROS 2).

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament_cmake); CMakeLists.txt branches on $ENV{ROS_VERSION}.

Item ROS 1 ROS 2
Nodelets jsk_topic_tools/{ConstantRateThrottle, LightweightThrottle, MUX, Relay, DeprecatedRelay, StealthRelay, Passthrough, Block, Snapshot, HzMeasure, VitalCheckerNodelet, StringRelay, SynchronizedThrottle} (also as standalone executables constant_rate_throttle, lightweight_throttle, mux, relay, deprecated_relay, stealth_relay, passthrough, block, snapshot, hz_measure, vital_checker, string_relay, synchronized_throttle) yes -
standalone_complexed_nodelet, topic_buffer_server, topic_buffer_client yes -
transform_merger, static_transform_pose_stamped yes yes
C++ library jsk_topic_tools (ConnectionBasedNodelet, DiagnosticNodelet, utilities) yes -
C++ library connection_based_lifecycle_node (ConnectionBasedLifecycleNode) - yes
Component jsk_topic_tools::StringRelayLifecycleNode (executable string_relay_lifecycle_node) - yes
Python module jsk_topic_tools yes yes
array_to_heatmap.py, filtered_relay.py yes yes
Other scripts (boolean_node.py, is_synchronized, rostopic_connection_list, synchronize_republish.py, static_tf_republisher.py, tf_to_pose.py, tf_to_transform.py, transform_wrench.py, pose_stamped_publisher.py, static_image_publisher.py, joint_state_pruner.py, topic_compare.py, topic_statistics.py, rosping_existence.py, bag2csv.py) yes -
Launch files in launch/ and sample/ yes -

There are no ROS 2 launch files; run the ROS 2 executables with ros2 run jsk_topic_tools <exe>.

Nodelets (ROS 1)

All nodelets subscribe ~input and publish ~output unless noted. Most of them are lazy: they subscribe ~input only while ~output has subscribers.

  • LightweightThrottle – like topic_tools/throttle, but subscribes the input only when the throttled topic is subscribed. Parameter ~update_rate (default 1.0 Hz). doc
  • ConstantRateThrottle – same interface as LightweightThrottle, but publishes at an accurate constant rate (re-publishing the buffered message if ~update_rate is higher than the input rate). doc
  • SynchronizedThrottle – throttles several topics (~topics, up to 8) synchronously and advertises them with ~suffix (default throttled). Parameters ~update_rate, ~approximate_sync, ~use_wall_time, … doc
  • Relay – like topic_tools/relay, with lazy mode and ~latch; ~always_subscribe disables the lazy mode. doc
  • StealthRelay – relays ~input only while ~monitor_topic (default: ~input) is subscribed by other nodes; it counts the subscribers of ~monitor_topic without itself, while its own subscription of ~input is a normal one. doc
  • Passthrough – relays only for a given duration. Services ~request, ~stop (std_srvs/Empty) and ~request_duration (jsk_topic_tools/PassthroughDuration); parameter ~default_duration (default 10.0 s). doc
  • HzMeasure – publishes the rate of ~input as std_msgs/Float32 on ~output and a diagnostic status. Parameters ~measure_time, ~message_num, ~warning_hz. doc
  • VitalCheckerNodelet – checks whether ~input is alive and publishes the status to /diagnostics.
  • MUX – nodelet version of topic_tools/mux: relays the selected one of ~topics to ~output; services ~select, ~add, ~delete, ~list_topics, and the name of the selected topic is published on ~selected (std_msgs/String).
  • Block – makes a chain of non-lazy nodes lazy: relays ~input to ~input_original and ~output_original to ~output, subscribing only while ~output is subscribed (checked at ~check_rate).
  • Snapshot – publishes a single ~input message to ~output each time the ~request service (std_srvs/Empty) is called.
  • StringRelay, DeprecatedRelay – std_msgs/String relay, and a relay that warns that the topic is deprecated.

standalone_complexed_nodelet is a nodelet manager that loads the nodelets listed in the ~nodelets (and ~nodelets_0 … ~nodelets_99) parameters itself, avoiding the unreliable bond between manager and loader processes. See standalone_complexed_nodelet.rst and sample/standalone_complexed_nodelet/simple.launch.

Nodes and scripts

  • filtered_relay.py (ROS 1 / ROS 2) – relays ~input to ~output only when the Python expression ~filter holds, optionally transforming it with ~transform. ~output_type is required. doc
  • array_to_heatmap.py (ROS 1 / ROS 2) – converts a numeric std_msgs/*MultiArray or single-channel sensor_msgs/Image into a colored bgr8 heatmap image. Parameters ~cell_size, ~colormap, ~min_value, ~max_value, … doc
  • transform_merger (ROS 1 / ROS 2) – subscribes /tf, keeps the latest transform per child frame and publishes them together on /tf_merged at ~loop_hz (default 1.0). The transform_config/ignore_tf list is ROS 1 only.
  • static_transform_pose_stamped (ROS 1 / ROS 2) – static_transform_pose_stamped x y z yaw pitch roll from_topic to_topic applies a fixed offset to every geometry_msgs/PoseStamped on from_topic and publishes it on to_topic.
  • string_relay_lifecycle_node (ROS 2) – example of ConnectionBasedLifecycleNode: relays std_msgs/String from ~/input to ~/output, subscribing only while ~/output is subscribed (parameters always_subscribe, verbose_connection).
  • topic_buffer_server / topic_buffer_client (ROS 1) – buffer topics over a slow network: the client republishes the server’s topics with the _buffered suffix, either periodically (~update_rate, ~fixed_rate) or on request via the update service.
  • boolean_node.py – or/and/not/xor of several boolean inputs. doc
  • synchronize_republish.py – republishes ~topics with exact/approximate synchronization. doc
  • is_synchronized – checks whether the given topics are synchronized. doc
  • rostopic_connection_list – lists topic connections between hosts. doc
  • static_tf_republisher.py – republishes /tf_static recorded in a rosbag. doc
  • tf_to_pose.py, tf_to_transform.py – publish a transform between two frames as PoseStamped / TransformStamped. (tf_to_pose, tf_to_transform)
  • transform_wrench.py – transforms a WrenchStamped into ~target_frame_id. doc
  • pose_stamped_publisher.py – publishes a static PoseStamped. doc

Base classes

  • jsk_topic_tools::ConnectionBasedNodelet (C++, ROS 1) – subscribes inputs only while outputs are subscribed; subclasses must call onInitPostProcess() at the end of onInit(). Being superseded by nodelet_topic_tools::NodeletLazy. doc
  • jsk_topic_tools::DiagnosticNodelet (C++, ROS 1) – ConnectionBasedNodelet that also publishes diagnostics (~vital_rate, ~use_warn). doc
  • jsk_topic_tools.ConnectionBasedTransport (Python, ROS 1) – the same pattern for rospy nodes; implement subscribe() / unsubscribe() and create publishers with self.advertise(). doc, example sample/simple_image_transport.py
  • jsk_topic_tools::ConnectionBasedLifecycleNode (C++, ROS 2) – rclcpp_lifecycle::LifecycleNode with the same lazy subscription behavior; see src/string_relay_lifecycle_node.cpp for a minimal subclass.

Usage

ROS 1:

```bash

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata

jsk_topic_tools

Utilities to relay, throttle, filter, buffer and inspect ROS topics. The package provides a set of nodelets (lazy relays and throttles, mux, passthrough, Hz measurement, …), Python nodes and command line tools, and base classes for writing nodes that subscribe to their inputs only while their outputs are subscribed (ConnectionBasedNodelet, DiagnosticNodelet in C++, ConnectionBasedTransport in Python, and ConnectionBasedLifecycleNode on ROS 2).

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament_cmake); CMakeLists.txt branches on $ENV{ROS_VERSION}.

Item ROS 1 ROS 2
Nodelets jsk_topic_tools/{ConstantRateThrottle, LightweightThrottle, MUX, Relay, DeprecatedRelay, StealthRelay, Passthrough, Block, Snapshot, HzMeasure, VitalCheckerNodelet, StringRelay, SynchronizedThrottle} (also as standalone executables constant_rate_throttle, lightweight_throttle, mux, relay, deprecated_relay, stealth_relay, passthrough, block, snapshot, hz_measure, vital_checker, string_relay, synchronized_throttle) yes -
standalone_complexed_nodelet, topic_buffer_server, topic_buffer_client yes -
transform_merger, static_transform_pose_stamped yes yes
C++ library jsk_topic_tools (ConnectionBasedNodelet, DiagnosticNodelet, utilities) yes -
C++ library connection_based_lifecycle_node (ConnectionBasedLifecycleNode) - yes
Component jsk_topic_tools::StringRelayLifecycleNode (executable string_relay_lifecycle_node) - yes
Python module jsk_topic_tools yes yes
array_to_heatmap.py, filtered_relay.py yes yes
Other scripts (boolean_node.py, is_synchronized, rostopic_connection_list, synchronize_republish.py, static_tf_republisher.py, tf_to_pose.py, tf_to_transform.py, transform_wrench.py, pose_stamped_publisher.py, static_image_publisher.py, joint_state_pruner.py, topic_compare.py, topic_statistics.py, rosping_existence.py, bag2csv.py) yes -
Launch files in launch/ and sample/ yes -

There are no ROS 2 launch files; run the ROS 2 executables with ros2 run jsk_topic_tools <exe>.

Nodelets (ROS 1)

All nodelets subscribe ~input and publish ~output unless noted. Most of them are lazy: they subscribe ~input only while ~output has subscribers.

  • LightweightThrottle – like topic_tools/throttle, but subscribes the input only when the throttled topic is subscribed. Parameter ~update_rate (default 1.0 Hz). doc
  • ConstantRateThrottle – same interface as LightweightThrottle, but publishes at an accurate constant rate (re-publishing the buffered message if ~update_rate is higher than the input rate). doc
  • SynchronizedThrottle – throttles several topics (~topics, up to 8) synchronously and advertises them with ~suffix (default throttled). Parameters ~update_rate, ~approximate_sync, ~use_wall_time, … doc
  • Relay – like topic_tools/relay, with lazy mode and ~latch; ~always_subscribe disables the lazy mode. doc
  • StealthRelay – relays ~input only while ~monitor_topic (default: ~input) is subscribed by other nodes; it counts the subscribers of ~monitor_topic without itself, while its own subscription of ~input is a normal one. doc
  • Passthrough – relays only for a given duration. Services ~request, ~stop (std_srvs/Empty) and ~request_duration (jsk_topic_tools/PassthroughDuration); parameter ~default_duration (default 10.0 s). doc
  • HzMeasure – publishes the rate of ~input as std_msgs/Float32 on ~output and a diagnostic status. Parameters ~measure_time, ~message_num, ~warning_hz. doc
  • VitalCheckerNodelet – checks whether ~input is alive and publishes the status to /diagnostics.
  • MUX – nodelet version of topic_tools/mux: relays the selected one of ~topics to ~output; services ~select, ~add, ~delete, ~list_topics, and the name of the selected topic is published on ~selected (std_msgs/String).
  • Block – makes a chain of non-lazy nodes lazy: relays ~input to ~input_original and ~output_original to ~output, subscribing only while ~output is subscribed (checked at ~check_rate).
  • Snapshot – publishes a single ~input message to ~output each time the ~request service (std_srvs/Empty) is called.
  • StringRelay, DeprecatedRelay – std_msgs/String relay, and a relay that warns that the topic is deprecated.

standalone_complexed_nodelet is a nodelet manager that loads the nodelets listed in the ~nodelets (and ~nodelets_0 … ~nodelets_99) parameters itself, avoiding the unreliable bond between manager and loader processes. See standalone_complexed_nodelet.rst and sample/standalone_complexed_nodelet/simple.launch.

Nodes and scripts

  • filtered_relay.py (ROS 1 / ROS 2) – relays ~input to ~output only when the Python expression ~filter holds, optionally transforming it with ~transform. ~output_type is required. doc
  • array_to_heatmap.py (ROS 1 / ROS 2) – converts a numeric std_msgs/*MultiArray or single-channel sensor_msgs/Image into a colored bgr8 heatmap image. Parameters ~cell_size, ~colormap, ~min_value, ~max_value, … doc
  • transform_merger (ROS 1 / ROS 2) – subscribes /tf, keeps the latest transform per child frame and publishes them together on /tf_merged at ~loop_hz (default 1.0). The transform_config/ignore_tf list is ROS 1 only.
  • static_transform_pose_stamped (ROS 1 / ROS 2) – static_transform_pose_stamped x y z yaw pitch roll from_topic to_topic applies a fixed offset to every geometry_msgs/PoseStamped on from_topic and publishes it on to_topic.
  • string_relay_lifecycle_node (ROS 2) – example of ConnectionBasedLifecycleNode: relays std_msgs/String from ~/input to ~/output, subscribing only while ~/output is subscribed (parameters always_subscribe, verbose_connection).
  • topic_buffer_server / topic_buffer_client (ROS 1) – buffer topics over a slow network: the client republishes the server’s topics with the _buffered suffix, either periodically (~update_rate, ~fixed_rate) or on request via the update service.
  • boolean_node.py – or/and/not/xor of several boolean inputs. doc
  • synchronize_republish.py – republishes ~topics with exact/approximate synchronization. doc
  • is_synchronized – checks whether the given topics are synchronized. doc
  • rostopic_connection_list – lists topic connections between hosts. doc
  • static_tf_republisher.py – republishes /tf_static recorded in a rosbag. doc
  • tf_to_pose.py, tf_to_transform.py – publish a transform between two frames as PoseStamped / TransformStamped. (tf_to_pose, tf_to_transform)
  • transform_wrench.py – transforms a WrenchStamped into ~target_frame_id. doc
  • pose_stamped_publisher.py – publishes a static PoseStamped. doc

Base classes

  • jsk_topic_tools::ConnectionBasedNodelet (C++, ROS 1) – subscribes inputs only while outputs are subscribed; subclasses must call onInitPostProcess() at the end of onInit(). Being superseded by nodelet_topic_tools::NodeletLazy. doc
  • jsk_topic_tools::DiagnosticNodelet (C++, ROS 1) – ConnectionBasedNodelet that also publishes diagnostics (~vital_rate, ~use_warn). doc
  • jsk_topic_tools.ConnectionBasedTransport (Python, ROS 1) – the same pattern for rospy nodes; implement subscribe() / unsubscribe() and create publishers with self.advertise(). doc, example sample/simple_image_transport.py
  • jsk_topic_tools::ConnectionBasedLifecycleNode (C++, ROS 2) – rclcpp_lifecycle::LifecycleNode with the same lazy subscription behavior; see src/string_relay_lifecycle_node.cpp for a minimal subclass.

Usage

ROS 1:

```bash

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

No version for distro ardent showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

No version for distro bouncy showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

No version for distro crystal showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

No version for distro eloquent showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

No version for distro dashing showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

No version for distro galactic showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

No version for distro foxy showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

No version for distro iron showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

No version for distro lunar showing jazzy. Known supported distros are highlighted in the buttons above.

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version 3.0.5
Last Updated 2026-11-10
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata
README
No README found. See repository README.
CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata

jsk_topic_tools

Utilities to relay, throttle, filter, buffer and inspect ROS topics. The package provides a set of nodelets (lazy relays and throttles, mux, passthrough, Hz measurement, …), Python nodes and command line tools, and base classes for writing nodes that subscribe to their inputs only while their outputs are subscribed (ConnectionBasedNodelet, DiagnosticNodelet in C++, ConnectionBasedTransport in Python, and ConnectionBasedLifecycleNode on ROS 2).

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament_cmake); CMakeLists.txt branches on $ENV{ROS_VERSION}.

Item ROS 1 ROS 2
Nodelets jsk_topic_tools/{ConstantRateThrottle, LightweightThrottle, MUX, Relay, DeprecatedRelay, StealthRelay, Passthrough, Block, Snapshot, HzMeasure, VitalCheckerNodelet, StringRelay, SynchronizedThrottle} (also as standalone executables constant_rate_throttle, lightweight_throttle, mux, relay, deprecated_relay, stealth_relay, passthrough, block, snapshot, hz_measure, vital_checker, string_relay, synchronized_throttle) yes -
standalone_complexed_nodelet, topic_buffer_server, topic_buffer_client yes -
transform_merger, static_transform_pose_stamped yes yes
C++ library jsk_topic_tools (ConnectionBasedNodelet, DiagnosticNodelet, utilities) yes -
C++ library connection_based_lifecycle_node (ConnectionBasedLifecycleNode) - yes
Component jsk_topic_tools::StringRelayLifecycleNode (executable string_relay_lifecycle_node) - yes
Python module jsk_topic_tools yes yes
array_to_heatmap.py, filtered_relay.py yes yes
Other scripts (boolean_node.py, is_synchronized, rostopic_connection_list, synchronize_republish.py, static_tf_republisher.py, tf_to_pose.py, tf_to_transform.py, transform_wrench.py, pose_stamped_publisher.py, static_image_publisher.py, joint_state_pruner.py, topic_compare.py, topic_statistics.py, rosping_existence.py, bag2csv.py) yes -
Launch files in launch/ and sample/ yes -

There are no ROS 2 launch files; run the ROS 2 executables with ros2 run jsk_topic_tools <exe>.

Nodelets (ROS 1)

All nodelets subscribe ~input and publish ~output unless noted. Most of them are lazy: they subscribe ~input only while ~output has subscribers.

  • LightweightThrottle – like topic_tools/throttle, but subscribes the input only when the throttled topic is subscribed. Parameter ~update_rate (default 1.0 Hz). doc
  • ConstantRateThrottle – same interface as LightweightThrottle, but publishes at an accurate constant rate (re-publishing the buffered message if ~update_rate is higher than the input rate). doc
  • SynchronizedThrottle – throttles several topics (~topics, up to 8) synchronously and advertises them with ~suffix (default throttled). Parameters ~update_rate, ~approximate_sync, ~use_wall_time, … doc
  • Relay – like topic_tools/relay, with lazy mode and ~latch; ~always_subscribe disables the lazy mode. doc
  • StealthRelay – relays ~input only while ~monitor_topic (default: ~input) is subscribed by other nodes; it counts the subscribers of ~monitor_topic without itself, while its own subscription of ~input is a normal one. doc
  • Passthrough – relays only for a given duration. Services ~request, ~stop (std_srvs/Empty) and ~request_duration (jsk_topic_tools/PassthroughDuration); parameter ~default_duration (default 10.0 s). doc
  • HzMeasure – publishes the rate of ~input as std_msgs/Float32 on ~output and a diagnostic status. Parameters ~measure_time, ~message_num, ~warning_hz. doc
  • VitalCheckerNodelet – checks whether ~input is alive and publishes the status to /diagnostics.
  • MUX – nodelet version of topic_tools/mux: relays the selected one of ~topics to ~output; services ~select, ~add, ~delete, ~list_topics, and the name of the selected topic is published on ~selected (std_msgs/String).
  • Block – makes a chain of non-lazy nodes lazy: relays ~input to ~input_original and ~output_original to ~output, subscribing only while ~output is subscribed (checked at ~check_rate).
  • Snapshot – publishes a single ~input message to ~output each time the ~request service (std_srvs/Empty) is called.
  • StringRelay, DeprecatedRelay – std_msgs/String relay, and a relay that warns that the topic is deprecated.

standalone_complexed_nodelet is a nodelet manager that loads the nodelets listed in the ~nodelets (and ~nodelets_0 … ~nodelets_99) parameters itself, avoiding the unreliable bond between manager and loader processes. See standalone_complexed_nodelet.rst and sample/standalone_complexed_nodelet/simple.launch.

Nodes and scripts

  • filtered_relay.py (ROS 1 / ROS 2) – relays ~input to ~output only when the Python expression ~filter holds, optionally transforming it with ~transform. ~output_type is required. doc
  • array_to_heatmap.py (ROS 1 / ROS 2) – converts a numeric std_msgs/*MultiArray or single-channel sensor_msgs/Image into a colored bgr8 heatmap image. Parameters ~cell_size, ~colormap, ~min_value, ~max_value, … doc
  • transform_merger (ROS 1 / ROS 2) – subscribes /tf, keeps the latest transform per child frame and publishes them together on /tf_merged at ~loop_hz (default 1.0). The transform_config/ignore_tf list is ROS 1 only.
  • static_transform_pose_stamped (ROS 1 / ROS 2) – static_transform_pose_stamped x y z yaw pitch roll from_topic to_topic applies a fixed offset to every geometry_msgs/PoseStamped on from_topic and publishes it on to_topic.
  • string_relay_lifecycle_node (ROS 2) – example of ConnectionBasedLifecycleNode: relays std_msgs/String from ~/input to ~/output, subscribing only while ~/output is subscribed (parameters always_subscribe, verbose_connection).
  • topic_buffer_server / topic_buffer_client (ROS 1) – buffer topics over a slow network: the client republishes the server’s topics with the _buffered suffix, either periodically (~update_rate, ~fixed_rate) or on request via the update service.
  • boolean_node.py – or/and/not/xor of several boolean inputs. doc
  • synchronize_republish.py – republishes ~topics with exact/approximate synchronization. doc
  • is_synchronized – checks whether the given topics are synchronized. doc
  • rostopic_connection_list – lists topic connections between hosts. doc
  • static_tf_republisher.py – republishes /tf_static recorded in a rosbag. doc
  • tf_to_pose.py, tf_to_transform.py – publish a transform between two frames as PoseStamped / TransformStamped. (tf_to_pose, tf_to_transform)
  • transform_wrench.py – transforms a WrenchStamped into ~target_frame_id. doc
  • pose_stamped_publisher.py – publishes a static PoseStamped. doc

Base classes

  • jsk_topic_tools::ConnectionBasedNodelet (C++, ROS 1) – subscribes inputs only while outputs are subscribed; subclasses must call onInitPostProcess() at the end of onInit(). Being superseded by nodelet_topic_tools::NodeletLazy. doc
  • jsk_topic_tools::DiagnosticNodelet (C++, ROS 1) – ConnectionBasedNodelet that also publishes diagnostics (~vital_rate, ~use_warn). doc
  • jsk_topic_tools.ConnectionBasedTransport (Python, ROS 1) – the same pattern for rospy nodes; implement subscribe() / unsubscribe() and create publishers with self.advertise(). doc, example sample/simple_image_transport.py
  • jsk_topic_tools::ConnectionBasedLifecycleNode (C++, ROS 2) – rclcpp_lifecycle::LifecycleNode with the same lazy subscription behavior; see src/string_relay_lifecycle_node.cpp for a minimal subclass.

Usage

ROS 1:

```bash

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata

jsk_topic_tools

Utilities to relay, throttle, filter, buffer and inspect ROS topics. The package provides a set of nodelets (lazy relays and throttles, mux, passthrough, Hz measurement, …), Python nodes and command line tools, and base classes for writing nodes that subscribe to their inputs only while their outputs are subscribed (ConnectionBasedNodelet, DiagnosticNodelet in C++, ConnectionBasedTransport in Python, and ConnectionBasedLifecycleNode on ROS 2).

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament_cmake); CMakeLists.txt branches on $ENV{ROS_VERSION}.

Item ROS 1 ROS 2
Nodelets jsk_topic_tools/{ConstantRateThrottle, LightweightThrottle, MUX, Relay, DeprecatedRelay, StealthRelay, Passthrough, Block, Snapshot, HzMeasure, VitalCheckerNodelet, StringRelay, SynchronizedThrottle} (also as standalone executables constant_rate_throttle, lightweight_throttle, mux, relay, deprecated_relay, stealth_relay, passthrough, block, snapshot, hz_measure, vital_checker, string_relay, synchronized_throttle) yes -
standalone_complexed_nodelet, topic_buffer_server, topic_buffer_client yes -
transform_merger, static_transform_pose_stamped yes yes
C++ library jsk_topic_tools (ConnectionBasedNodelet, DiagnosticNodelet, utilities) yes -
C++ library connection_based_lifecycle_node (ConnectionBasedLifecycleNode) - yes
Component jsk_topic_tools::StringRelayLifecycleNode (executable string_relay_lifecycle_node) - yes
Python module jsk_topic_tools yes yes
array_to_heatmap.py, filtered_relay.py yes yes
Other scripts (boolean_node.py, is_synchronized, rostopic_connection_list, synchronize_republish.py, static_tf_republisher.py, tf_to_pose.py, tf_to_transform.py, transform_wrench.py, pose_stamped_publisher.py, static_image_publisher.py, joint_state_pruner.py, topic_compare.py, topic_statistics.py, rosping_existence.py, bag2csv.py) yes -
Launch files in launch/ and sample/ yes -

There are no ROS 2 launch files; run the ROS 2 executables with ros2 run jsk_topic_tools <exe>.

Nodelets (ROS 1)

All nodelets subscribe ~input and publish ~output unless noted. Most of them are lazy: they subscribe ~input only while ~output has subscribers.

  • LightweightThrottle – like topic_tools/throttle, but subscribes the input only when the throttled topic is subscribed. Parameter ~update_rate (default 1.0 Hz). doc
  • ConstantRateThrottle – same interface as LightweightThrottle, but publishes at an accurate constant rate (re-publishing the buffered message if ~update_rate is higher than the input rate). doc
  • SynchronizedThrottle – throttles several topics (~topics, up to 8) synchronously and advertises them with ~suffix (default throttled). Parameters ~update_rate, ~approximate_sync, ~use_wall_time, … doc
  • Relay – like topic_tools/relay, with lazy mode and ~latch; ~always_subscribe disables the lazy mode. doc
  • StealthRelay – relays ~input only while ~monitor_topic (default: ~input) is subscribed by other nodes; it counts the subscribers of ~monitor_topic without itself, while its own subscription of ~input is a normal one. doc
  • Passthrough – relays only for a given duration. Services ~request, ~stop (std_srvs/Empty) and ~request_duration (jsk_topic_tools/PassthroughDuration); parameter ~default_duration (default 10.0 s). doc
  • HzMeasure – publishes the rate of ~input as std_msgs/Float32 on ~output and a diagnostic status. Parameters ~measure_time, ~message_num, ~warning_hz. doc
  • VitalCheckerNodelet – checks whether ~input is alive and publishes the status to /diagnostics.
  • MUX – nodelet version of topic_tools/mux: relays the selected one of ~topics to ~output; services ~select, ~add, ~delete, ~list_topics, and the name of the selected topic is published on ~selected (std_msgs/String).
  • Block – makes a chain of non-lazy nodes lazy: relays ~input to ~input_original and ~output_original to ~output, subscribing only while ~output is subscribed (checked at ~check_rate).
  • Snapshot – publishes a single ~input message to ~output each time the ~request service (std_srvs/Empty) is called.
  • StringRelay, DeprecatedRelay – std_msgs/String relay, and a relay that warns that the topic is deprecated.

standalone_complexed_nodelet is a nodelet manager that loads the nodelets listed in the ~nodelets (and ~nodelets_0 … ~nodelets_99) parameters itself, avoiding the unreliable bond between manager and loader processes. See standalone_complexed_nodelet.rst and sample/standalone_complexed_nodelet/simple.launch.

Nodes and scripts

  • filtered_relay.py (ROS 1 / ROS 2) – relays ~input to ~output only when the Python expression ~filter holds, optionally transforming it with ~transform. ~output_type is required. doc
  • array_to_heatmap.py (ROS 1 / ROS 2) – converts a numeric std_msgs/*MultiArray or single-channel sensor_msgs/Image into a colored bgr8 heatmap image. Parameters ~cell_size, ~colormap, ~min_value, ~max_value, … doc
  • transform_merger (ROS 1 / ROS 2) – subscribes /tf, keeps the latest transform per child frame and publishes them together on /tf_merged at ~loop_hz (default 1.0). The transform_config/ignore_tf list is ROS 1 only.
  • static_transform_pose_stamped (ROS 1 / ROS 2) – static_transform_pose_stamped x y z yaw pitch roll from_topic to_topic applies a fixed offset to every geometry_msgs/PoseStamped on from_topic and publishes it on to_topic.
  • string_relay_lifecycle_node (ROS 2) – example of ConnectionBasedLifecycleNode: relays std_msgs/String from ~/input to ~/output, subscribing only while ~/output is subscribed (parameters always_subscribe, verbose_connection).
  • topic_buffer_server / topic_buffer_client (ROS 1) – buffer topics over a slow network: the client republishes the server’s topics with the _buffered suffix, either periodically (~update_rate, ~fixed_rate) or on request via the update service.
  • boolean_node.py – or/and/not/xor of several boolean inputs. doc
  • synchronize_republish.py – republishes ~topics with exact/approximate synchronization. doc
  • is_synchronized – checks whether the given topics are synchronized. doc
  • rostopic_connection_list – lists topic connections between hosts. doc
  • static_tf_republisher.py – republishes /tf_static recorded in a rosbag. doc
  • tf_to_pose.py, tf_to_transform.py – publish a transform between two frames as PoseStamped / TransformStamped. (tf_to_pose, tf_to_transform)
  • transform_wrench.py – transforms a WrenchStamped into ~target_frame_id. doc
  • pose_stamped_publisher.py – publishes a static PoseStamped. doc

Base classes

  • jsk_topic_tools::ConnectionBasedNodelet (C++, ROS 1) – subscribes inputs only while outputs are subscribed; subclasses must call onInitPostProcess() at the end of onInit(). Being superseded by nodelet_topic_tools::NodeletLazy. doc
  • jsk_topic_tools::DiagnosticNodelet (C++, ROS 1) – ConnectionBasedNodelet that also publishes diagnostics (~vital_rate, ~use_warn). doc
  • jsk_topic_tools.ConnectionBasedTransport (Python, ROS 1) – the same pattern for rospy nodes; implement subscribe() / unsubscribe() and create publishers with self.advertise(). doc, example sample/simple_image_transport.py
  • jsk_topic_tools::ConnectionBasedLifecycleNode (C++, ROS 2) – rclcpp_lifecycle::LifecycleNode with the same lazy subscription behavior; see src/string_relay_lifecycle_node.cpp for a minimal subclass.

Usage

ROS 1:

```bash

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata

jsk_topic_tools

Utilities to relay, throttle, filter, buffer and inspect ROS topics. The package provides a set of nodelets (lazy relays and throttles, mux, passthrough, Hz measurement, …), Python nodes and command line tools, and base classes for writing nodes that subscribe to their inputs only while their outputs are subscribed (ConnectionBasedNodelet, DiagnosticNodelet in C++, ConnectionBasedTransport in Python, and ConnectionBasedLifecycleNode on ROS 2).

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament_cmake); CMakeLists.txt branches on $ENV{ROS_VERSION}.

Item ROS 1 ROS 2
Nodelets jsk_topic_tools/{ConstantRateThrottle, LightweightThrottle, MUX, Relay, DeprecatedRelay, StealthRelay, Passthrough, Block, Snapshot, HzMeasure, VitalCheckerNodelet, StringRelay, SynchronizedThrottle} (also as standalone executables constant_rate_throttle, lightweight_throttle, mux, relay, deprecated_relay, stealth_relay, passthrough, block, snapshot, hz_measure, vital_checker, string_relay, synchronized_throttle) yes -
standalone_complexed_nodelet, topic_buffer_server, topic_buffer_client yes -
transform_merger, static_transform_pose_stamped yes yes
C++ library jsk_topic_tools (ConnectionBasedNodelet, DiagnosticNodelet, utilities) yes -
C++ library connection_based_lifecycle_node (ConnectionBasedLifecycleNode) - yes
Component jsk_topic_tools::StringRelayLifecycleNode (executable string_relay_lifecycle_node) - yes
Python module jsk_topic_tools yes yes
array_to_heatmap.py, filtered_relay.py yes yes
Other scripts (boolean_node.py, is_synchronized, rostopic_connection_list, synchronize_republish.py, static_tf_republisher.py, tf_to_pose.py, tf_to_transform.py, transform_wrench.py, pose_stamped_publisher.py, static_image_publisher.py, joint_state_pruner.py, topic_compare.py, topic_statistics.py, rosping_existence.py, bag2csv.py) yes -
Launch files in launch/ and sample/ yes -

There are no ROS 2 launch files; run the ROS 2 executables with ros2 run jsk_topic_tools <exe>.

Nodelets (ROS 1)

All nodelets subscribe ~input and publish ~output unless noted. Most of them are lazy: they subscribe ~input only while ~output has subscribers.

  • LightweightThrottle – like topic_tools/throttle, but subscribes the input only when the throttled topic is subscribed. Parameter ~update_rate (default 1.0 Hz). doc
  • ConstantRateThrottle – same interface as LightweightThrottle, but publishes at an accurate constant rate (re-publishing the buffered message if ~update_rate is higher than the input rate). doc
  • SynchronizedThrottle – throttles several topics (~topics, up to 8) synchronously and advertises them with ~suffix (default throttled). Parameters ~update_rate, ~approximate_sync, ~use_wall_time, … doc
  • Relay – like topic_tools/relay, with lazy mode and ~latch; ~always_subscribe disables the lazy mode. doc
  • StealthRelay – relays ~input only while ~monitor_topic (default: ~input) is subscribed by other nodes; it counts the subscribers of ~monitor_topic without itself, while its own subscription of ~input is a normal one. doc
  • Passthrough – relays only for a given duration. Services ~request, ~stop (std_srvs/Empty) and ~request_duration (jsk_topic_tools/PassthroughDuration); parameter ~default_duration (default 10.0 s). doc
  • HzMeasure – publishes the rate of ~input as std_msgs/Float32 on ~output and a diagnostic status. Parameters ~measure_time, ~message_num, ~warning_hz. doc
  • VitalCheckerNodelet – checks whether ~input is alive and publishes the status to /diagnostics.
  • MUX – nodelet version of topic_tools/mux: relays the selected one of ~topics to ~output; services ~select, ~add, ~delete, ~list_topics, and the name of the selected topic is published on ~selected (std_msgs/String).
  • Block – makes a chain of non-lazy nodes lazy: relays ~input to ~input_original and ~output_original to ~output, subscribing only while ~output is subscribed (checked at ~check_rate).
  • Snapshot – publishes a single ~input message to ~output each time the ~request service (std_srvs/Empty) is called.
  • StringRelay, DeprecatedRelay – std_msgs/String relay, and a relay that warns that the topic is deprecated.

standalone_complexed_nodelet is a nodelet manager that loads the nodelets listed in the ~nodelets (and ~nodelets_0 … ~nodelets_99) parameters itself, avoiding the unreliable bond between manager and loader processes. See standalone_complexed_nodelet.rst and sample/standalone_complexed_nodelet/simple.launch.

Nodes and scripts

  • filtered_relay.py (ROS 1 / ROS 2) – relays ~input to ~output only when the Python expression ~filter holds, optionally transforming it with ~transform. ~output_type is required. doc
  • array_to_heatmap.py (ROS 1 / ROS 2) – converts a numeric std_msgs/*MultiArray or single-channel sensor_msgs/Image into a colored bgr8 heatmap image. Parameters ~cell_size, ~colormap, ~min_value, ~max_value, … doc
  • transform_merger (ROS 1 / ROS 2) – subscribes /tf, keeps the latest transform per child frame and publishes them together on /tf_merged at ~loop_hz (default 1.0). The transform_config/ignore_tf list is ROS 1 only.
  • static_transform_pose_stamped (ROS 1 / ROS 2) – static_transform_pose_stamped x y z yaw pitch roll from_topic to_topic applies a fixed offset to every geometry_msgs/PoseStamped on from_topic and publishes it on to_topic.
  • string_relay_lifecycle_node (ROS 2) – example of ConnectionBasedLifecycleNode: relays std_msgs/String from ~/input to ~/output, subscribing only while ~/output is subscribed (parameters always_subscribe, verbose_connection).
  • topic_buffer_server / topic_buffer_client (ROS 1) – buffer topics over a slow network: the client republishes the server’s topics with the _buffered suffix, either periodically (~update_rate, ~fixed_rate) or on request via the update service.
  • boolean_node.py – or/and/not/xor of several boolean inputs. doc
  • synchronize_republish.py – republishes ~topics with exact/approximate synchronization. doc
  • is_synchronized – checks whether the given topics are synchronized. doc
  • rostopic_connection_list – lists topic connections between hosts. doc
  • static_tf_republisher.py – republishes /tf_static recorded in a rosbag. doc
  • tf_to_pose.py, tf_to_transform.py – publish a transform between two frames as PoseStamped / TransformStamped. (tf_to_pose, tf_to_transform)
  • transform_wrench.py – transforms a WrenchStamped into ~target_frame_id. doc
  • pose_stamped_publisher.py – publishes a static PoseStamped. doc

Base classes

  • jsk_topic_tools::ConnectionBasedNodelet (C++, ROS 1) – subscribes inputs only while outputs are subscribed; subclasses must call onInitPostProcess() at the end of onInit(). Being superseded by nodelet_topic_tools::NodeletLazy. doc
  • jsk_topic_tools::DiagnosticNodelet (C++, ROS 1) – ConnectionBasedNodelet that also publishes diagnostics (~vital_rate, ~use_warn). doc
  • jsk_topic_tools.ConnectionBasedTransport (Python, ROS 1) – the same pattern for rospy nodes; implement subscribe() / unsubscribe() and create publishers with self.advertise(). doc, example sample/simple_image_transport.py
  • jsk_topic_tools::ConnectionBasedLifecycleNode (C++, ROS 2) – rclcpp_lifecycle::LifecycleNode with the same lazy subscription behavior; see src/string_relay_lifecycle_node.cpp for a minimal subclass.

Usage

ROS 1:

```bash

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata

jsk_topic_tools

Utilities to relay, throttle, filter, buffer and inspect ROS topics. The package provides a set of nodelets (lazy relays and throttles, mux, passthrough, Hz measurement, …), Python nodes and command line tools, and base classes for writing nodes that subscribe to their inputs only while their outputs are subscribed (ConnectionBasedNodelet, DiagnosticNodelet in C++, ConnectionBasedTransport in Python, and ConnectionBasedLifecycleNode on ROS 2).

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament_cmake); CMakeLists.txt branches on $ENV{ROS_VERSION}.

Item ROS 1 ROS 2
Nodelets jsk_topic_tools/{ConstantRateThrottle, LightweightThrottle, MUX, Relay, DeprecatedRelay, StealthRelay, Passthrough, Block, Snapshot, HzMeasure, VitalCheckerNodelet, StringRelay, SynchronizedThrottle} (also as standalone executables constant_rate_throttle, lightweight_throttle, mux, relay, deprecated_relay, stealth_relay, passthrough, block, snapshot, hz_measure, vital_checker, string_relay, synchronized_throttle) yes -
standalone_complexed_nodelet, topic_buffer_server, topic_buffer_client yes -
transform_merger, static_transform_pose_stamped yes yes
C++ library jsk_topic_tools (ConnectionBasedNodelet, DiagnosticNodelet, utilities) yes -
C++ library connection_based_lifecycle_node (ConnectionBasedLifecycleNode) - yes
Component jsk_topic_tools::StringRelayLifecycleNode (executable string_relay_lifecycle_node) - yes
Python module jsk_topic_tools yes yes
array_to_heatmap.py, filtered_relay.py yes yes
Other scripts (boolean_node.py, is_synchronized, rostopic_connection_list, synchronize_republish.py, static_tf_republisher.py, tf_to_pose.py, tf_to_transform.py, transform_wrench.py, pose_stamped_publisher.py, static_image_publisher.py, joint_state_pruner.py, topic_compare.py, topic_statistics.py, rosping_existence.py, bag2csv.py) yes -
Launch files in launch/ and sample/ yes -

There are no ROS 2 launch files; run the ROS 2 executables with ros2 run jsk_topic_tools <exe>.

Nodelets (ROS 1)

All nodelets subscribe ~input and publish ~output unless noted. Most of them are lazy: they subscribe ~input only while ~output has subscribers.

  • LightweightThrottle – like topic_tools/throttle, but subscribes the input only when the throttled topic is subscribed. Parameter ~update_rate (default 1.0 Hz). doc
  • ConstantRateThrottle – same interface as LightweightThrottle, but publishes at an accurate constant rate (re-publishing the buffered message if ~update_rate is higher than the input rate). doc
  • SynchronizedThrottle – throttles several topics (~topics, up to 8) synchronously and advertises them with ~suffix (default throttled). Parameters ~update_rate, ~approximate_sync, ~use_wall_time, … doc
  • Relay – like topic_tools/relay, with lazy mode and ~latch; ~always_subscribe disables the lazy mode. doc
  • StealthRelay – relays ~input only while ~monitor_topic (default: ~input) is subscribed by other nodes; it counts the subscribers of ~monitor_topic without itself, while its own subscription of ~input is a normal one. doc
  • Passthrough – relays only for a given duration. Services ~request, ~stop (std_srvs/Empty) and ~request_duration (jsk_topic_tools/PassthroughDuration); parameter ~default_duration (default 10.0 s). doc
  • HzMeasure – publishes the rate of ~input as std_msgs/Float32 on ~output and a diagnostic status. Parameters ~measure_time, ~message_num, ~warning_hz. doc
  • VitalCheckerNodelet – checks whether ~input is alive and publishes the status to /diagnostics.
  • MUX – nodelet version of topic_tools/mux: relays the selected one of ~topics to ~output; services ~select, ~add, ~delete, ~list_topics, and the name of the selected topic is published on ~selected (std_msgs/String).
  • Block – makes a chain of non-lazy nodes lazy: relays ~input to ~input_original and ~output_original to ~output, subscribing only while ~output is subscribed (checked at ~check_rate).
  • Snapshot – publishes a single ~input message to ~output each time the ~request service (std_srvs/Empty) is called.
  • StringRelay, DeprecatedRelay – std_msgs/String relay, and a relay that warns that the topic is deprecated.

standalone_complexed_nodelet is a nodelet manager that loads the nodelets listed in the ~nodelets (and ~nodelets_0 … ~nodelets_99) parameters itself, avoiding the unreliable bond between manager and loader processes. See standalone_complexed_nodelet.rst and sample/standalone_complexed_nodelet/simple.launch.

Nodes and scripts

  • filtered_relay.py (ROS 1 / ROS 2) – relays ~input to ~output only when the Python expression ~filter holds, optionally transforming it with ~transform. ~output_type is required. doc
  • array_to_heatmap.py (ROS 1 / ROS 2) – converts a numeric std_msgs/*MultiArray or single-channel sensor_msgs/Image into a colored bgr8 heatmap image. Parameters ~cell_size, ~colormap, ~min_value, ~max_value, … doc
  • transform_merger (ROS 1 / ROS 2) – subscribes /tf, keeps the latest transform per child frame and publishes them together on /tf_merged at ~loop_hz (default 1.0). The transform_config/ignore_tf list is ROS 1 only.
  • static_transform_pose_stamped (ROS 1 / ROS 2) – static_transform_pose_stamped x y z yaw pitch roll from_topic to_topic applies a fixed offset to every geometry_msgs/PoseStamped on from_topic and publishes it on to_topic.
  • string_relay_lifecycle_node (ROS 2) – example of ConnectionBasedLifecycleNode: relays std_msgs/String from ~/input to ~/output, subscribing only while ~/output is subscribed (parameters always_subscribe, verbose_connection).
  • topic_buffer_server / topic_buffer_client (ROS 1) – buffer topics over a slow network: the client republishes the server’s topics with the _buffered suffix, either periodically (~update_rate, ~fixed_rate) or on request via the update service.
  • boolean_node.py – or/and/not/xor of several boolean inputs. doc
  • synchronize_republish.py – republishes ~topics with exact/approximate synchronization. doc
  • is_synchronized – checks whether the given topics are synchronized. doc
  • rostopic_connection_list – lists topic connections between hosts. doc
  • static_tf_republisher.py – republishes /tf_static recorded in a rosbag. doc
  • tf_to_pose.py, tf_to_transform.py – publish a transform between two frames as PoseStamped / TransformStamped. (tf_to_pose, tf_to_transform)
  • transform_wrench.py – transforms a WrenchStamped into ~target_frame_id. doc
  • pose_stamped_publisher.py – publishes a static PoseStamped. doc

Base classes

  • jsk_topic_tools::ConnectionBasedNodelet (C++, ROS 1) – subscribes inputs only while outputs are subscribed; subclasses must call onInitPostProcess() at the end of onInit(). Being superseded by nodelet_topic_tools::NodeletLazy. doc
  • jsk_topic_tools::DiagnosticNodelet (C++, ROS 1) – ConnectionBasedNodelet that also publishes diagnostics (~vital_rate, ~use_warn). doc
  • jsk_topic_tools.ConnectionBasedTransport (Python, ROS 1) – the same pattern for rospy nodes; implement subscribe() / unsubscribe() and create publishers with self.advertise(). doc, example sample/simple_image_transport.py
  • jsk_topic_tools::ConnectionBasedLifecycleNode (C++, ROS 2) – rclcpp_lifecycle::LifecycleNode with the same lazy subscription behavior; see src/string_relay_lifecycle_node.cpp for a minimal subclass.

Usage

ROS 1:

```bash

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata

jsk_topic_tools

Utilities to relay, throttle, filter, buffer and inspect ROS topics. The package provides a set of nodelets (lazy relays and throttles, mux, passthrough, Hz measurement, …), Python nodes and command line tools, and base classes for writing nodes that subscribe to their inputs only while their outputs are subscribed (ConnectionBasedNodelet, DiagnosticNodelet in C++, ConnectionBasedTransport in Python, and ConnectionBasedLifecycleNode on ROS 2).

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament_cmake); CMakeLists.txt branches on $ENV{ROS_VERSION}.

Item ROS 1 ROS 2
Nodelets jsk_topic_tools/{ConstantRateThrottle, LightweightThrottle, MUX, Relay, DeprecatedRelay, StealthRelay, Passthrough, Block, Snapshot, HzMeasure, VitalCheckerNodelet, StringRelay, SynchronizedThrottle} (also as standalone executables constant_rate_throttle, lightweight_throttle, mux, relay, deprecated_relay, stealth_relay, passthrough, block, snapshot, hz_measure, vital_checker, string_relay, synchronized_throttle) yes -
standalone_complexed_nodelet, topic_buffer_server, topic_buffer_client yes -
transform_merger, static_transform_pose_stamped yes yes
C++ library jsk_topic_tools (ConnectionBasedNodelet, DiagnosticNodelet, utilities) yes -
C++ library connection_based_lifecycle_node (ConnectionBasedLifecycleNode) - yes
Component jsk_topic_tools::StringRelayLifecycleNode (executable string_relay_lifecycle_node) - yes
Python module jsk_topic_tools yes yes
array_to_heatmap.py, filtered_relay.py yes yes
Other scripts (boolean_node.py, is_synchronized, rostopic_connection_list, synchronize_republish.py, static_tf_republisher.py, tf_to_pose.py, tf_to_transform.py, transform_wrench.py, pose_stamped_publisher.py, static_image_publisher.py, joint_state_pruner.py, topic_compare.py, topic_statistics.py, rosping_existence.py, bag2csv.py) yes -
Launch files in launch/ and sample/ yes -

There are no ROS 2 launch files; run the ROS 2 executables with ros2 run jsk_topic_tools <exe>.

Nodelets (ROS 1)

All nodelets subscribe ~input and publish ~output unless noted. Most of them are lazy: they subscribe ~input only while ~output has subscribers.

  • LightweightThrottle – like topic_tools/throttle, but subscribes the input only when the throttled topic is subscribed. Parameter ~update_rate (default 1.0 Hz). doc
  • ConstantRateThrottle – same interface as LightweightThrottle, but publishes at an accurate constant rate (re-publishing the buffered message if ~update_rate is higher than the input rate). doc
  • SynchronizedThrottle – throttles several topics (~topics, up to 8) synchronously and advertises them with ~suffix (default throttled). Parameters ~update_rate, ~approximate_sync, ~use_wall_time, … doc
  • Relay – like topic_tools/relay, with lazy mode and ~latch; ~always_subscribe disables the lazy mode. doc
  • StealthRelay – relays ~input only while ~monitor_topic (default: ~input) is subscribed by other nodes; it counts the subscribers of ~monitor_topic without itself, while its own subscription of ~input is a normal one. doc
  • Passthrough – relays only for a given duration. Services ~request, ~stop (std_srvs/Empty) and ~request_duration (jsk_topic_tools/PassthroughDuration); parameter ~default_duration (default 10.0 s). doc
  • HzMeasure – publishes the rate of ~input as std_msgs/Float32 on ~output and a diagnostic status. Parameters ~measure_time, ~message_num, ~warning_hz. doc
  • VitalCheckerNodelet – checks whether ~input is alive and publishes the status to /diagnostics.
  • MUX – nodelet version of topic_tools/mux: relays the selected one of ~topics to ~output; services ~select, ~add, ~delete, ~list_topics, and the name of the selected topic is published on ~selected (std_msgs/String).
  • Block – makes a chain of non-lazy nodes lazy: relays ~input to ~input_original and ~output_original to ~output, subscribing only while ~output is subscribed (checked at ~check_rate).
  • Snapshot – publishes a single ~input message to ~output each time the ~request service (std_srvs/Empty) is called.
  • StringRelay, DeprecatedRelay – std_msgs/String relay, and a relay that warns that the topic is deprecated.

standalone_complexed_nodelet is a nodelet manager that loads the nodelets listed in the ~nodelets (and ~nodelets_0 … ~nodelets_99) parameters itself, avoiding the unreliable bond between manager and loader processes. See standalone_complexed_nodelet.rst and sample/standalone_complexed_nodelet/simple.launch.

Nodes and scripts

  • filtered_relay.py (ROS 1 / ROS 2) – relays ~input to ~output only when the Python expression ~filter holds, optionally transforming it with ~transform. ~output_type is required. doc
  • array_to_heatmap.py (ROS 1 / ROS 2) – converts a numeric std_msgs/*MultiArray or single-channel sensor_msgs/Image into a colored bgr8 heatmap image. Parameters ~cell_size, ~colormap, ~min_value, ~max_value, … doc
  • transform_merger (ROS 1 / ROS 2) – subscribes /tf, keeps the latest transform per child frame and publishes them together on /tf_merged at ~loop_hz (default 1.0). The transform_config/ignore_tf list is ROS 1 only.
  • static_transform_pose_stamped (ROS 1 / ROS 2) – static_transform_pose_stamped x y z yaw pitch roll from_topic to_topic applies a fixed offset to every geometry_msgs/PoseStamped on from_topic and publishes it on to_topic.
  • string_relay_lifecycle_node (ROS 2) – example of ConnectionBasedLifecycleNode: relays std_msgs/String from ~/input to ~/output, subscribing only while ~/output is subscribed (parameters always_subscribe, verbose_connection).
  • topic_buffer_server / topic_buffer_client (ROS 1) – buffer topics over a slow network: the client republishes the server’s topics with the _buffered suffix, either periodically (~update_rate, ~fixed_rate) or on request via the update service.
  • boolean_node.py – or/and/not/xor of several boolean inputs. doc
  • synchronize_republish.py – republishes ~topics with exact/approximate synchronization. doc
  • is_synchronized – checks whether the given topics are synchronized. doc
  • rostopic_connection_list – lists topic connections between hosts. doc
  • static_tf_republisher.py – republishes /tf_static recorded in a rosbag. doc
  • tf_to_pose.py, tf_to_transform.py – publish a transform between two frames as PoseStamped / TransformStamped. (tf_to_pose, tf_to_transform)
  • transform_wrench.py – transforms a WrenchStamped into ~target_frame_id. doc
  • pose_stamped_publisher.py – publishes a static PoseStamped. doc

Base classes

  • jsk_topic_tools::ConnectionBasedNodelet (C++, ROS 1) – subscribes inputs only while outputs are subscribed; subclasses must call onInitPostProcess() at the end of onInit(). Being superseded by nodelet_topic_tools::NodeletLazy. doc
  • jsk_topic_tools::DiagnosticNodelet (C++, ROS 1) – ConnectionBasedNodelet that also publishes diagnostics (~vital_rate, ~use_warn). doc
  • jsk_topic_tools.ConnectionBasedTransport (Python, ROS 1) – the same pattern for rospy nodes; implement subscribe() / unsubscribe() and create publishers with self.advertise(). doc, example sample/simple_image_transport.py
  • jsk_topic_tools::ConnectionBasedLifecycleNode (C++, ROS 2) – rclcpp_lifecycle::LifecycleNode with the same lazy subscription behavior; see src/string_relay_lifecycle_node.cpp for a minimal subclass.

Usage

ROS 1:

```bash

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange

Package Summary

Version 3.0.5
License BSD-3-Clause
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_common.git
VCS Type git
VCS Version master
Last Updated 2026-11-18
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

jsk_topic_tools

Additional Links

Maintainers

  • Kei Okada
  • Ryohei Ueda
  • Yoshiki Obinata

Authors

  • Kei Okada
  • Yusuke Furuta
  • Yoshiki Obinata

jsk_topic_tools

Utilities to relay, throttle, filter, buffer and inspect ROS topics. The package provides a set of nodelets (lazy relays and throttles, mux, passthrough, Hz measurement, …), Python nodes and command line tools, and base classes for writing nodes that subscribe to their inputs only while their outputs are subscribed (ConnectionBasedNodelet, DiagnosticNodelet in C++, ConnectionBasedTransport in Python, and ConnectionBasedLifecycleNode on ROS 2).

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament_cmake); CMakeLists.txt branches on $ENV{ROS_VERSION}.

Item ROS 1 ROS 2
Nodelets jsk_topic_tools/{ConstantRateThrottle, LightweightThrottle, MUX, Relay, DeprecatedRelay, StealthRelay, Passthrough, Block, Snapshot, HzMeasure, VitalCheckerNodelet, StringRelay, SynchronizedThrottle} (also as standalone executables constant_rate_throttle, lightweight_throttle, mux, relay, deprecated_relay, stealth_relay, passthrough, block, snapshot, hz_measure, vital_checker, string_relay, synchronized_throttle) yes -
standalone_complexed_nodelet, topic_buffer_server, topic_buffer_client yes -
transform_merger, static_transform_pose_stamped yes yes
C++ library jsk_topic_tools (ConnectionBasedNodelet, DiagnosticNodelet, utilities) yes -
C++ library connection_based_lifecycle_node (ConnectionBasedLifecycleNode) - yes
Component jsk_topic_tools::StringRelayLifecycleNode (executable string_relay_lifecycle_node) - yes
Python module jsk_topic_tools yes yes
array_to_heatmap.py, filtered_relay.py yes yes
Other scripts (boolean_node.py, is_synchronized, rostopic_connection_list, synchronize_republish.py, static_tf_republisher.py, tf_to_pose.py, tf_to_transform.py, transform_wrench.py, pose_stamped_publisher.py, static_image_publisher.py, joint_state_pruner.py, topic_compare.py, topic_statistics.py, rosping_existence.py, bag2csv.py) yes -
Launch files in launch/ and sample/ yes -

There are no ROS 2 launch files; run the ROS 2 executables with ros2 run jsk_topic_tools <exe>.

Nodelets (ROS 1)

All nodelets subscribe ~input and publish ~output unless noted. Most of them are lazy: they subscribe ~input only while ~output has subscribers.

  • LightweightThrottle – like topic_tools/throttle, but subscribes the input only when the throttled topic is subscribed. Parameter ~update_rate (default 1.0 Hz). doc
  • ConstantRateThrottle – same interface as LightweightThrottle, but publishes at an accurate constant rate (re-publishing the buffered message if ~update_rate is higher than the input rate). doc
  • SynchronizedThrottle – throttles several topics (~topics, up to 8) synchronously and advertises them with ~suffix (default throttled). Parameters ~update_rate, ~approximate_sync, ~use_wall_time, … doc
  • Relay – like topic_tools/relay, with lazy mode and ~latch; ~always_subscribe disables the lazy mode. doc
  • StealthRelay – relays ~input only while ~monitor_topic (default: ~input) is subscribed by other nodes; it counts the subscribers of ~monitor_topic without itself, while its own subscription of ~input is a normal one. doc
  • Passthrough – relays only for a given duration. Services ~request, ~stop (std_srvs/Empty) and ~request_duration (jsk_topic_tools/PassthroughDuration); parameter ~default_duration (default 10.0 s). doc
  • HzMeasure – publishes the rate of ~input as std_msgs/Float32 on ~output and a diagnostic status. Parameters ~measure_time, ~message_num, ~warning_hz. doc
  • VitalCheckerNodelet – checks whether ~input is alive and publishes the status to /diagnostics.
  • MUX – nodelet version of topic_tools/mux: relays the selected one of ~topics to ~output; services ~select, ~add, ~delete, ~list_topics, and the name of the selected topic is published on ~selected (std_msgs/String).
  • Block – makes a chain of non-lazy nodes lazy: relays ~input to ~input_original and ~output_original to ~output, subscribing only while ~output is subscribed (checked at ~check_rate).
  • Snapshot – publishes a single ~input message to ~output each time the ~request service (std_srvs/Empty) is called.
  • StringRelay, DeprecatedRelay – std_msgs/String relay, and a relay that warns that the topic is deprecated.

standalone_complexed_nodelet is a nodelet manager that loads the nodelets listed in the ~nodelets (and ~nodelets_0 … ~nodelets_99) parameters itself, avoiding the unreliable bond between manager and loader processes. See standalone_complexed_nodelet.rst and sample/standalone_complexed_nodelet/simple.launch.

Nodes and scripts

  • filtered_relay.py (ROS 1 / ROS 2) – relays ~input to ~output only when the Python expression ~filter holds, optionally transforming it with ~transform. ~output_type is required. doc
  • array_to_heatmap.py (ROS 1 / ROS 2) – converts a numeric std_msgs/*MultiArray or single-channel sensor_msgs/Image into a colored bgr8 heatmap image. Parameters ~cell_size, ~colormap, ~min_value, ~max_value, … doc
  • transform_merger (ROS 1 / ROS 2) – subscribes /tf, keeps the latest transform per child frame and publishes them together on /tf_merged at ~loop_hz (default 1.0). The transform_config/ignore_tf list is ROS 1 only.
  • static_transform_pose_stamped (ROS 1 / ROS 2) – static_transform_pose_stamped x y z yaw pitch roll from_topic to_topic applies a fixed offset to every geometry_msgs/PoseStamped on from_topic and publishes it on to_topic.
  • string_relay_lifecycle_node (ROS 2) – example of ConnectionBasedLifecycleNode: relays std_msgs/String from ~/input to ~/output, subscribing only while ~/output is subscribed (parameters always_subscribe, verbose_connection).
  • topic_buffer_server / topic_buffer_client (ROS 1) – buffer topics over a slow network: the client republishes the server’s topics with the _buffered suffix, either periodically (~update_rate, ~fixed_rate) or on request via the update service.
  • boolean_node.py – or/and/not/xor of several boolean inputs. doc
  • synchronize_republish.py – republishes ~topics with exact/approximate synchronization. doc
  • is_synchronized – checks whether the given topics are synchronized. doc
  • rostopic_connection_list – lists topic connections between hosts. doc
  • static_tf_republisher.py – republishes /tf_static recorded in a rosbag. doc
  • tf_to_pose.py, tf_to_transform.py – publish a transform between two frames as PoseStamped / TransformStamped. (tf_to_pose, tf_to_transform)
  • transform_wrench.py – transforms a WrenchStamped into ~target_frame_id. doc
  • pose_stamped_publisher.py – publishes a static PoseStamped. doc

Base classes

  • jsk_topic_tools::ConnectionBasedNodelet (C++, ROS 1) – subscribes inputs only while outputs are subscribed; subclasses must call onInitPostProcess() at the end of onInit(). Being superseded by nodelet_topic_tools::NodeletLazy. doc
  • jsk_topic_tools::DiagnosticNodelet (C++, ROS 1) – ConnectionBasedNodelet that also publishes diagnostics (~vital_rate, ~use_warn). doc
  • jsk_topic_tools.ConnectionBasedTransport (Python, ROS 1) – the same pattern for rospy nodes; implement subscribe() / unsubscribe() and create publishers with self.advertise(). doc, example sample/simple_image_transport.py
  • jsk_topic_tools::ConnectionBasedLifecycleNode (C++, ROS 2) – rclcpp_lifecycle::LifecycleNode with the same lazy subscription behavior; see src/string_relay_lifecycle_node.cpp for a minimal subclass.

Usage

ROS 1:

```bash

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_topic_tools

3.0.5 (2026-11-10)

  • Merge pull request #1841 from k-okada/rosdistro-55117-review rosdistro#55117 review: add LICENSE to each package, use SPDX license identifiers
  • use SPDX license identifiers (BSD-3-Clause, Apache-2.0) in package.xml BSD -> BSD-3-Clause and "Apache License 2.0" -> Apache-2.0 in all packages (ros/rosdistro#55117 review: "BSD is ambiguous. The headers show the 3-clause variant, so BSD-3-Clause (SPDX) is preferred."). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • add LICENSE to each package (BSD-3-Clause, jsk_tools: Apache-2.0) The ROS2 release review of jsk_common in ros/rosdistro#55117 says (https://github.com/ros/rosdistro/pull/55117#issuecomment-6757665510): > - [ ] At least one of the following must be present > - [ ] Top level license file: None. There is no LICENSE/COPYING at > the repo root (tree @ cbbd0ab). > - [ ] Per package license files: None. No package directory has a > license file. The license text only appears in source-file headers > (e.g. deprecated_relay.h#L1-L33, BSD-3-Clause, "JSK Lab"). Since jsk_tools is Apache-2.0 and the others are BSD-3-Clause, add a license file to each package instead of one at the top level. The BSD ones use the same text as the source headers, "Copyright (c) <year>-, JSK Lab" where <year> is when the package.xml was added, and jsk_tools has the Apache License 2.0 text from apache.org. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

3.0.4 (2026-11-04)

3.0.3 (2026-11-03)

  • Merge pull request #1836 from k-okada/filtered-relay-ros2 [jsk_topic_tools] Add filtered_relay.py for ROS1 and ROS2 (based on #1757)

  • [jsk_topic_tools] filtered_relay: support ROS2 What does not map one-to-one onto jsk_ros1_ros2_compat, branched on ROS_VERSION with the ROS1 code left as is:

    - ROS2 has no AnyMsg: poll the type of ~input with a timer and subscribe once it is known (subscribe(), ROS2 only).

    - rclpy's publish() takes one message: publish the ~transform result as is if it is an ~output_type message, else build one from its field values (rclpy messages take keyword arguments only), as rospy's publish(*res) does. std_msgs/Empty: publish(self.output_class()). Add a ROS2 pytest, install the script on ROS2, and a ros2 run example in the document. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: use jsk_ros1_ros2_compat Replace rospy/roslib calls that have a jsk_ros1_ros2_compat equivalent, passing the node (None on ROS1). The ROS1-only parts (rospy.AnyMsg, rospy.Subscriber, rospy.resolve_name) are left as they are, so this works the same on ROS1. Done mechanically with the sed script in the commit message. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools] filtered_relay: fix e.message for Python 3 Python 3 exceptions have no .message, so reporting a wrong ~transform raised AttributeError. 2to3 does not convert this (it has nothing to change in this file), so it is done by hand. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • [jsk_topic_tools/filtered_relay] Add test and document

  • [jsk_topic_tools] Add filtered relay

  • Merge pull request #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

  • Merge pull request #1834 from pazeshun/array-to-heatmap [jsk_ros1_ros2_compat, jsk_topic_tools, jsk_rosbag_tools] Add array heatmap tools with ROS 1 and ROS 2 support

  • [jsk_topic_tools] package.xml: add boost build_depend for ROS2 transform_merger and static_transform_pose_stamped include boost/shared_ptr.hpp and boost/make_shared.hpp. ROS1 gets boost through roscpp and the repository-wide CI gets it from other packages, but the buildfarm builds each package with only its own build dependencies, where the build fails with "boost/shared_ptr.hpp: No such file or directory". Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Guess ROS_VERSION from AMENT_PREFIX_PATH when unset, depend on ros_environment The ROS2 binary jobs of the buildfarm failed at find_package(catkin): they install only the build dependencies, none of which pulls in ros_environment, so $ENV{ROS_VERSION} is empty and the fallback at the top of CMakeLists.txt chose ROS1.

File truncated at 100 lines see the full file

Launch files

Messages

Plugins

Recent questions tagged jsk_topic_tools at Robotics Stack Exchange