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

Package Summary

Version 3.0.6
License Apache-2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

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

Package Description

Includes emacs scripts, ros tool alias generator, and launch doc generator.

Additional Links

Maintainers

  • Ryohei Ueda

Authors

  • Ryohei Ueda (ueda jsk.t.u-tokyo.ac.jp)
  • Rosen Diankov (rosen.diankov gmail.com)

jsk_tools

Everyday tools for working with ROS robots in JSK. The package provides a node that speaks diagnostics errors (audible_warning.py), command line tools to monitor topics, hosts and roscore, test nodes for rostest, shell functions to set up ROS_MASTER_URI / ROS_IP, and dot files for emacs and tmux.

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
audible_warning.py (node_scripts/) yes yes
battery_capacity_summary.py (bin/) yes yes
Python module jsk_tools yes yes
Other tools in bin/ (roscore_regardless.py, bag_plotter.py, check_host_sanity.py, kill_after_seconds.py, roscore_check.py, roscore_monitor.py, ros_console.py, run_tmux, git-jsk-commit, …) yes -
Tools in src/ (topic_hz_monitor.py, topic_delay_monitor.py, rostopic_host_sanity, sanity_diagnostics.py, nodes_graph.py, …) yes -
Test nodes test_topic_published.py, test_rosparam_set.py, test_stdout.py yes -
Shell env-hooks (rossetmaster, rossetip, config_switch, …) and CMake extras (jsk_tools_add_shell_test, download_package.cmake) yes -
Launch files in launch/ and sample/ yes -

The rostest helpers, sanity_diagnostics.py and the roscore_* tools rely on ROS 1 master introspection and stay ROS 1 only. There are no ROS 2 launch files; use ros2 run jsk_tools <exe>.

audible_warning.py

Subscribes /diagnostics_agg (diagnostic_msgs/DiagnosticArray) and speaks the error contents through the /robotsound action (sound_play/SoundRequestAction) on ROS 1; remap it if your sound server has another name. On ROS 2 it does not speak, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] would speak: ... and publishes the text (~output/text, ~output/original_text) only.

Main parameters: ~speak_interval (default 120.0 s, the same error is not repeated within this time), ~volume, ~language, ~wait_speak, ~seconds_to_start_speaking, ~enable, ~speak_ok / ~speak_warn / ~speak_error / ~speak_stale, ~run_stop_topic and ~run_stop_condition (silence errors while the robot is run-stopped), ~blacklist and ~run_stop_blacklist (regular expressions on diagnostic name / message). See audible_warning.md for the full list.

On ROS 2, ~blacklist / ~run_stop_blacklist are not supported (ROS 2 parameters cannot hold lists of dicts) and ~run_stop_topic is always subscribed as std_msgs/Bool. The enable, speak_* parameters can be changed at runtime (dynamic_reconfigure on ROS 1, ros2 param set on ROS 2).

# ROS 1
roslaunch jsk_tools sample_audible_warning.launch
# ROS 2 (no speech, the log and the text only)
ros2 run jsk_tools audible_warning.py --ros-args -p speak_interval:=60.0

battery_capacity_summary.py

Subscribes /diagnostics_agg and prints a table of the /Power System/Smart Battery entries (serial number, manufacture date, full/remaining capacity, voltage, cycle count, status). Requires colorama.

rosrun jsk_tools battery_capacity_summary.py         # ROS 1
ros2 run jsk_tools battery_capacity_summary.py       # ROS 2

Command line tools (ROS 1)

  • topic_hz_monitor.py – finds the bottleneck in a chain of nodes by showing the rate of a topic and, with --search-parent, of its upstream topics. doc
  • topic_delay_monitor.py – same as topic_hz_monitor.py, but shows the delay from the header timestamp. doc
  • rostopic_host_sanity – checks the network connection to every host in the ROS topic graph. doc
  • roscore_regardless.py – runs a command, killing and restarting it according to roscore liveness. doc
  • bag_plotter.py – plots fields of a bag file directly, configured by a yaml file. doc
  • sanity_diagnostics.py – publishes to /diagnostics whether the topics and nodes listed in ~sanity_targets are alive. doc
rosrun jsk_tools topic_hz_monitor.py /euclidean_segmentation/output --search-parent
rosrun jsk_tools roscore_regardless.py rostopic echo /foo

Shell functions (ROS 1)

Installed as catkin env-hooks, available after sourcing the workspace:

  • rossetmaster [hostname] [port], rossetlocal, rosdefault / rossetdefault – set ROS_MASTER_URI.
  • rossetip – set ROS_IP and ROS_HOSTNAME.
  • config_switch – switch dotfiles and shell between users.

See setup_env_for_ros.md and config_switch.rst.

Test nodes (ROS 1)

For use in rostest files:

  • test_topic_published.py – checks that topics (~topic_%d) are (or, with ~negative_%d, are not) published within ~timeout_%d, optionally checking a Python ~condition_%d. doc
  • test_stdout.py – checks the stdout of a shell command (~command, ~stdout, ~stdout_line%d). doc
  • test_rosparam_set.py – checks that parameters are set.
<test test-name="test_stdout" pkg="jsk_tools" type="test_stdout.py">
  <param name="command" value="echo hello" />
  <param name="stdout_line0" value="hello" />
  <param name="shell" value="true" />
</test>

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_tools

3.0.6 (2026-12-06)

  • Merge pull request #1844 from k-okada/readme-update
  • jsk_tools/README.md: audible_warning.py does not speak on ROS 2 On ROS 2, audible_warning.py creates no /robotsound client, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] and publishes the text on ~output/text and ~output/original_text only. Pointed out by the review of Copilot. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • jsk_tools: README of the nodes, their ROS 1 / ROS 2 support and the usage Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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 #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

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

    - package.xml: add a ROS2 buildtool_depend on ros_environment, which sets ROS_VERSION.

    - CMakeLists.txt: when ROS_VERSION is still unset, guess it from AMENT_PREFIX_PATH (bloom's ROS2 debian/rules passes it to cmake, setup.sh and colcon set the environment variable, catkin never does) instead of always assuming ROS1, and warn about it. jsk_tools had no fallback at all and gets the same block. Applies to jsk_ros1_ros2_compat, jsk_tools, jsk_topic_tools, jsk_common, jsk_data, jsk_rosbag_tools, dynamic_tf_publisher, audio_video_recorder and image_view2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada

3.0.2 (2026-11-02)

  • Merge pull request #1831 from k-okada/ros2-compat-fixes [jsk_ros1_ros2_compat] fix queue_size/shutdown/throttle; add init_node/spin, latch, actionlib, reconfigure, uv venv helpers

  • [jsk_ros1_ros2_compat, jsk_tools, jsk_data] fix queue_size/shutdown handling, add missing helpers

    - create_subscription(): ROS1 silently dropped queue_size, so e.g. audible_warning.py's queue_size=1 subscribers became unbounded. Pass it through, and default to None so each side keeps its own default (unbounded for rospy, depth 1 for rclpy). battery_capacity_summary.py and data_collection_server.py passed 1 only because of the old default; drop it so their ROS1 queues stay unbounded as before.

    - spin_and_shutdown(): rclpy's signal handlers raise ExternalShutdownException (not KeyboardInterrupt) out of spin() on SIGINT/SIGTERM, which printed a traceback and exited with 1. Treat

File truncated at 100 lines see the full file

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_tools at Robotics Stack Exchange

Package Summary

Version 3.0.6
License Apache-2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

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

Package Description

Includes emacs scripts, ros tool alias generator, and launch doc generator.

Additional Links

Maintainers

  • Ryohei Ueda

Authors

  • Ryohei Ueda (ueda jsk.t.u-tokyo.ac.jp)
  • Rosen Diankov (rosen.diankov gmail.com)

jsk_tools

Everyday tools for working with ROS robots in JSK. The package provides a node that speaks diagnostics errors (audible_warning.py), command line tools to monitor topics, hosts and roscore, test nodes for rostest, shell functions to set up ROS_MASTER_URI / ROS_IP, and dot files for emacs and tmux.

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
audible_warning.py (node_scripts/) yes yes
battery_capacity_summary.py (bin/) yes yes
Python module jsk_tools yes yes
Other tools in bin/ (roscore_regardless.py, bag_plotter.py, check_host_sanity.py, kill_after_seconds.py, roscore_check.py, roscore_monitor.py, ros_console.py, run_tmux, git-jsk-commit, …) yes -
Tools in src/ (topic_hz_monitor.py, topic_delay_monitor.py, rostopic_host_sanity, sanity_diagnostics.py, nodes_graph.py, …) yes -
Test nodes test_topic_published.py, test_rosparam_set.py, test_stdout.py yes -
Shell env-hooks (rossetmaster, rossetip, config_switch, …) and CMake extras (jsk_tools_add_shell_test, download_package.cmake) yes -
Launch files in launch/ and sample/ yes -

The rostest helpers, sanity_diagnostics.py and the roscore_* tools rely on ROS 1 master introspection and stay ROS 1 only. There are no ROS 2 launch files; use ros2 run jsk_tools <exe>.

audible_warning.py

Subscribes /diagnostics_agg (diagnostic_msgs/DiagnosticArray) and speaks the error contents through the /robotsound action (sound_play/SoundRequestAction) on ROS 1; remap it if your sound server has another name. On ROS 2 it does not speak, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] would speak: ... and publishes the text (~output/text, ~output/original_text) only.

Main parameters: ~speak_interval (default 120.0 s, the same error is not repeated within this time), ~volume, ~language, ~wait_speak, ~seconds_to_start_speaking, ~enable, ~speak_ok / ~speak_warn / ~speak_error / ~speak_stale, ~run_stop_topic and ~run_stop_condition (silence errors while the robot is run-stopped), ~blacklist and ~run_stop_blacklist (regular expressions on diagnostic name / message). See audible_warning.md for the full list.

On ROS 2, ~blacklist / ~run_stop_blacklist are not supported (ROS 2 parameters cannot hold lists of dicts) and ~run_stop_topic is always subscribed as std_msgs/Bool. The enable, speak_* parameters can be changed at runtime (dynamic_reconfigure on ROS 1, ros2 param set on ROS 2).

# ROS 1
roslaunch jsk_tools sample_audible_warning.launch
# ROS 2 (no speech, the log and the text only)
ros2 run jsk_tools audible_warning.py --ros-args -p speak_interval:=60.0

battery_capacity_summary.py

Subscribes /diagnostics_agg and prints a table of the /Power System/Smart Battery entries (serial number, manufacture date, full/remaining capacity, voltage, cycle count, status). Requires colorama.

rosrun jsk_tools battery_capacity_summary.py         # ROS 1
ros2 run jsk_tools battery_capacity_summary.py       # ROS 2

Command line tools (ROS 1)

  • topic_hz_monitor.py – finds the bottleneck in a chain of nodes by showing the rate of a topic and, with --search-parent, of its upstream topics. doc
  • topic_delay_monitor.py – same as topic_hz_monitor.py, but shows the delay from the header timestamp. doc
  • rostopic_host_sanity – checks the network connection to every host in the ROS topic graph. doc
  • roscore_regardless.py – runs a command, killing and restarting it according to roscore liveness. doc
  • bag_plotter.py – plots fields of a bag file directly, configured by a yaml file. doc
  • sanity_diagnostics.py – publishes to /diagnostics whether the topics and nodes listed in ~sanity_targets are alive. doc
rosrun jsk_tools topic_hz_monitor.py /euclidean_segmentation/output --search-parent
rosrun jsk_tools roscore_regardless.py rostopic echo /foo

Shell functions (ROS 1)

Installed as catkin env-hooks, available after sourcing the workspace:

  • rossetmaster [hostname] [port], rossetlocal, rosdefault / rossetdefault – set ROS_MASTER_URI.
  • rossetip – set ROS_IP and ROS_HOSTNAME.
  • config_switch – switch dotfiles and shell between users.

See setup_env_for_ros.md and config_switch.rst.

Test nodes (ROS 1)

For use in rostest files:

  • test_topic_published.py – checks that topics (~topic_%d) are (or, with ~negative_%d, are not) published within ~timeout_%d, optionally checking a Python ~condition_%d. doc
  • test_stdout.py – checks the stdout of a shell command (~command, ~stdout, ~stdout_line%d). doc
  • test_rosparam_set.py – checks that parameters are set.
<test test-name="test_stdout" pkg="jsk_tools" type="test_stdout.py">
  <param name="command" value="echo hello" />
  <param name="stdout_line0" value="hello" />
  <param name="shell" value="true" />
</test>

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_tools

3.0.6 (2026-12-06)

  • Merge pull request #1844 from k-okada/readme-update
  • jsk_tools/README.md: audible_warning.py does not speak on ROS 2 On ROS 2, audible_warning.py creates no /robotsound client, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] and publishes the text on ~output/text and ~output/original_text only. Pointed out by the review of Copilot. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • jsk_tools: README of the nodes, their ROS 1 / ROS 2 support and the usage Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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 #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

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

    - package.xml: add a ROS2 buildtool_depend on ros_environment, which sets ROS_VERSION.

    - CMakeLists.txt: when ROS_VERSION is still unset, guess it from AMENT_PREFIX_PATH (bloom's ROS2 debian/rules passes it to cmake, setup.sh and colcon set the environment variable, catkin never does) instead of always assuming ROS1, and warn about it. jsk_tools had no fallback at all and gets the same block. Applies to jsk_ros1_ros2_compat, jsk_tools, jsk_topic_tools, jsk_common, jsk_data, jsk_rosbag_tools, dynamic_tf_publisher, audio_video_recorder and image_view2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada

3.0.2 (2026-11-02)

  • Merge pull request #1831 from k-okada/ros2-compat-fixes [jsk_ros1_ros2_compat] fix queue_size/shutdown/throttle; add init_node/spin, latch, actionlib, reconfigure, uv venv helpers

  • [jsk_ros1_ros2_compat, jsk_tools, jsk_data] fix queue_size/shutdown handling, add missing helpers

    - create_subscription(): ROS1 silently dropped queue_size, so e.g. audible_warning.py's queue_size=1 subscribers became unbounded. Pass it through, and default to None so each side keeps its own default (unbounded for rospy, depth 1 for rclpy). battery_capacity_summary.py and data_collection_server.py passed 1 only because of the old default; drop it so their ROS1 queues stay unbounded as before.

    - spin_and_shutdown(): rclpy's signal handlers raise ExternalShutdownException (not KeyboardInterrupt) out of spin() on SIGINT/SIGTERM, which printed a traceback and exited with 1. Treat

File truncated at 100 lines see the full file

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_tools at Robotics Stack Exchange

Package Summary

Version 3.0.6
License Apache-2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

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

Package Description

Includes emacs scripts, ros tool alias generator, and launch doc generator.

Additional Links

Maintainers

  • Ryohei Ueda

Authors

  • Ryohei Ueda (ueda jsk.t.u-tokyo.ac.jp)
  • Rosen Diankov (rosen.diankov gmail.com)

jsk_tools

Everyday tools for working with ROS robots in JSK. The package provides a node that speaks diagnostics errors (audible_warning.py), command line tools to monitor topics, hosts and roscore, test nodes for rostest, shell functions to set up ROS_MASTER_URI / ROS_IP, and dot files for emacs and tmux.

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
audible_warning.py (node_scripts/) yes yes
battery_capacity_summary.py (bin/) yes yes
Python module jsk_tools yes yes
Other tools in bin/ (roscore_regardless.py, bag_plotter.py, check_host_sanity.py, kill_after_seconds.py, roscore_check.py, roscore_monitor.py, ros_console.py, run_tmux, git-jsk-commit, …) yes -
Tools in src/ (topic_hz_monitor.py, topic_delay_monitor.py, rostopic_host_sanity, sanity_diagnostics.py, nodes_graph.py, …) yes -
Test nodes test_topic_published.py, test_rosparam_set.py, test_stdout.py yes -
Shell env-hooks (rossetmaster, rossetip, config_switch, …) and CMake extras (jsk_tools_add_shell_test, download_package.cmake) yes -
Launch files in launch/ and sample/ yes -

The rostest helpers, sanity_diagnostics.py and the roscore_* tools rely on ROS 1 master introspection and stay ROS 1 only. There are no ROS 2 launch files; use ros2 run jsk_tools <exe>.

audible_warning.py

Subscribes /diagnostics_agg (diagnostic_msgs/DiagnosticArray) and speaks the error contents through the /robotsound action (sound_play/SoundRequestAction) on ROS 1; remap it if your sound server has another name. On ROS 2 it does not speak, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] would speak: ... and publishes the text (~output/text, ~output/original_text) only.

Main parameters: ~speak_interval (default 120.0 s, the same error is not repeated within this time), ~volume, ~language, ~wait_speak, ~seconds_to_start_speaking, ~enable, ~speak_ok / ~speak_warn / ~speak_error / ~speak_stale, ~run_stop_topic and ~run_stop_condition (silence errors while the robot is run-stopped), ~blacklist and ~run_stop_blacklist (regular expressions on diagnostic name / message). See audible_warning.md for the full list.

On ROS 2, ~blacklist / ~run_stop_blacklist are not supported (ROS 2 parameters cannot hold lists of dicts) and ~run_stop_topic is always subscribed as std_msgs/Bool. The enable, speak_* parameters can be changed at runtime (dynamic_reconfigure on ROS 1, ros2 param set on ROS 2).

# ROS 1
roslaunch jsk_tools sample_audible_warning.launch
# ROS 2 (no speech, the log and the text only)
ros2 run jsk_tools audible_warning.py --ros-args -p speak_interval:=60.0

battery_capacity_summary.py

Subscribes /diagnostics_agg and prints a table of the /Power System/Smart Battery entries (serial number, manufacture date, full/remaining capacity, voltage, cycle count, status). Requires colorama.

rosrun jsk_tools battery_capacity_summary.py         # ROS 1
ros2 run jsk_tools battery_capacity_summary.py       # ROS 2

Command line tools (ROS 1)

  • topic_hz_monitor.py – finds the bottleneck in a chain of nodes by showing the rate of a topic and, with --search-parent, of its upstream topics. doc
  • topic_delay_monitor.py – same as topic_hz_monitor.py, but shows the delay from the header timestamp. doc
  • rostopic_host_sanity – checks the network connection to every host in the ROS topic graph. doc
  • roscore_regardless.py – runs a command, killing and restarting it according to roscore liveness. doc
  • bag_plotter.py – plots fields of a bag file directly, configured by a yaml file. doc
  • sanity_diagnostics.py – publishes to /diagnostics whether the topics and nodes listed in ~sanity_targets are alive. doc
rosrun jsk_tools topic_hz_monitor.py /euclidean_segmentation/output --search-parent
rosrun jsk_tools roscore_regardless.py rostopic echo /foo

Shell functions (ROS 1)

Installed as catkin env-hooks, available after sourcing the workspace:

  • rossetmaster [hostname] [port], rossetlocal, rosdefault / rossetdefault – set ROS_MASTER_URI.
  • rossetip – set ROS_IP and ROS_HOSTNAME.
  • config_switch – switch dotfiles and shell between users.

See setup_env_for_ros.md and config_switch.rst.

Test nodes (ROS 1)

For use in rostest files:

  • test_topic_published.py – checks that topics (~topic_%d) are (or, with ~negative_%d, are not) published within ~timeout_%d, optionally checking a Python ~condition_%d. doc
  • test_stdout.py – checks the stdout of a shell command (~command, ~stdout, ~stdout_line%d). doc
  • test_rosparam_set.py – checks that parameters are set.
<test test-name="test_stdout" pkg="jsk_tools" type="test_stdout.py">
  <param name="command" value="echo hello" />
  <param name="stdout_line0" value="hello" />
  <param name="shell" value="true" />
</test>

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_tools

3.0.6 (2026-12-06)

  • Merge pull request #1844 from k-okada/readme-update
  • jsk_tools/README.md: audible_warning.py does not speak on ROS 2 On ROS 2, audible_warning.py creates no /robotsound client, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] and publishes the text on ~output/text and ~output/original_text only. Pointed out by the review of Copilot. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • jsk_tools: README of the nodes, their ROS 1 / ROS 2 support and the usage Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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 #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

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

    - package.xml: add a ROS2 buildtool_depend on ros_environment, which sets ROS_VERSION.

    - CMakeLists.txt: when ROS_VERSION is still unset, guess it from AMENT_PREFIX_PATH (bloom's ROS2 debian/rules passes it to cmake, setup.sh and colcon set the environment variable, catkin never does) instead of always assuming ROS1, and warn about it. jsk_tools had no fallback at all and gets the same block. Applies to jsk_ros1_ros2_compat, jsk_tools, jsk_topic_tools, jsk_common, jsk_data, jsk_rosbag_tools, dynamic_tf_publisher, audio_video_recorder and image_view2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada

3.0.2 (2026-11-02)

  • Merge pull request #1831 from k-okada/ros2-compat-fixes [jsk_ros1_ros2_compat] fix queue_size/shutdown/throttle; add init_node/spin, latch, actionlib, reconfigure, uv venv helpers

  • [jsk_ros1_ros2_compat, jsk_tools, jsk_data] fix queue_size/shutdown handling, add missing helpers

    - create_subscription(): ROS1 silently dropped queue_size, so e.g. audible_warning.py's queue_size=1 subscribers became unbounded. Pass it through, and default to None so each side keeps its own default (unbounded for rospy, depth 1 for rclpy). battery_capacity_summary.py and data_collection_server.py passed 1 only because of the old default; drop it so their ROS1 queues stay unbounded as before.

    - spin_and_shutdown(): rclpy's signal handlers raise ExternalShutdownException (not KeyboardInterrupt) out of spin() on SIGINT/SIGTERM, which printed a traceback and exited with 1. Treat

File truncated at 100 lines see the full file

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_tools at Robotics Stack Exchange

Package Summary

Version 3.0.6
License Apache-2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

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

Package Description

Includes emacs scripts, ros tool alias generator, and launch doc generator.

Additional Links

Maintainers

  • Ryohei Ueda

Authors

  • Ryohei Ueda (ueda jsk.t.u-tokyo.ac.jp)
  • Rosen Diankov (rosen.diankov gmail.com)

jsk_tools

Everyday tools for working with ROS robots in JSK. The package provides a node that speaks diagnostics errors (audible_warning.py), command line tools to monitor topics, hosts and roscore, test nodes for rostest, shell functions to set up ROS_MASTER_URI / ROS_IP, and dot files for emacs and tmux.

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
audible_warning.py (node_scripts/) yes yes
battery_capacity_summary.py (bin/) yes yes
Python module jsk_tools yes yes
Other tools in bin/ (roscore_regardless.py, bag_plotter.py, check_host_sanity.py, kill_after_seconds.py, roscore_check.py, roscore_monitor.py, ros_console.py, run_tmux, git-jsk-commit, …) yes -
Tools in src/ (topic_hz_monitor.py, topic_delay_monitor.py, rostopic_host_sanity, sanity_diagnostics.py, nodes_graph.py, …) yes -
Test nodes test_topic_published.py, test_rosparam_set.py, test_stdout.py yes -
Shell env-hooks (rossetmaster, rossetip, config_switch, …) and CMake extras (jsk_tools_add_shell_test, download_package.cmake) yes -
Launch files in launch/ and sample/ yes -

The rostest helpers, sanity_diagnostics.py and the roscore_* tools rely on ROS 1 master introspection and stay ROS 1 only. There are no ROS 2 launch files; use ros2 run jsk_tools <exe>.

audible_warning.py

Subscribes /diagnostics_agg (diagnostic_msgs/DiagnosticArray) and speaks the error contents through the /robotsound action (sound_play/SoundRequestAction) on ROS 1; remap it if your sound server has another name. On ROS 2 it does not speak, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] would speak: ... and publishes the text (~output/text, ~output/original_text) only.

Main parameters: ~speak_interval (default 120.0 s, the same error is not repeated within this time), ~volume, ~language, ~wait_speak, ~seconds_to_start_speaking, ~enable, ~speak_ok / ~speak_warn / ~speak_error / ~speak_stale, ~run_stop_topic and ~run_stop_condition (silence errors while the robot is run-stopped), ~blacklist and ~run_stop_blacklist (regular expressions on diagnostic name / message). See audible_warning.md for the full list.

On ROS 2, ~blacklist / ~run_stop_blacklist are not supported (ROS 2 parameters cannot hold lists of dicts) and ~run_stop_topic is always subscribed as std_msgs/Bool. The enable, speak_* parameters can be changed at runtime (dynamic_reconfigure on ROS 1, ros2 param set on ROS 2).

# ROS 1
roslaunch jsk_tools sample_audible_warning.launch
# ROS 2 (no speech, the log and the text only)
ros2 run jsk_tools audible_warning.py --ros-args -p speak_interval:=60.0

battery_capacity_summary.py

Subscribes /diagnostics_agg and prints a table of the /Power System/Smart Battery entries (serial number, manufacture date, full/remaining capacity, voltage, cycle count, status). Requires colorama.

rosrun jsk_tools battery_capacity_summary.py         # ROS 1
ros2 run jsk_tools battery_capacity_summary.py       # ROS 2

Command line tools (ROS 1)

  • topic_hz_monitor.py – finds the bottleneck in a chain of nodes by showing the rate of a topic and, with --search-parent, of its upstream topics. doc
  • topic_delay_monitor.py – same as topic_hz_monitor.py, but shows the delay from the header timestamp. doc
  • rostopic_host_sanity – checks the network connection to every host in the ROS topic graph. doc
  • roscore_regardless.py – runs a command, killing and restarting it according to roscore liveness. doc
  • bag_plotter.py – plots fields of a bag file directly, configured by a yaml file. doc
  • sanity_diagnostics.py – publishes to /diagnostics whether the topics and nodes listed in ~sanity_targets are alive. doc
rosrun jsk_tools topic_hz_monitor.py /euclidean_segmentation/output --search-parent
rosrun jsk_tools roscore_regardless.py rostopic echo /foo

Shell functions (ROS 1)

Installed as catkin env-hooks, available after sourcing the workspace:

  • rossetmaster [hostname] [port], rossetlocal, rosdefault / rossetdefault – set ROS_MASTER_URI.
  • rossetip – set ROS_IP and ROS_HOSTNAME.
  • config_switch – switch dotfiles and shell between users.

See setup_env_for_ros.md and config_switch.rst.

Test nodes (ROS 1)

For use in rostest files:

  • test_topic_published.py – checks that topics (~topic_%d) are (or, with ~negative_%d, are not) published within ~timeout_%d, optionally checking a Python ~condition_%d. doc
  • test_stdout.py – checks the stdout of a shell command (~command, ~stdout, ~stdout_line%d). doc
  • test_rosparam_set.py – checks that parameters are set.
<test test-name="test_stdout" pkg="jsk_tools" type="test_stdout.py">
  <param name="command" value="echo hello" />
  <param name="stdout_line0" value="hello" />
  <param name="shell" value="true" />
</test>

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_tools

3.0.6 (2026-12-06)

  • Merge pull request #1844 from k-okada/readme-update
  • jsk_tools/README.md: audible_warning.py does not speak on ROS 2 On ROS 2, audible_warning.py creates no /robotsound client, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] and publishes the text on ~output/text and ~output/original_text only. Pointed out by the review of Copilot. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • jsk_tools: README of the nodes, their ROS 1 / ROS 2 support and the usage Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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 #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

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

    - package.xml: add a ROS2 buildtool_depend on ros_environment, which sets ROS_VERSION.

    - CMakeLists.txt: when ROS_VERSION is still unset, guess it from AMENT_PREFIX_PATH (bloom's ROS2 debian/rules passes it to cmake, setup.sh and colcon set the environment variable, catkin never does) instead of always assuming ROS1, and warn about it. jsk_tools had no fallback at all and gets the same block. Applies to jsk_ros1_ros2_compat, jsk_tools, jsk_topic_tools, jsk_common, jsk_data, jsk_rosbag_tools, dynamic_tf_publisher, audio_video_recorder and image_view2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada

3.0.2 (2026-11-02)

  • Merge pull request #1831 from k-okada/ros2-compat-fixes [jsk_ros1_ros2_compat] fix queue_size/shutdown/throttle; add init_node/spin, latch, actionlib, reconfigure, uv venv helpers

  • [jsk_ros1_ros2_compat, jsk_tools, jsk_data] fix queue_size/shutdown handling, add missing helpers

    - create_subscription(): ROS1 silently dropped queue_size, so e.g. audible_warning.py's queue_size=1 subscribers became unbounded. Pass it through, and default to None so each side keeps its own default (unbounded for rospy, depth 1 for rclpy). battery_capacity_summary.py and data_collection_server.py passed 1 only because of the old default; drop it so their ROS1 queues stay unbounded as before.

    - spin_and_shutdown(): rclpy's signal handlers raise ExternalShutdownException (not KeyboardInterrupt) out of spin() on SIGINT/SIGTERM, which printed a traceback and exited with 1. Treat

File truncated at 100 lines see the full file

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_tools at Robotics Stack Exchange

Package Summary

Version 3.0.6
License Apache-2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

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

Package Description

Includes emacs scripts, ros tool alias generator, and launch doc generator.

Additional Links

Maintainers

  • Ryohei Ueda

Authors

  • Ryohei Ueda (ueda jsk.t.u-tokyo.ac.jp)
  • Rosen Diankov (rosen.diankov gmail.com)

jsk_tools

Everyday tools for working with ROS robots in JSK. The package provides a node that speaks diagnostics errors (audible_warning.py), command line tools to monitor topics, hosts and roscore, test nodes for rostest, shell functions to set up ROS_MASTER_URI / ROS_IP, and dot files for emacs and tmux.

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
audible_warning.py (node_scripts/) yes yes
battery_capacity_summary.py (bin/) yes yes
Python module jsk_tools yes yes
Other tools in bin/ (roscore_regardless.py, bag_plotter.py, check_host_sanity.py, kill_after_seconds.py, roscore_check.py, roscore_monitor.py, ros_console.py, run_tmux, git-jsk-commit, …) yes -
Tools in src/ (topic_hz_monitor.py, topic_delay_monitor.py, rostopic_host_sanity, sanity_diagnostics.py, nodes_graph.py, …) yes -
Test nodes test_topic_published.py, test_rosparam_set.py, test_stdout.py yes -
Shell env-hooks (rossetmaster, rossetip, config_switch, …) and CMake extras (jsk_tools_add_shell_test, download_package.cmake) yes -
Launch files in launch/ and sample/ yes -

The rostest helpers, sanity_diagnostics.py and the roscore_* tools rely on ROS 1 master introspection and stay ROS 1 only. There are no ROS 2 launch files; use ros2 run jsk_tools <exe>.

audible_warning.py

Subscribes /diagnostics_agg (diagnostic_msgs/DiagnosticArray) and speaks the error contents through the /robotsound action (sound_play/SoundRequestAction) on ROS 1; remap it if your sound server has another name. On ROS 2 it does not speak, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] would speak: ... and publishes the text (~output/text, ~output/original_text) only.

Main parameters: ~speak_interval (default 120.0 s, the same error is not repeated within this time), ~volume, ~language, ~wait_speak, ~seconds_to_start_speaking, ~enable, ~speak_ok / ~speak_warn / ~speak_error / ~speak_stale, ~run_stop_topic and ~run_stop_condition (silence errors while the robot is run-stopped), ~blacklist and ~run_stop_blacklist (regular expressions on diagnostic name / message). See audible_warning.md for the full list.

On ROS 2, ~blacklist / ~run_stop_blacklist are not supported (ROS 2 parameters cannot hold lists of dicts) and ~run_stop_topic is always subscribed as std_msgs/Bool. The enable, speak_* parameters can be changed at runtime (dynamic_reconfigure on ROS 1, ros2 param set on ROS 2).

# ROS 1
roslaunch jsk_tools sample_audible_warning.launch
# ROS 2 (no speech, the log and the text only)
ros2 run jsk_tools audible_warning.py --ros-args -p speak_interval:=60.0

battery_capacity_summary.py

Subscribes /diagnostics_agg and prints a table of the /Power System/Smart Battery entries (serial number, manufacture date, full/remaining capacity, voltage, cycle count, status). Requires colorama.

rosrun jsk_tools battery_capacity_summary.py         # ROS 1
ros2 run jsk_tools battery_capacity_summary.py       # ROS 2

Command line tools (ROS 1)

  • topic_hz_monitor.py – finds the bottleneck in a chain of nodes by showing the rate of a topic and, with --search-parent, of its upstream topics. doc
  • topic_delay_monitor.py – same as topic_hz_monitor.py, but shows the delay from the header timestamp. doc
  • rostopic_host_sanity – checks the network connection to every host in the ROS topic graph. doc
  • roscore_regardless.py – runs a command, killing and restarting it according to roscore liveness. doc
  • bag_plotter.py – plots fields of a bag file directly, configured by a yaml file. doc
  • sanity_diagnostics.py – publishes to /diagnostics whether the topics and nodes listed in ~sanity_targets are alive. doc
rosrun jsk_tools topic_hz_monitor.py /euclidean_segmentation/output --search-parent
rosrun jsk_tools roscore_regardless.py rostopic echo /foo

Shell functions (ROS 1)

Installed as catkin env-hooks, available after sourcing the workspace:

  • rossetmaster [hostname] [port], rossetlocal, rosdefault / rossetdefault – set ROS_MASTER_URI.
  • rossetip – set ROS_IP and ROS_HOSTNAME.
  • config_switch – switch dotfiles and shell between users.

See setup_env_for_ros.md and config_switch.rst.

Test nodes (ROS 1)

For use in rostest files:

  • test_topic_published.py – checks that topics (~topic_%d) are (or, with ~negative_%d, are not) published within ~timeout_%d, optionally checking a Python ~condition_%d. doc
  • test_stdout.py – checks the stdout of a shell command (~command, ~stdout, ~stdout_line%d). doc
  • test_rosparam_set.py – checks that parameters are set.
<test test-name="test_stdout" pkg="jsk_tools" type="test_stdout.py">
  <param name="command" value="echo hello" />
  <param name="stdout_line0" value="hello" />
  <param name="shell" value="true" />
</test>

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_tools

3.0.6 (2026-12-06)

  • Merge pull request #1844 from k-okada/readme-update
  • jsk_tools/README.md: audible_warning.py does not speak on ROS 2 On ROS 2, audible_warning.py creates no /robotsound client, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] and publishes the text on ~output/text and ~output/original_text only. Pointed out by the review of Copilot. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • jsk_tools: README of the nodes, their ROS 1 / ROS 2 support and the usage Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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 #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

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

    - package.xml: add a ROS2 buildtool_depend on ros_environment, which sets ROS_VERSION.

    - CMakeLists.txt: when ROS_VERSION is still unset, guess it from AMENT_PREFIX_PATH (bloom's ROS2 debian/rules passes it to cmake, setup.sh and colcon set the environment variable, catkin never does) instead of always assuming ROS1, and warn about it. jsk_tools had no fallback at all and gets the same block. Applies to jsk_ros1_ros2_compat, jsk_tools, jsk_topic_tools, jsk_common, jsk_data, jsk_rosbag_tools, dynamic_tf_publisher, audio_video_recorder and image_view2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada

3.0.2 (2026-11-02)

  • Merge pull request #1831 from k-okada/ros2-compat-fixes [jsk_ros1_ros2_compat] fix queue_size/shutdown/throttle; add init_node/spin, latch, actionlib, reconfigure, uv venv helpers

  • [jsk_ros1_ros2_compat, jsk_tools, jsk_data] fix queue_size/shutdown handling, add missing helpers

    - create_subscription(): ROS1 silently dropped queue_size, so e.g. audible_warning.py's queue_size=1 subscribers became unbounded. Pass it through, and default to None so each side keeps its own default (unbounded for rospy, depth 1 for rclpy). battery_capacity_summary.py and data_collection_server.py passed 1 only because of the old default; drop it so their ROS1 queues stay unbounded as before.

    - spin_and_shutdown(): rclpy's signal handlers raise ExternalShutdownException (not KeyboardInterrupt) out of spin() on SIGINT/SIGTERM, which printed a traceback and exited with 1. Treat

File truncated at 100 lines see the full file

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_tools at Robotics Stack Exchange

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

Package Summary

Version 3.0.6
License Apache-2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

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

Package Description

Includes emacs scripts, ros tool alias generator, and launch doc generator.

Additional Links

Maintainers

  • Ryohei Ueda

Authors

  • Ryohei Ueda (ueda jsk.t.u-tokyo.ac.jp)
  • Rosen Diankov (rosen.diankov gmail.com)

jsk_tools

Everyday tools for working with ROS robots in JSK. The package provides a node that speaks diagnostics errors (audible_warning.py), command line tools to monitor topics, hosts and roscore, test nodes for rostest, shell functions to set up ROS_MASTER_URI / ROS_IP, and dot files for emacs and tmux.

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
audible_warning.py (node_scripts/) yes yes
battery_capacity_summary.py (bin/) yes yes
Python module jsk_tools yes yes
Other tools in bin/ (roscore_regardless.py, bag_plotter.py, check_host_sanity.py, kill_after_seconds.py, roscore_check.py, roscore_monitor.py, ros_console.py, run_tmux, git-jsk-commit, …) yes -
Tools in src/ (topic_hz_monitor.py, topic_delay_monitor.py, rostopic_host_sanity, sanity_diagnostics.py, nodes_graph.py, …) yes -
Test nodes test_topic_published.py, test_rosparam_set.py, test_stdout.py yes -
Shell env-hooks (rossetmaster, rossetip, config_switch, …) and CMake extras (jsk_tools_add_shell_test, download_package.cmake) yes -
Launch files in launch/ and sample/ yes -

The rostest helpers, sanity_diagnostics.py and the roscore_* tools rely on ROS 1 master introspection and stay ROS 1 only. There are no ROS 2 launch files; use ros2 run jsk_tools <exe>.

audible_warning.py

Subscribes /diagnostics_agg (diagnostic_msgs/DiagnosticArray) and speaks the error contents through the /robotsound action (sound_play/SoundRequestAction) on ROS 1; remap it if your sound server has another name. On ROS 2 it does not speak, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] would speak: ... and publishes the text (~output/text, ~output/original_text) only.

Main parameters: ~speak_interval (default 120.0 s, the same error is not repeated within this time), ~volume, ~language, ~wait_speak, ~seconds_to_start_speaking, ~enable, ~speak_ok / ~speak_warn / ~speak_error / ~speak_stale, ~run_stop_topic and ~run_stop_condition (silence errors while the robot is run-stopped), ~blacklist and ~run_stop_blacklist (regular expressions on diagnostic name / message). See audible_warning.md for the full list.

On ROS 2, ~blacklist / ~run_stop_blacklist are not supported (ROS 2 parameters cannot hold lists of dicts) and ~run_stop_topic is always subscribed as std_msgs/Bool. The enable, speak_* parameters can be changed at runtime (dynamic_reconfigure on ROS 1, ros2 param set on ROS 2).

# ROS 1
roslaunch jsk_tools sample_audible_warning.launch
# ROS 2 (no speech, the log and the text only)
ros2 run jsk_tools audible_warning.py --ros-args -p speak_interval:=60.0

battery_capacity_summary.py

Subscribes /diagnostics_agg and prints a table of the /Power System/Smart Battery entries (serial number, manufacture date, full/remaining capacity, voltage, cycle count, status). Requires colorama.

rosrun jsk_tools battery_capacity_summary.py         # ROS 1
ros2 run jsk_tools battery_capacity_summary.py       # ROS 2

Command line tools (ROS 1)

  • topic_hz_monitor.py – finds the bottleneck in a chain of nodes by showing the rate of a topic and, with --search-parent, of its upstream topics. doc
  • topic_delay_monitor.py – same as topic_hz_monitor.py, but shows the delay from the header timestamp. doc
  • rostopic_host_sanity – checks the network connection to every host in the ROS topic graph. doc
  • roscore_regardless.py – runs a command, killing and restarting it according to roscore liveness. doc
  • bag_plotter.py – plots fields of a bag file directly, configured by a yaml file. doc
  • sanity_diagnostics.py – publishes to /diagnostics whether the topics and nodes listed in ~sanity_targets are alive. doc
rosrun jsk_tools topic_hz_monitor.py /euclidean_segmentation/output --search-parent
rosrun jsk_tools roscore_regardless.py rostopic echo /foo

Shell functions (ROS 1)

Installed as catkin env-hooks, available after sourcing the workspace:

  • rossetmaster [hostname] [port], rossetlocal, rosdefault / rossetdefault – set ROS_MASTER_URI.
  • rossetip – set ROS_IP and ROS_HOSTNAME.
  • config_switch – switch dotfiles and shell between users.

See setup_env_for_ros.md and config_switch.rst.

Test nodes (ROS 1)

For use in rostest files:

  • test_topic_published.py – checks that topics (~topic_%d) are (or, with ~negative_%d, are not) published within ~timeout_%d, optionally checking a Python ~condition_%d. doc
  • test_stdout.py – checks the stdout of a shell command (~command, ~stdout, ~stdout_line%d). doc
  • test_rosparam_set.py – checks that parameters are set.
<test test-name="test_stdout" pkg="jsk_tools" type="test_stdout.py">
  <param name="command" value="echo hello" />
  <param name="stdout_line0" value="hello" />
  <param name="shell" value="true" />
</test>

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_tools

3.0.6 (2026-12-06)

  • Merge pull request #1844 from k-okada/readme-update
  • jsk_tools/README.md: audible_warning.py does not speak on ROS 2 On ROS 2, audible_warning.py creates no /robotsound client, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] and publishes the text on ~output/text and ~output/original_text only. Pointed out by the review of Copilot. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • jsk_tools: README of the nodes, their ROS 1 / ROS 2 support and the usage Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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 #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

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

    - package.xml: add a ROS2 buildtool_depend on ros_environment, which sets ROS_VERSION.

    - CMakeLists.txt: when ROS_VERSION is still unset, guess it from AMENT_PREFIX_PATH (bloom's ROS2 debian/rules passes it to cmake, setup.sh and colcon set the environment variable, catkin never does) instead of always assuming ROS1, and warn about it. jsk_tools had no fallback at all and gets the same block. Applies to jsk_ros1_ros2_compat, jsk_tools, jsk_topic_tools, jsk_common, jsk_data, jsk_rosbag_tools, dynamic_tf_publisher, audio_video_recorder and image_view2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada

3.0.2 (2026-11-02)

  • Merge pull request #1831 from k-okada/ros2-compat-fixes [jsk_ros1_ros2_compat] fix queue_size/shutdown/throttle; add init_node/spin, latch, actionlib, reconfigure, uv venv helpers

  • [jsk_ros1_ros2_compat, jsk_tools, jsk_data] fix queue_size/shutdown handling, add missing helpers

    - create_subscription(): ROS1 silently dropped queue_size, so e.g. audible_warning.py's queue_size=1 subscribers became unbounded. Pass it through, and default to None so each side keeps its own default (unbounded for rospy, depth 1 for rclpy). battery_capacity_summary.py and data_collection_server.py passed 1 only because of the old default; drop it so their ROS1 queues stay unbounded as before.

    - spin_and_shutdown(): rclpy's signal handlers raise ExternalShutdownException (not KeyboardInterrupt) out of spin() on SIGINT/SIGTERM, which printed a traceback and exited with 1. Treat

File truncated at 100 lines see the full file

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_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.6
License Apache-2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

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

Package Description

Includes emacs scripts, ros tool alias generator, and launch doc generator.

Additional Links

Maintainers

  • Ryohei Ueda

Authors

  • Ryohei Ueda (ueda jsk.t.u-tokyo.ac.jp)
  • Rosen Diankov (rosen.diankov gmail.com)

jsk_tools

Everyday tools for working with ROS robots in JSK. The package provides a node that speaks diagnostics errors (audible_warning.py), command line tools to monitor topics, hosts and roscore, test nodes for rostest, shell functions to set up ROS_MASTER_URI / ROS_IP, and dot files for emacs and tmux.

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
audible_warning.py (node_scripts/) yes yes
battery_capacity_summary.py (bin/) yes yes
Python module jsk_tools yes yes
Other tools in bin/ (roscore_regardless.py, bag_plotter.py, check_host_sanity.py, kill_after_seconds.py, roscore_check.py, roscore_monitor.py, ros_console.py, run_tmux, git-jsk-commit, …) yes -
Tools in src/ (topic_hz_monitor.py, topic_delay_monitor.py, rostopic_host_sanity, sanity_diagnostics.py, nodes_graph.py, …) yes -
Test nodes test_topic_published.py, test_rosparam_set.py, test_stdout.py yes -
Shell env-hooks (rossetmaster, rossetip, config_switch, …) and CMake extras (jsk_tools_add_shell_test, download_package.cmake) yes -
Launch files in launch/ and sample/ yes -

The rostest helpers, sanity_diagnostics.py and the roscore_* tools rely on ROS 1 master introspection and stay ROS 1 only. There are no ROS 2 launch files; use ros2 run jsk_tools <exe>.

audible_warning.py

Subscribes /diagnostics_agg (diagnostic_msgs/DiagnosticArray) and speaks the error contents through the /robotsound action (sound_play/SoundRequestAction) on ROS 1; remap it if your sound server has another name. On ROS 2 it does not speak, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] would speak: ... and publishes the text (~output/text, ~output/original_text) only.

Main parameters: ~speak_interval (default 120.0 s, the same error is not repeated within this time), ~volume, ~language, ~wait_speak, ~seconds_to_start_speaking, ~enable, ~speak_ok / ~speak_warn / ~speak_error / ~speak_stale, ~run_stop_topic and ~run_stop_condition (silence errors while the robot is run-stopped), ~blacklist and ~run_stop_blacklist (regular expressions on diagnostic name / message). See audible_warning.md for the full list.

On ROS 2, ~blacklist / ~run_stop_blacklist are not supported (ROS 2 parameters cannot hold lists of dicts) and ~run_stop_topic is always subscribed as std_msgs/Bool. The enable, speak_* parameters can be changed at runtime (dynamic_reconfigure on ROS 1, ros2 param set on ROS 2).

# ROS 1
roslaunch jsk_tools sample_audible_warning.launch
# ROS 2 (no speech, the log and the text only)
ros2 run jsk_tools audible_warning.py --ros-args -p speak_interval:=60.0

battery_capacity_summary.py

Subscribes /diagnostics_agg and prints a table of the /Power System/Smart Battery entries (serial number, manufacture date, full/remaining capacity, voltage, cycle count, status). Requires colorama.

rosrun jsk_tools battery_capacity_summary.py         # ROS 1
ros2 run jsk_tools battery_capacity_summary.py       # ROS 2

Command line tools (ROS 1)

  • topic_hz_monitor.py – finds the bottleneck in a chain of nodes by showing the rate of a topic and, with --search-parent, of its upstream topics. doc
  • topic_delay_monitor.py – same as topic_hz_monitor.py, but shows the delay from the header timestamp. doc
  • rostopic_host_sanity – checks the network connection to every host in the ROS topic graph. doc
  • roscore_regardless.py – runs a command, killing and restarting it according to roscore liveness. doc
  • bag_plotter.py – plots fields of a bag file directly, configured by a yaml file. doc
  • sanity_diagnostics.py – publishes to /diagnostics whether the topics and nodes listed in ~sanity_targets are alive. doc
rosrun jsk_tools topic_hz_monitor.py /euclidean_segmentation/output --search-parent
rosrun jsk_tools roscore_regardless.py rostopic echo /foo

Shell functions (ROS 1)

Installed as catkin env-hooks, available after sourcing the workspace:

  • rossetmaster [hostname] [port], rossetlocal, rosdefault / rossetdefault – set ROS_MASTER_URI.
  • rossetip – set ROS_IP and ROS_HOSTNAME.
  • config_switch – switch dotfiles and shell between users.

See setup_env_for_ros.md and config_switch.rst.

Test nodes (ROS 1)

For use in rostest files:

  • test_topic_published.py – checks that topics (~topic_%d) are (or, with ~negative_%d, are not) published within ~timeout_%d, optionally checking a Python ~condition_%d. doc
  • test_stdout.py – checks the stdout of a shell command (~command, ~stdout, ~stdout_line%d). doc
  • test_rosparam_set.py – checks that parameters are set.
<test test-name="test_stdout" pkg="jsk_tools" type="test_stdout.py">
  <param name="command" value="echo hello" />
  <param name="stdout_line0" value="hello" />
  <param name="shell" value="true" />
</test>

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_tools

3.0.6 (2026-12-06)

  • Merge pull request #1844 from k-okada/readme-update
  • jsk_tools/README.md: audible_warning.py does not speak on ROS 2 On ROS 2, audible_warning.py creates no /robotsound client, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] and publishes the text on ~output/text and ~output/original_text only. Pointed out by the review of Copilot. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • jsk_tools: README of the nodes, their ROS 1 / ROS 2 support and the usage Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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 #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

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

    - package.xml: add a ROS2 buildtool_depend on ros_environment, which sets ROS_VERSION.

    - CMakeLists.txt: when ROS_VERSION is still unset, guess it from AMENT_PREFIX_PATH (bloom's ROS2 debian/rules passes it to cmake, setup.sh and colcon set the environment variable, catkin never does) instead of always assuming ROS1, and warn about it. jsk_tools had no fallback at all and gets the same block. Applies to jsk_ros1_ros2_compat, jsk_tools, jsk_topic_tools, jsk_common, jsk_data, jsk_rosbag_tools, dynamic_tf_publisher, audio_video_recorder and image_view2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada

3.0.2 (2026-11-02)

  • Merge pull request #1831 from k-okada/ros2-compat-fixes [jsk_ros1_ros2_compat] fix queue_size/shutdown/throttle; add init_node/spin, latch, actionlib, reconfigure, uv venv helpers

  • [jsk_ros1_ros2_compat, jsk_tools, jsk_data] fix queue_size/shutdown handling, add missing helpers

    - create_subscription(): ROS1 silently dropped queue_size, so e.g. audible_warning.py's queue_size=1 subscribers became unbounded. Pass it through, and default to None so each side keeps its own default (unbounded for rospy, depth 1 for rclpy). battery_capacity_summary.py and data_collection_server.py passed 1 only because of the old default; drop it so their ROS1 queues stay unbounded as before.

    - spin_and_shutdown(): rclpy's signal handlers raise ExternalShutdownException (not KeyboardInterrupt) out of spin() on SIGINT/SIGTERM, which printed a traceback and exited with 1. Treat

File truncated at 100 lines see the full file

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_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.6
License Apache-2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

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

Package Description

Includes emacs scripts, ros tool alias generator, and launch doc generator.

Additional Links

Maintainers

  • Ryohei Ueda

Authors

  • Ryohei Ueda (ueda jsk.t.u-tokyo.ac.jp)
  • Rosen Diankov (rosen.diankov gmail.com)

jsk_tools

Everyday tools for working with ROS robots in JSK. The package provides a node that speaks diagnostics errors (audible_warning.py), command line tools to monitor topics, hosts and roscore, test nodes for rostest, shell functions to set up ROS_MASTER_URI / ROS_IP, and dot files for emacs and tmux.

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
audible_warning.py (node_scripts/) yes yes
battery_capacity_summary.py (bin/) yes yes
Python module jsk_tools yes yes
Other tools in bin/ (roscore_regardless.py, bag_plotter.py, check_host_sanity.py, kill_after_seconds.py, roscore_check.py, roscore_monitor.py, ros_console.py, run_tmux, git-jsk-commit, …) yes -
Tools in src/ (topic_hz_monitor.py, topic_delay_monitor.py, rostopic_host_sanity, sanity_diagnostics.py, nodes_graph.py, …) yes -
Test nodes test_topic_published.py, test_rosparam_set.py, test_stdout.py yes -
Shell env-hooks (rossetmaster, rossetip, config_switch, …) and CMake extras (jsk_tools_add_shell_test, download_package.cmake) yes -
Launch files in launch/ and sample/ yes -

The rostest helpers, sanity_diagnostics.py and the roscore_* tools rely on ROS 1 master introspection and stay ROS 1 only. There are no ROS 2 launch files; use ros2 run jsk_tools <exe>.

audible_warning.py

Subscribes /diagnostics_agg (diagnostic_msgs/DiagnosticArray) and speaks the error contents through the /robotsound action (sound_play/SoundRequestAction) on ROS 1; remap it if your sound server has another name. On ROS 2 it does not speak, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] would speak: ... and publishes the text (~output/text, ~output/original_text) only.

Main parameters: ~speak_interval (default 120.0 s, the same error is not repeated within this time), ~volume, ~language, ~wait_speak, ~seconds_to_start_speaking, ~enable, ~speak_ok / ~speak_warn / ~speak_error / ~speak_stale, ~run_stop_topic and ~run_stop_condition (silence errors while the robot is run-stopped), ~blacklist and ~run_stop_blacklist (regular expressions on diagnostic name / message). See audible_warning.md for the full list.

On ROS 2, ~blacklist / ~run_stop_blacklist are not supported (ROS 2 parameters cannot hold lists of dicts) and ~run_stop_topic is always subscribed as std_msgs/Bool. The enable, speak_* parameters can be changed at runtime (dynamic_reconfigure on ROS 1, ros2 param set on ROS 2).

# ROS 1
roslaunch jsk_tools sample_audible_warning.launch
# ROS 2 (no speech, the log and the text only)
ros2 run jsk_tools audible_warning.py --ros-args -p speak_interval:=60.0

battery_capacity_summary.py

Subscribes /diagnostics_agg and prints a table of the /Power System/Smart Battery entries (serial number, manufacture date, full/remaining capacity, voltage, cycle count, status). Requires colorama.

rosrun jsk_tools battery_capacity_summary.py         # ROS 1
ros2 run jsk_tools battery_capacity_summary.py       # ROS 2

Command line tools (ROS 1)

  • topic_hz_monitor.py – finds the bottleneck in a chain of nodes by showing the rate of a topic and, with --search-parent, of its upstream topics. doc
  • topic_delay_monitor.py – same as topic_hz_monitor.py, but shows the delay from the header timestamp. doc
  • rostopic_host_sanity – checks the network connection to every host in the ROS topic graph. doc
  • roscore_regardless.py – runs a command, killing and restarting it according to roscore liveness. doc
  • bag_plotter.py – plots fields of a bag file directly, configured by a yaml file. doc
  • sanity_diagnostics.py – publishes to /diagnostics whether the topics and nodes listed in ~sanity_targets are alive. doc
rosrun jsk_tools topic_hz_monitor.py /euclidean_segmentation/output --search-parent
rosrun jsk_tools roscore_regardless.py rostopic echo /foo

Shell functions (ROS 1)

Installed as catkin env-hooks, available after sourcing the workspace:

  • rossetmaster [hostname] [port], rossetlocal, rosdefault / rossetdefault – set ROS_MASTER_URI.
  • rossetip – set ROS_IP and ROS_HOSTNAME.
  • config_switch – switch dotfiles and shell between users.

See setup_env_for_ros.md and config_switch.rst.

Test nodes (ROS 1)

For use in rostest files:

  • test_topic_published.py – checks that topics (~topic_%d) are (or, with ~negative_%d, are not) published within ~timeout_%d, optionally checking a Python ~condition_%d. doc
  • test_stdout.py – checks the stdout of a shell command (~command, ~stdout, ~stdout_line%d). doc
  • test_rosparam_set.py – checks that parameters are set.
<test test-name="test_stdout" pkg="jsk_tools" type="test_stdout.py">
  <param name="command" value="echo hello" />
  <param name="stdout_line0" value="hello" />
  <param name="shell" value="true" />
</test>

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_tools

3.0.6 (2026-12-06)

  • Merge pull request #1844 from k-okada/readme-update
  • jsk_tools/README.md: audible_warning.py does not speak on ROS 2 On ROS 2, audible_warning.py creates no /robotsound client, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] and publishes the text on ~output/text and ~output/original_text only. Pointed out by the review of Copilot. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • jsk_tools: README of the nodes, their ROS 1 / ROS 2 support and the usage Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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 #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

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

    - package.xml: add a ROS2 buildtool_depend on ros_environment, which sets ROS_VERSION.

    - CMakeLists.txt: when ROS_VERSION is still unset, guess it from AMENT_PREFIX_PATH (bloom's ROS2 debian/rules passes it to cmake, setup.sh and colcon set the environment variable, catkin never does) instead of always assuming ROS1, and warn about it. jsk_tools had no fallback at all and gets the same block. Applies to jsk_ros1_ros2_compat, jsk_tools, jsk_topic_tools, jsk_common, jsk_data, jsk_rosbag_tools, dynamic_tf_publisher, audio_video_recorder and image_view2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada

3.0.2 (2026-11-02)

  • Merge pull request #1831 from k-okada/ros2-compat-fixes [jsk_ros1_ros2_compat] fix queue_size/shutdown/throttle; add init_node/spin, latch, actionlib, reconfigure, uv venv helpers

  • [jsk_ros1_ros2_compat, jsk_tools, jsk_data] fix queue_size/shutdown handling, add missing helpers

    - create_subscription(): ROS1 silently dropped queue_size, so e.g. audible_warning.py's queue_size=1 subscribers became unbounded. Pass it through, and default to None so each side keeps its own default (unbounded for rospy, depth 1 for rclpy). battery_capacity_summary.py and data_collection_server.py passed 1 only because of the old default; drop it so their ROS1 queues stay unbounded as before.

    - spin_and_shutdown(): rclpy's signal handlers raise ExternalShutdownException (not KeyboardInterrupt) out of spin() on SIGINT/SIGTERM, which printed a traceback and exited with 1. Treat

File truncated at 100 lines see the full file

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_tools at Robotics Stack Exchange

Package Summary

Version 3.0.6
License Apache-2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

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

Package Description

Includes emacs scripts, ros tool alias generator, and launch doc generator.

Additional Links

Maintainers

  • Ryohei Ueda

Authors

  • Ryohei Ueda (ueda jsk.t.u-tokyo.ac.jp)
  • Rosen Diankov (rosen.diankov gmail.com)

jsk_tools

Everyday tools for working with ROS robots in JSK. The package provides a node that speaks diagnostics errors (audible_warning.py), command line tools to monitor topics, hosts and roscore, test nodes for rostest, shell functions to set up ROS_MASTER_URI / ROS_IP, and dot files for emacs and tmux.

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
audible_warning.py (node_scripts/) yes yes
battery_capacity_summary.py (bin/) yes yes
Python module jsk_tools yes yes
Other tools in bin/ (roscore_regardless.py, bag_plotter.py, check_host_sanity.py, kill_after_seconds.py, roscore_check.py, roscore_monitor.py, ros_console.py, run_tmux, git-jsk-commit, …) yes -
Tools in src/ (topic_hz_monitor.py, topic_delay_monitor.py, rostopic_host_sanity, sanity_diagnostics.py, nodes_graph.py, …) yes -
Test nodes test_topic_published.py, test_rosparam_set.py, test_stdout.py yes -
Shell env-hooks (rossetmaster, rossetip, config_switch, …) and CMake extras (jsk_tools_add_shell_test, download_package.cmake) yes -
Launch files in launch/ and sample/ yes -

The rostest helpers, sanity_diagnostics.py and the roscore_* tools rely on ROS 1 master introspection and stay ROS 1 only. There are no ROS 2 launch files; use ros2 run jsk_tools <exe>.

audible_warning.py

Subscribes /diagnostics_agg (diagnostic_msgs/DiagnosticArray) and speaks the error contents through the /robotsound action (sound_play/SoundRequestAction) on ROS 1; remap it if your sound server has another name. On ROS 2 it does not speak, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] would speak: ... and publishes the text (~output/text, ~output/original_text) only.

Main parameters: ~speak_interval (default 120.0 s, the same error is not repeated within this time), ~volume, ~language, ~wait_speak, ~seconds_to_start_speaking, ~enable, ~speak_ok / ~speak_warn / ~speak_error / ~speak_stale, ~run_stop_topic and ~run_stop_condition (silence errors while the robot is run-stopped), ~blacklist and ~run_stop_blacklist (regular expressions on diagnostic name / message). See audible_warning.md for the full list.

On ROS 2, ~blacklist / ~run_stop_blacklist are not supported (ROS 2 parameters cannot hold lists of dicts) and ~run_stop_topic is always subscribed as std_msgs/Bool. The enable, speak_* parameters can be changed at runtime (dynamic_reconfigure on ROS 1, ros2 param set on ROS 2).

# ROS 1
roslaunch jsk_tools sample_audible_warning.launch
# ROS 2 (no speech, the log and the text only)
ros2 run jsk_tools audible_warning.py --ros-args -p speak_interval:=60.0

battery_capacity_summary.py

Subscribes /diagnostics_agg and prints a table of the /Power System/Smart Battery entries (serial number, manufacture date, full/remaining capacity, voltage, cycle count, status). Requires colorama.

rosrun jsk_tools battery_capacity_summary.py         # ROS 1
ros2 run jsk_tools battery_capacity_summary.py       # ROS 2

Command line tools (ROS 1)

  • topic_hz_monitor.py – finds the bottleneck in a chain of nodes by showing the rate of a topic and, with --search-parent, of its upstream topics. doc
  • topic_delay_monitor.py – same as topic_hz_monitor.py, but shows the delay from the header timestamp. doc
  • rostopic_host_sanity – checks the network connection to every host in the ROS topic graph. doc
  • roscore_regardless.py – runs a command, killing and restarting it according to roscore liveness. doc
  • bag_plotter.py – plots fields of a bag file directly, configured by a yaml file. doc
  • sanity_diagnostics.py – publishes to /diagnostics whether the topics and nodes listed in ~sanity_targets are alive. doc
rosrun jsk_tools topic_hz_monitor.py /euclidean_segmentation/output --search-parent
rosrun jsk_tools roscore_regardless.py rostopic echo /foo

Shell functions (ROS 1)

Installed as catkin env-hooks, available after sourcing the workspace:

  • rossetmaster [hostname] [port], rossetlocal, rosdefault / rossetdefault – set ROS_MASTER_URI.
  • rossetip – set ROS_IP and ROS_HOSTNAME.
  • config_switch – switch dotfiles and shell between users.

See setup_env_for_ros.md and config_switch.rst.

Test nodes (ROS 1)

For use in rostest files:

  • test_topic_published.py – checks that topics (~topic_%d) are (or, with ~negative_%d, are not) published within ~timeout_%d, optionally checking a Python ~condition_%d. doc
  • test_stdout.py – checks the stdout of a shell command (~command, ~stdout, ~stdout_line%d). doc
  • test_rosparam_set.py – checks that parameters are set.
<test test-name="test_stdout" pkg="jsk_tools" type="test_stdout.py">
  <param name="command" value="echo hello" />
  <param name="stdout_line0" value="hello" />
  <param name="shell" value="true" />
</test>

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_tools

3.0.6 (2026-12-06)

  • Merge pull request #1844 from k-okada/readme-update
  • jsk_tools/README.md: audible_warning.py does not speak on ROS 2 On ROS 2, audible_warning.py creates no /robotsound client, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] and publishes the text on ~output/text and ~output/original_text only. Pointed out by the review of Copilot. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • jsk_tools: README of the nodes, their ROS 1 / ROS 2 support and the usage Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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 #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

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

    - package.xml: add a ROS2 buildtool_depend on ros_environment, which sets ROS_VERSION.

    - CMakeLists.txt: when ROS_VERSION is still unset, guess it from AMENT_PREFIX_PATH (bloom's ROS2 debian/rules passes it to cmake, setup.sh and colcon set the environment variable, catkin never does) instead of always assuming ROS1, and warn about it. jsk_tools had no fallback at all and gets the same block. Applies to jsk_ros1_ros2_compat, jsk_tools, jsk_topic_tools, jsk_common, jsk_data, jsk_rosbag_tools, dynamic_tf_publisher, audio_video_recorder and image_view2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada

3.0.2 (2026-11-02)

  • Merge pull request #1831 from k-okada/ros2-compat-fixes [jsk_ros1_ros2_compat] fix queue_size/shutdown/throttle; add init_node/spin, latch, actionlib, reconfigure, uv venv helpers

  • [jsk_ros1_ros2_compat, jsk_tools, jsk_data] fix queue_size/shutdown handling, add missing helpers

    - create_subscription(): ROS1 silently dropped queue_size, so e.g. audible_warning.py's queue_size=1 subscribers became unbounded. Pass it through, and default to None so each side keeps its own default (unbounded for rospy, depth 1 for rclpy). battery_capacity_summary.py and data_collection_server.py passed 1 only because of the old default; drop it so their ROS1 queues stay unbounded as before.

    - spin_and_shutdown(): rclpy's signal handlers raise ExternalShutdownException (not KeyboardInterrupt) out of spin() on SIGINT/SIGTERM, which printed a traceback and exited with 1. Treat

File truncated at 100 lines see the full file

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_tools at Robotics Stack Exchange

Package Summary

Version 3.0.6
License Apache-2.0
Build type CATKIN
Use RECOMMENDED

Repository Summary

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

Package Description

Includes emacs scripts, ros tool alias generator, and launch doc generator.

Additional Links

Maintainers

  • Ryohei Ueda

Authors

  • Ryohei Ueda (ueda jsk.t.u-tokyo.ac.jp)
  • Rosen Diankov (rosen.diankov gmail.com)

jsk_tools

Everyday tools for working with ROS robots in JSK. The package provides a node that speaks diagnostics errors (audible_warning.py), command line tools to monitor topics, hosts and roscore, test nodes for rostest, shell functions to set up ROS_MASTER_URI / ROS_IP, and dot files for emacs and tmux.

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
audible_warning.py (node_scripts/) yes yes
battery_capacity_summary.py (bin/) yes yes
Python module jsk_tools yes yes
Other tools in bin/ (roscore_regardless.py, bag_plotter.py, check_host_sanity.py, kill_after_seconds.py, roscore_check.py, roscore_monitor.py, ros_console.py, run_tmux, git-jsk-commit, …) yes -
Tools in src/ (topic_hz_monitor.py, topic_delay_monitor.py, rostopic_host_sanity, sanity_diagnostics.py, nodes_graph.py, …) yes -
Test nodes test_topic_published.py, test_rosparam_set.py, test_stdout.py yes -
Shell env-hooks (rossetmaster, rossetip, config_switch, …) and CMake extras (jsk_tools_add_shell_test, download_package.cmake) yes -
Launch files in launch/ and sample/ yes -

The rostest helpers, sanity_diagnostics.py and the roscore_* tools rely on ROS 1 master introspection and stay ROS 1 only. There are no ROS 2 launch files; use ros2 run jsk_tools <exe>.

audible_warning.py

Subscribes /diagnostics_agg (diagnostic_msgs/DiagnosticArray) and speaks the error contents through the /robotsound action (sound_play/SoundRequestAction) on ROS 1; remap it if your sound server has another name. On ROS 2 it does not speak, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] would speak: ... and publishes the text (~output/text, ~output/original_text) only.

Main parameters: ~speak_interval (default 120.0 s, the same error is not repeated within this time), ~volume, ~language, ~wait_speak, ~seconds_to_start_speaking, ~enable, ~speak_ok / ~speak_warn / ~speak_error / ~speak_stale, ~run_stop_topic and ~run_stop_condition (silence errors while the robot is run-stopped), ~blacklist and ~run_stop_blacklist (regular expressions on diagnostic name / message). See audible_warning.md for the full list.

On ROS 2, ~blacklist / ~run_stop_blacklist are not supported (ROS 2 parameters cannot hold lists of dicts) and ~run_stop_topic is always subscribed as std_msgs/Bool. The enable, speak_* parameters can be changed at runtime (dynamic_reconfigure on ROS 1, ros2 param set on ROS 2).

# ROS 1
roslaunch jsk_tools sample_audible_warning.launch
# ROS 2 (no speech, the log and the text only)
ros2 run jsk_tools audible_warning.py --ros-args -p speak_interval:=60.0

battery_capacity_summary.py

Subscribes /diagnostics_agg and prints a table of the /Power System/Smart Battery entries (serial number, manufacture date, full/remaining capacity, voltage, cycle count, status). Requires colorama.

rosrun jsk_tools battery_capacity_summary.py         # ROS 1
ros2 run jsk_tools battery_capacity_summary.py       # ROS 2

Command line tools (ROS 1)

  • topic_hz_monitor.py – finds the bottleneck in a chain of nodes by showing the rate of a topic and, with --search-parent, of its upstream topics. doc
  • topic_delay_monitor.py – same as topic_hz_monitor.py, but shows the delay from the header timestamp. doc
  • rostopic_host_sanity – checks the network connection to every host in the ROS topic graph. doc
  • roscore_regardless.py – runs a command, killing and restarting it according to roscore liveness. doc
  • bag_plotter.py – plots fields of a bag file directly, configured by a yaml file. doc
  • sanity_diagnostics.py – publishes to /diagnostics whether the topics and nodes listed in ~sanity_targets are alive. doc
rosrun jsk_tools topic_hz_monitor.py /euclidean_segmentation/output --search-parent
rosrun jsk_tools roscore_regardless.py rostopic echo /foo

Shell functions (ROS 1)

Installed as catkin env-hooks, available after sourcing the workspace:

  • rossetmaster [hostname] [port], rossetlocal, rosdefault / rossetdefault – set ROS_MASTER_URI.
  • rossetip – set ROS_IP and ROS_HOSTNAME.
  • config_switch – switch dotfiles and shell between users.

See setup_env_for_ros.md and config_switch.rst.

Test nodes (ROS 1)

For use in rostest files:

  • test_topic_published.py – checks that topics (~topic_%d) are (or, with ~negative_%d, are not) published within ~timeout_%d, optionally checking a Python ~condition_%d. doc
  • test_stdout.py – checks the stdout of a shell command (~command, ~stdout, ~stdout_line%d). doc
  • test_rosparam_set.py – checks that parameters are set.
<test test-name="test_stdout" pkg="jsk_tools" type="test_stdout.py">
  <param name="command" value="echo hello" />
  <param name="stdout_line0" value="hello" />
  <param name="shell" value="true" />
</test>

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_tools

3.0.6 (2026-12-06)

  • Merge pull request #1844 from k-okada/readme-update
  • jsk_tools/README.md: audible_warning.py does not speak on ROS 2 On ROS 2, audible_warning.py creates no /robotsound client, as there is no sound_play of ROS 2: it logs [TTS disabled under ROS2] and publishes the text on ~output/text and ~output/original_text only. Pointed out by the review of Copilot. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • jsk_tools: README of the nodes, their ROS 1 / ROS 2 support and the usage Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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 #1835 from k-okada/ros-version-fallback-ament Fix ROS2 buildfarm binary jobs: ROS_VERSION without ros_environment, boost for jsk_topic_tools

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

    - package.xml: add a ROS2 buildtool_depend on ros_environment, which sets ROS_VERSION.

    - CMakeLists.txt: when ROS_VERSION is still unset, guess it from AMENT_PREFIX_PATH (bloom's ROS2 debian/rules passes it to cmake, setup.sh and colcon set the environment variable, catkin never does) instead of always assuming ROS1, and warn about it. jsk_tools had no fallback at all and gets the same block. Applies to jsk_ros1_ros2_compat, jsk_tools, jsk_topic_tools, jsk_common, jsk_data, jsk_rosbag_tools, dynamic_tf_publisher, audio_video_recorder and image_view2. Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>

  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada

3.0.2 (2026-11-02)

  • Merge pull request #1831 from k-okada/ros2-compat-fixes [jsk_ros1_ros2_compat] fix queue_size/shutdown/throttle; add init_node/spin, latch, actionlib, reconfigure, uv venv helpers

  • [jsk_ros1_ros2_compat, jsk_tools, jsk_data] fix queue_size/shutdown handling, add missing helpers

    - create_subscription(): ROS1 silently dropped queue_size, so e.g. audible_warning.py's queue_size=1 subscribers became unbounded. Pass it through, and default to None so each side keeps its own default (unbounded for rospy, depth 1 for rclpy). battery_capacity_summary.py and data_collection_server.py passed 1 only because of the old default; drop it so their ROS1 queues stay unbounded as before.

    - spin_and_shutdown(): rclpy's signal handlers raise ExternalShutdownException (not KeyboardInterrupt) out of spin() on SIGINT/SIGTERM, which printed a traceback and exited with 1. Treat

File truncated at 100 lines see the full file

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_tools at Robotics Stack Exchange