![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at Robotics Stack Exchange
![]() |
jsk_rosbag_tools package from jsk_common repoaudio_video_recorder jsk_common dynamic_tf_publisher jsk_data jsk_network_tools image_view2 multi_map_server jsk_rosbag_tools jsk_tilt_laser jsk_tools jsk_topic_tools virtual_force_publisher |
ROS Distro
|
Package Summary
Tags | No category tags. |
Version | 2.2.16 |
License | BSD |
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 | 2025-04-07 |
Dev Status | DEVELOPED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
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 for package jsk_rosbag_tools
2.2.16 (2025-01-06)
- [ROS-O] fix for ROS-O
(#1802)
- jsk_rosbag_tools: use requirements.in.python3.12 for python3.12 (ubuntu 24.04)
- jsk_rosbag_tools/CMakeLists.txt: $ENV{ROS_DISTRO} -. "$ENV{ROS_DISTRO}" for 24.04, which does not have ROS_DISTRO environment
- Contributors: Kei Okada
2.2.15 (2024-12-13)
2.2.14 (2024-12-12)
- [jsk_rosbag_tools][ros-o] only use STREQUAL to compare ROS_DISTRO in cmake (#1807)
- .github/forkflows/config.yml: add ROS-O test (#1809)
- [jsk_rosbag_tools] Fixed pillow version (#1799)
- Contributors: Iori Yanokura, Yoshiki Obinata
2.2.13 (2023-11-09)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is
used
(#1784)
- [jsk_rosbag_tools] Use python3-catkin-pkg-modules when python3 is used
- set python2 for jsk_rosbag_tools
(#1781)
- set numpy version for python3
- split requirements.in for python2 and 3
- set scipy<1.9.0 to avoid build error with openblas https://github.com/scipy/scipy/issues/16308
- install scipy to avoid numpy attribute error
- catch StopIteration when all images do not have stamp (#1767)
- jsk_rosbag_tools: version of jsk_common is 2.2.12 (#1751)
- [jsk_rosbag_tools] Fixed a bug when the specified fps is less than the fps of the topic in rosbag. (#1750)
- Add jsk_rosbag_tools package (#1738)
- [jsk_rosbag_tools] Add descriptions for static_tf_republisher.py.
- [jsk_rosbag_tools] Enable catkin_virtualenv for pip dependencies
- [jsk_rosbag_tools] Specify python version
- [jsk_rosbag_tools] logerr subprocess command if failed
- [jsk_rosbag_tools] Split test to avoid indigo's error
- [jsk_rosbag_tools] Drop installation of requirements.in and requirements.txt
- [jsk_rosbag_tools] Add dependencies of download data
- [jsk_rosbag_tools] Refactor test to print command log
- [jsk_rosbag_tools] Avoid raise ValueError on invalid compressed format.
- [jsk_rosbag_tools] Add resize_keeping_aspect_ratio_wrt_target_size to fix video
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Fixed E226 missing whitespace around arithmetic operator
- [jsk_rosbag_tools] Add show_progress_bar option
- [jsk_rosbag_tools] Add .wav ext
- [jsk_rosbag_tools] Add fps option
- [jsk_rosbag_tools] Add message to raise
- [jsk_rosbag_tools] Resize every frame
- [jsk_rosbag_tools] Fix bug when saving to local path with --image-topic
- [jsk_rosbag_tools] Allow to record mono8 topics for mask images
- [jsk_rosbag_tools] Fixed compr_type condition
- [jsk_rosbag_tools] Check topic exists
- [jsk_rosbag_tools] Fixed W503 line break before binary operator
- [jsk_rosbag_tools] Rename extract_audio to bag_to_audio
- [jsk_rosbag_tools] Fixed E225 missing whitespace around operator
- [jsk_rosbag_tools] Decompress as much as possible
- [jsk_rosbag_tools] Refactor dependencies
- [jsk_rosbag_tools] Enable python2 compatibility
- [jsk_rosbag_tools] Add shebang
- [jsk_rosbag_tools] chmod u+x test_jsk_rosbag_tools.py
- [jsk_rosbag_tools] Add bag_to_audio.py
- [jsk_rosbag_tools] Makedirs in extract_audio
- [jsk_rosbag_tools] Include AudioFileClip and VideoFileClip to prevent calling pygame.init()
- [jsk_rosbag_tools] chmod u+x
- [jsk_rosbag_tools] Fixed sample docs
- [jsk_rosbag_tools] Fixed bag to video docs
- [jsk_rosbag_tools] Import AudioFileClip and VideoFileClip
- [jsk_rosbag_tools] Use library's function
- [jsk_rosbag_tools] Seperate bag_to_video function as library
- [jsk_rosbag_tools] Add topic_name_to_file_name
- [jsk_rosbag_tools] Add makedirs library for python2
- [jsk_rosbag_tools] Set time-limit to 360.0
- [jsk_rosbag_tools] Modified sample bagfile to reduce test time
- [jsk_rosbag_tools] Set version to 2.2.11
- [jsk_rosbag_tools] Drop catkin virtualenv
- Add jsk_rosbag_tools package
File truncated at 100 lines see the full file
Wiki Tutorials
Package Dependencies
System Dependencies
Dependant Packages
Name | Deps |
---|---|
jsk_common |