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

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

All tools are command line scripts that read and write bag files offline; no running ROS nodes are required.

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament), selected by $ROS_VERSION. The same scripts are installed on both:

Script ROS 1 (rosrun) ROS 2 (ros2 run)
bag_to_video.py yes yes
bag_to_audio.py yes yes
video_to_bag.py yes yes
compress_imgs.py yes yes
tf_static_to_tf.py yes yes
merge.py yes yes
add_heatmap.py yes yes
rosrun jsk_rosbag_tools bag_to_video.py ...    # ROS 1
ros2 run jsk_rosbag_tools bag_to_video.py ...  # ROS 2

Bag I/O goes through jsk_ros1_ros2_compat.rosbag, so the bag format follows the ROS environment the script runs in:

  • ROS 1 reads and writes .bag files (rosbag).
  • ROS 2 reads and writes rosbag2 bags, i.e. directories, with the sqlite3 storage plugin only (rosbag2_py). MCAP bags are not supported. A ROS 1 .bag file can not be read under ROS 2 and vice versa.

Notes on ROS 2:

  • The bundled sample bags (samples/data/*.bag) are ROS 1 bags and are only downloaded and installed by the ROS 1 build, so the examples below that use $(rospack find jsk_rosbag_tools)/samples/data are ROS 1 only.
  • On ROS 1 the Python dependencies that are not available as system packages (moviepy==1.0.3, Pillow, …; see requirements.in*) are installed into a catkin_virtualenv. On ROS 2 there is no virtualenv: install them into the Python environment yourself, e.g. pip install moviepy==1.0.3 (the code imports moviepy.editor, which moviepy 2.x removed).
  • Default output names are derived as for ROS 1 (e.g. <input>_merged.bag, <video>.bag), which become directory names under ROS 2. Pass --out to choose a name.
  • compress_imgs.py --replace moves the output onto the input path with shutil.move(). This works for ROS 1 .bag files; with a rosbag2 directory the output is moved into the input directory instead, so do not use --replace on ROS 2.
  • The ROS 2 tests cover the library functions behind compress_imgs.py, merge.py, add_heatmap.py and the topic extraction used by bag_to_video.py/bag_to_audio.py. The bag_to_video.py, bag_to_audio.py, video_to_bag.py and tf_static_to_tf.py command lines are not tested on rosbag2 yet.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] [--no-progress-bar] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.
  --no-progress-bar     Don't show progress bar.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

All tools are command line scripts that read and write bag files offline; no running ROS nodes are required.

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament), selected by $ROS_VERSION. The same scripts are installed on both:

Script ROS 1 (rosrun) ROS 2 (ros2 run)
bag_to_video.py yes yes
bag_to_audio.py yes yes
video_to_bag.py yes yes
compress_imgs.py yes yes
tf_static_to_tf.py yes yes
merge.py yes yes
add_heatmap.py yes yes
rosrun jsk_rosbag_tools bag_to_video.py ...    # ROS 1
ros2 run jsk_rosbag_tools bag_to_video.py ...  # ROS 2

Bag I/O goes through jsk_ros1_ros2_compat.rosbag, so the bag format follows the ROS environment the script runs in:

  • ROS 1 reads and writes .bag files (rosbag).
  • ROS 2 reads and writes rosbag2 bags, i.e. directories, with the sqlite3 storage plugin only (rosbag2_py). MCAP bags are not supported. A ROS 1 .bag file can not be read under ROS 2 and vice versa.

Notes on ROS 2:

  • The bundled sample bags (samples/data/*.bag) are ROS 1 bags and are only downloaded and installed by the ROS 1 build, so the examples below that use $(rospack find jsk_rosbag_tools)/samples/data are ROS 1 only.
  • On ROS 1 the Python dependencies that are not available as system packages (moviepy==1.0.3, Pillow, …; see requirements.in*) are installed into a catkin_virtualenv. On ROS 2 there is no virtualenv: install them into the Python environment yourself, e.g. pip install moviepy==1.0.3 (the code imports moviepy.editor, which moviepy 2.x removed).
  • Default output names are derived as for ROS 1 (e.g. <input>_merged.bag, <video>.bag), which become directory names under ROS 2. Pass --out to choose a name.
  • compress_imgs.py --replace moves the output onto the input path with shutil.move(). This works for ROS 1 .bag files; with a rosbag2 directory the output is moved into the input directory instead, so do not use --replace on ROS 2.
  • The ROS 2 tests cover the library functions behind compress_imgs.py, merge.py, add_heatmap.py and the topic extraction used by bag_to_video.py/bag_to_audio.py. The bag_to_video.py, bag_to_audio.py, video_to_bag.py and tf_static_to_tf.py command lines are not tested on rosbag2 yet.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] [--no-progress-bar] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.
  --no-progress-bar     Don't show progress bar.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

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

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

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

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

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

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

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

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

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

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

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

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

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

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

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

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

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

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

Usage

usage: bag_to_audio.py [-h] [--out OUT] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] input_bagfile

rosbag to audio

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output filename. If `--audio-topic`_info is exists, you don't have to specify samplerate and channels.
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC

Example

rosrun jsk_rosbag_tools bag_to_audio.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.wav

video_to_bag.py

Convert video file to bagfile.

Usage

usage: video_to_bag.py [-h] [--out output_file] [--topic-name TOPIC_NAME] [--compress] [--no-progress-bar] inputvideo

Convert video to bag.

positional arguments:
  inputvideo

optional arguments:
  -h, --help            show this help message and exit
  --out output_file, -o output_file
                        name of the output bag file
  --topic-name TOPIC_NAME
                        Converted topic name.
  --compress            Compress Image flag.
  --no-progress-bar     Don't show progress bar.

Example

```

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

All tools are command line scripts that read and write bag files offline; no running ROS nodes are required.

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament), selected by $ROS_VERSION. The same scripts are installed on both:

Script ROS 1 (rosrun) ROS 2 (ros2 run)
bag_to_video.py yes yes
bag_to_audio.py yes yes
video_to_bag.py yes yes
compress_imgs.py yes yes
tf_static_to_tf.py yes yes
merge.py yes yes
add_heatmap.py yes yes
rosrun jsk_rosbag_tools bag_to_video.py ...    # ROS 1
ros2 run jsk_rosbag_tools bag_to_video.py ...  # ROS 2

Bag I/O goes through jsk_ros1_ros2_compat.rosbag, so the bag format follows the ROS environment the script runs in:

  • ROS 1 reads and writes .bag files (rosbag).
  • ROS 2 reads and writes rosbag2 bags, i.e. directories, with the sqlite3 storage plugin only (rosbag2_py). MCAP bags are not supported. A ROS 1 .bag file can not be read under ROS 2 and vice versa.

Notes on ROS 2:

  • The bundled sample bags (samples/data/*.bag) are ROS 1 bags and are only downloaded and installed by the ROS 1 build, so the examples below that use $(rospack find jsk_rosbag_tools)/samples/data are ROS 1 only.
  • On ROS 1 the Python dependencies that are not available as system packages (moviepy==1.0.3, Pillow, …; see requirements.in*) are installed into a catkin_virtualenv. On ROS 2 there is no virtualenv: install them into the Python environment yourself, e.g. pip install moviepy==1.0.3 (the code imports moviepy.editor, which moviepy 2.x removed).
  • Default output names are derived as for ROS 1 (e.g. <input>_merged.bag, <video>.bag), which become directory names under ROS 2. Pass --out to choose a name.
  • compress_imgs.py --replace moves the output onto the input path with shutil.move(). This works for ROS 1 .bag files; with a rosbag2 directory the output is moved into the input directory instead, so do not use --replace on ROS 2.
  • The ROS 2 tests cover the library functions behind compress_imgs.py, merge.py, add_heatmap.py and the topic extraction used by bag_to_video.py/bag_to_audio.py. The bag_to_video.py, bag_to_audio.py, video_to_bag.py and tf_static_to_tf.py command lines are not tested on rosbag2 yet.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] [--no-progress-bar] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.
  --no-progress-bar     Don't show progress bar.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

All tools are command line scripts that read and write bag files offline; no running ROS nodes are required.

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament), selected by $ROS_VERSION. The same scripts are installed on both:

Script ROS 1 (rosrun) ROS 2 (ros2 run)
bag_to_video.py yes yes
bag_to_audio.py yes yes
video_to_bag.py yes yes
compress_imgs.py yes yes
tf_static_to_tf.py yes yes
merge.py yes yes
add_heatmap.py yes yes
rosrun jsk_rosbag_tools bag_to_video.py ...    # ROS 1
ros2 run jsk_rosbag_tools bag_to_video.py ...  # ROS 2

Bag I/O goes through jsk_ros1_ros2_compat.rosbag, so the bag format follows the ROS environment the script runs in:

  • ROS 1 reads and writes .bag files (rosbag).
  • ROS 2 reads and writes rosbag2 bags, i.e. directories, with the sqlite3 storage plugin only (rosbag2_py). MCAP bags are not supported. A ROS 1 .bag file can not be read under ROS 2 and vice versa.

Notes on ROS 2:

  • The bundled sample bags (samples/data/*.bag) are ROS 1 bags and are only downloaded and installed by the ROS 1 build, so the examples below that use $(rospack find jsk_rosbag_tools)/samples/data are ROS 1 only.
  • On ROS 1 the Python dependencies that are not available as system packages (moviepy==1.0.3, Pillow, …; see requirements.in*) are installed into a catkin_virtualenv. On ROS 2 there is no virtualenv: install them into the Python environment yourself, e.g. pip install moviepy==1.0.3 (the code imports moviepy.editor, which moviepy 2.x removed).
  • Default output names are derived as for ROS 1 (e.g. <input>_merged.bag, <video>.bag), which become directory names under ROS 2. Pass --out to choose a name.
  • compress_imgs.py --replace moves the output onto the input path with shutil.move(). This works for ROS 1 .bag files; with a rosbag2 directory the output is moved into the input directory instead, so do not use --replace on ROS 2.
  • The ROS 2 tests cover the library functions behind compress_imgs.py, merge.py, add_heatmap.py and the topic extraction used by bag_to_video.py/bag_to_audio.py. The bag_to_video.py, bag_to_audio.py, video_to_bag.py and tf_static_to_tf.py command lines are not tested on rosbag2 yet.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] [--no-progress-bar] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.
  --no-progress-bar     Don't show progress bar.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

All tools are command line scripts that read and write bag files offline; no running ROS nodes are required.

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament), selected by $ROS_VERSION. The same scripts are installed on both:

Script ROS 1 (rosrun) ROS 2 (ros2 run)
bag_to_video.py yes yes
bag_to_audio.py yes yes
video_to_bag.py yes yes
compress_imgs.py yes yes
tf_static_to_tf.py yes yes
merge.py yes yes
add_heatmap.py yes yes
rosrun jsk_rosbag_tools bag_to_video.py ...    # ROS 1
ros2 run jsk_rosbag_tools bag_to_video.py ...  # ROS 2

Bag I/O goes through jsk_ros1_ros2_compat.rosbag, so the bag format follows the ROS environment the script runs in:

  • ROS 1 reads and writes .bag files (rosbag).
  • ROS 2 reads and writes rosbag2 bags, i.e. directories, with the sqlite3 storage plugin only (rosbag2_py). MCAP bags are not supported. A ROS 1 .bag file can not be read under ROS 2 and vice versa.

Notes on ROS 2:

  • The bundled sample bags (samples/data/*.bag) are ROS 1 bags and are only downloaded and installed by the ROS 1 build, so the examples below that use $(rospack find jsk_rosbag_tools)/samples/data are ROS 1 only.
  • On ROS 1 the Python dependencies that are not available as system packages (moviepy==1.0.3, Pillow, …; see requirements.in*) are installed into a catkin_virtualenv. On ROS 2 there is no virtualenv: install them into the Python environment yourself, e.g. pip install moviepy==1.0.3 (the code imports moviepy.editor, which moviepy 2.x removed).
  • Default output names are derived as for ROS 1 (e.g. <input>_merged.bag, <video>.bag), which become directory names under ROS 2. Pass --out to choose a name.
  • compress_imgs.py --replace moves the output onto the input path with shutil.move(). This works for ROS 1 .bag files; with a rosbag2 directory the output is moved into the input directory instead, so do not use --replace on ROS 2.
  • The ROS 2 tests cover the library functions behind compress_imgs.py, merge.py, add_heatmap.py and the topic extraction used by bag_to_video.py/bag_to_audio.py. The bag_to_video.py, bag_to_audio.py, video_to_bag.py and tf_static_to_tf.py command lines are not tested on rosbag2 yet.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] [--no-progress-bar] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.
  --no-progress-bar     Don't show progress bar.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

All tools are command line scripts that read and write bag files offline; no running ROS nodes are required.

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament), selected by $ROS_VERSION. The same scripts are installed on both:

Script ROS 1 (rosrun) ROS 2 (ros2 run)
bag_to_video.py yes yes
bag_to_audio.py yes yes
video_to_bag.py yes yes
compress_imgs.py yes yes
tf_static_to_tf.py yes yes
merge.py yes yes
add_heatmap.py yes yes
rosrun jsk_rosbag_tools bag_to_video.py ...    # ROS 1
ros2 run jsk_rosbag_tools bag_to_video.py ...  # ROS 2

Bag I/O goes through jsk_ros1_ros2_compat.rosbag, so the bag format follows the ROS environment the script runs in:

  • ROS 1 reads and writes .bag files (rosbag).
  • ROS 2 reads and writes rosbag2 bags, i.e. directories, with the sqlite3 storage plugin only (rosbag2_py). MCAP bags are not supported. A ROS 1 .bag file can not be read under ROS 2 and vice versa.

Notes on ROS 2:

  • The bundled sample bags (samples/data/*.bag) are ROS 1 bags and are only downloaded and installed by the ROS 1 build, so the examples below that use $(rospack find jsk_rosbag_tools)/samples/data are ROS 1 only.
  • On ROS 1 the Python dependencies that are not available as system packages (moviepy==1.0.3, Pillow, …; see requirements.in*) are installed into a catkin_virtualenv. On ROS 2 there is no virtualenv: install them into the Python environment yourself, e.g. pip install moviepy==1.0.3 (the code imports moviepy.editor, which moviepy 2.x removed).
  • Default output names are derived as for ROS 1 (e.g. <input>_merged.bag, <video>.bag), which become directory names under ROS 2. Pass --out to choose a name.
  • compress_imgs.py --replace moves the output onto the input path with shutil.move(). This works for ROS 1 .bag files; with a rosbag2 directory the output is moved into the input directory instead, so do not use --replace on ROS 2.
  • The ROS 2 tests cover the library functions behind compress_imgs.py, merge.py, add_heatmap.py and the topic extraction used by bag_to_video.py/bag_to_audio.py. The bag_to_video.py, bag_to_audio.py, video_to_bag.py and tf_static_to_tf.py command lines are not tested on rosbag2 yet.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] [--no-progress-bar] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.
  --no-progress-bar     Don't show progress bar.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

All tools are command line scripts that read and write bag files offline; no running ROS nodes are required.

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament), selected by $ROS_VERSION. The same scripts are installed on both:

Script ROS 1 (rosrun) ROS 2 (ros2 run)
bag_to_video.py yes yes
bag_to_audio.py yes yes
video_to_bag.py yes yes
compress_imgs.py yes yes
tf_static_to_tf.py yes yes
merge.py yes yes
add_heatmap.py yes yes
rosrun jsk_rosbag_tools bag_to_video.py ...    # ROS 1
ros2 run jsk_rosbag_tools bag_to_video.py ...  # ROS 2

Bag I/O goes through jsk_ros1_ros2_compat.rosbag, so the bag format follows the ROS environment the script runs in:

  • ROS 1 reads and writes .bag files (rosbag).
  • ROS 2 reads and writes rosbag2 bags, i.e. directories, with the sqlite3 storage plugin only (rosbag2_py). MCAP bags are not supported. A ROS 1 .bag file can not be read under ROS 2 and vice versa.

Notes on ROS 2:

  • The bundled sample bags (samples/data/*.bag) are ROS 1 bags and are only downloaded and installed by the ROS 1 build, so the examples below that use $(rospack find jsk_rosbag_tools)/samples/data are ROS 1 only.
  • On ROS 1 the Python dependencies that are not available as system packages (moviepy==1.0.3, Pillow, …; see requirements.in*) are installed into a catkin_virtualenv. On ROS 2 there is no virtualenv: install them into the Python environment yourself, e.g. pip install moviepy==1.0.3 (the code imports moviepy.editor, which moviepy 2.x removed).
  • Default output names are derived as for ROS 1 (e.g. <input>_merged.bag, <video>.bag), which become directory names under ROS 2. Pass --out to choose a name.
  • compress_imgs.py --replace moves the output onto the input path with shutil.move(). This works for ROS 1 .bag files; with a rosbag2 directory the output is moved into the input directory instead, so do not use --replace on ROS 2.
  • The ROS 2 tests cover the library functions behind compress_imgs.py, merge.py, add_heatmap.py and the topic extraction used by bag_to_video.py/bag_to_audio.py. The bag_to_video.py, bag_to_audio.py, video_to_bag.py and tf_static_to_tf.py command lines are not tested on rosbag2 yet.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] [--no-progress-bar] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.
  --no-progress-bar     Don't show progress bar.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange

Package Summary

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

Repository Summary

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

Package Description

The rosbag tools

Maintainers

  • Iori Yanokura

Authors

  • Iori Yanokura

jsk_rosbag_tools

Tools such as creating video from rosbag and compressing rosbag images.

All tools are command line scripts that read and write bag files offline; no running ROS nodes are required.

ROS 1 / ROS 2

The package builds for both ROS 1 (catkin) and ROS 2 (ament), selected by $ROS_VERSION. The same scripts are installed on both:

Script ROS 1 (rosrun) ROS 2 (ros2 run)
bag_to_video.py yes yes
bag_to_audio.py yes yes
video_to_bag.py yes yes
compress_imgs.py yes yes
tf_static_to_tf.py yes yes
merge.py yes yes
add_heatmap.py yes yes
rosrun jsk_rosbag_tools bag_to_video.py ...    # ROS 1
ros2 run jsk_rosbag_tools bag_to_video.py ...  # ROS 2

Bag I/O goes through jsk_ros1_ros2_compat.rosbag, so the bag format follows the ROS environment the script runs in:

  • ROS 1 reads and writes .bag files (rosbag).
  • ROS 2 reads and writes rosbag2 bags, i.e. directories, with the sqlite3 storage plugin only (rosbag2_py). MCAP bags are not supported. A ROS 1 .bag file can not be read under ROS 2 and vice versa.

Notes on ROS 2:

  • The bundled sample bags (samples/data/*.bag) are ROS 1 bags and are only downloaded and installed by the ROS 1 build, so the examples below that use $(rospack find jsk_rosbag_tools)/samples/data are ROS 1 only.
  • On ROS 1 the Python dependencies that are not available as system packages (moviepy==1.0.3, Pillow, …; see requirements.in*) are installed into a catkin_virtualenv. On ROS 2 there is no virtualenv: install them into the Python environment yourself, e.g. pip install moviepy==1.0.3 (the code imports moviepy.editor, which moviepy 2.x removed).
  • Default output names are derived as for ROS 1 (e.g. <input>_merged.bag, <video>.bag), which become directory names under ROS 2. Pass --out to choose a name.
  • compress_imgs.py --replace moves the output onto the input path with shutil.move(). This works for ROS 1 .bag files; with a rosbag2 directory the output is moved into the input directory instead, so do not use --replace on ROS 2.
  • The ROS 2 tests cover the library functions behind compress_imgs.py, merge.py, add_heatmap.py and the topic extraction used by bag_to_video.py/bag_to_audio.py. The bag_to_video.py, bag_to_audio.py, video_to_bag.py and tf_static_to_tf.py command lines are not tested on rosbag2 yet.

bag_to_video.py

Create video from rosbag.

Usage

usage: bag_to_video.py [-h] [--out OUT] [--fps FPS] [--samplerate SAMPLERATE] [--channels CHANNELS] [--audio-topic AUDIO_TOPIC] [--image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]] [--no-progress-bar] input_bagfile

rosbag to video

positional arguments:
  input_bagfile

optional arguments:
  -h, --help            show this help message and exit
  --out OUT, -o OUT     output directory path or filename.
                        If more than one --image-topic are specified,
                        this will be interpreted as a directory name.
                        Otherwise this is the file name.
  --fps FPS
  --samplerate SAMPLERATE, -r SAMPLERATE
                        sampling rate
  --channels CHANNELS   number of input channels
  --audio-topic AUDIO_TOPIC
  --image-topic IMAGE_TOPIC [IMAGE_TOPIC ...]
                        Topic name to extract.
  --no-progress-bar     Don't show progress bar.

Example

rosrun jsk_rosbag_tools bag_to_video.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
  --samplerate 16000 --channels 1 --audio-topic /audio \
  --image-topic /head_camera/rgb/throttled/image_rect_color/compressed \
  -o /tmp/20220530173950_go_to_kitchen_rosbag.mp4

bag_to_audio.py

Create audio file from rosbag.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package jsk_rosbag_tools

3.0.5 (2026-11-10)

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

3.0.4 (2026-11-04)

  • Merge pull request #1838 from k-okada/no-ament-target-dependencies Fix ROS2 buildfarm binary jobs of 3.0.3: lyrical (ament_target_dependencies, message_filters), jsk_rosbag_tools samples/
  • [jsk_rosbag_tools] do not install the missing samples/ on ROS2 The ROS2 binary jobs fail at make install with "jsk-rosbag-tools-3.0.3/samples: No such file or directory". samples/ only has samples/data/.gitignore until the ROS1 download targets fill it, and the source package drops .gitignore files, so the directory does not exist on the buildfarm; ROS2 has no download target. Install only scripts/ on ROS2 (the ROS1 line is unchanged). Co-Authored-By: Claude Opus 5.5 <<noreply@anthropic.com>>
  • Contributors: Kei Okada

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

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

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

  • Add array heatmap tools with ROS 1 and ROS 2 support

    • Render numeric MultiArray and scalar Image topics as heatmap images with optional cell values and configurable color scales
    • Add heatmap topics to bags while preserving original messages, recording timestamps, and connection or QoS metadata
    • Extend the compatibility layer with raw bag I/O and shared message type helpers
    • Add installation rules, documentation, and tests for both ROS versions
  • Merge pull request #1833 from k-okada/release-3.0.2 3.0.2

  • Contributors: Kei Okada, Shun Hasegawa

3.0.2 (2026-11-02)

3.0.0 (2026-10-29)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange