|
Package Summary
Tags | No category tags. |
Version | 2.2.12 |
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 | 2022-12-15 |
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
rosrun jsk_rosbag_tools video_to_bag.py /tmp/output_bag/head_camera--slash--rgb--slash--throttled--slash--image_rect_color--slash--compressed-with-audio.mp4 \
-o /tmp/output_bag/video.bag --compress
compress_imgs.py
Convert Image
messages to CompressedImage
or CompressedDepthImage
.
Usage
usage: compress_imgs.py [-h] [--out OUT] [--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]] [--replace] [--no-progress-bar] input_bagfile
Convert Image messages to CompressedImage or CompressedDepthImage
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]
this image topics are compressed
--replace
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools compress_imgs.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
-o /tmp/20220530173950_go_to_kitchen_rosbag-compressed.bag
tf_static_to_tf.py
Convert tf_static to tf and save it as a rosbag.
usage: tf_static_to_tf.py [-h] [--out OUT] [--no-progress-bar] input_bagfile
Convert tf_static to tf and save it as a rosbag
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools tf_static_to_tf.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag
Note
jsk_topic_tools
has a static_tf_republisher.py which republish /tf_static
from a rosbag file.
tf_static_to_tf.py
is an approach to rewrite the rosbag file.
merge.py
Merges two bagfiles.
Usage
usage: merge.py [-h] [--out output_file] [--topics TOPICS] [-i] main_bagfile bagfile
Merges two bagfiles.
positional arguments:
main_bagfile path to a bagfile, which will be the main bagfile
bagfile path to a bagfile which should be merged to the main bagfile
optional arguments:
-h, --help show this help message and exit
--out output_file, -o output_file
name of the output file
--topics TOPICS, -t TOPICS
topics which should be merged to the main bag
-i reindex bagfile
Example
rosrun jsk_rosbag_tools merge.py \
$(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
$(rospack find jsk_rosbag_tools)/samples/data/2022-05-07-hello-test.bag
Wiki Tutorials
Source Tutorials
Package Dependencies
Deps | Name | |
---|---|---|
1 | catkin_virtualenv | |
1 | catkin | |
1 | audio_common_msgs | |
3 | cv_bridge | |
2 | sensor_msgs | |
1 | roslint | |
2 | rostest |
System Dependencies
Dependant Packages
Name | Repo | Deps |
---|---|---|
jsk_common | github-jsk-ros-pkg-jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at answers.ros.org
|
Package Summary
Tags | No category tags. |
Version | 2.2.12 |
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 | 2022-12-15 |
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
rosrun jsk_rosbag_tools video_to_bag.py /tmp/output_bag/head_camera--slash--rgb--slash--throttled--slash--image_rect_color--slash--compressed-with-audio.mp4 \
-o /tmp/output_bag/video.bag --compress
compress_imgs.py
Convert Image
messages to CompressedImage
or CompressedDepthImage
.
Usage
usage: compress_imgs.py [-h] [--out OUT] [--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]] [--replace] [--no-progress-bar] input_bagfile
Convert Image messages to CompressedImage or CompressedDepthImage
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]
this image topics are compressed
--replace
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools compress_imgs.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
-o /tmp/20220530173950_go_to_kitchen_rosbag-compressed.bag
tf_static_to_tf.py
Convert tf_static to tf and save it as a rosbag.
usage: tf_static_to_tf.py [-h] [--out OUT] [--no-progress-bar] input_bagfile
Convert tf_static to tf and save it as a rosbag
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools tf_static_to_tf.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag
Note
jsk_topic_tools
has a static_tf_republisher.py which republish /tf_static
from a rosbag file.
tf_static_to_tf.py
is an approach to rewrite the rosbag file.
merge.py
Merges two bagfiles.
Usage
usage: merge.py [-h] [--out output_file] [--topics TOPICS] [-i] main_bagfile bagfile
Merges two bagfiles.
positional arguments:
main_bagfile path to a bagfile, which will be the main bagfile
bagfile path to a bagfile which should be merged to the main bagfile
optional arguments:
-h, --help show this help message and exit
--out output_file, -o output_file
name of the output file
--topics TOPICS, -t TOPICS
topics which should be merged to the main bag
-i reindex bagfile
Example
rosrun jsk_rosbag_tools merge.py \
$(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
$(rospack find jsk_rosbag_tools)/samples/data/2022-05-07-hello-test.bag
Wiki Tutorials
Source Tutorials
Package Dependencies
Deps | Name | |
---|---|---|
1 | catkin_virtualenv | |
1 | catkin | |
1 | audio_common_msgs | |
3 | cv_bridge | |
2 | sensor_msgs | |
1 | roslint | |
2 | rostest |
System Dependencies
Dependant Packages
Name | Repo | Deps |
---|---|---|
jsk_common | github-jsk-ros-pkg-jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at answers.ros.org
|
Package Summary
Tags | No category tags. |
Version | 2.2.12 |
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 | 2022-12-15 |
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
rosrun jsk_rosbag_tools video_to_bag.py /tmp/output_bag/head_camera--slash--rgb--slash--throttled--slash--image_rect_color--slash--compressed-with-audio.mp4 \
-o /tmp/output_bag/video.bag --compress
compress_imgs.py
Convert Image
messages to CompressedImage
or CompressedDepthImage
.
Usage
usage: compress_imgs.py [-h] [--out OUT] [--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]] [--replace] [--no-progress-bar] input_bagfile
Convert Image messages to CompressedImage or CompressedDepthImage
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]
this image topics are compressed
--replace
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools compress_imgs.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
-o /tmp/20220530173950_go_to_kitchen_rosbag-compressed.bag
tf_static_to_tf.py
Convert tf_static to tf and save it as a rosbag.
usage: tf_static_to_tf.py [-h] [--out OUT] [--no-progress-bar] input_bagfile
Convert tf_static to tf and save it as a rosbag
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools tf_static_to_tf.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag
Note
jsk_topic_tools
has a static_tf_republisher.py which republish /tf_static
from a rosbag file.
tf_static_to_tf.py
is an approach to rewrite the rosbag file.
merge.py
Merges two bagfiles.
Usage
usage: merge.py [-h] [--out output_file] [--topics TOPICS] [-i] main_bagfile bagfile
Merges two bagfiles.
positional arguments:
main_bagfile path to a bagfile, which will be the main bagfile
bagfile path to a bagfile which should be merged to the main bagfile
optional arguments:
-h, --help show this help message and exit
--out output_file, -o output_file
name of the output file
--topics TOPICS, -t TOPICS
topics which should be merged to the main bag
-i reindex bagfile
Example
rosrun jsk_rosbag_tools merge.py \
$(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
$(rospack find jsk_rosbag_tools)/samples/data/2022-05-07-hello-test.bag
Wiki Tutorials
Source Tutorials
Package Dependencies
Deps | Name | |
---|---|---|
1 | catkin_virtualenv | |
1 | catkin | |
1 | audio_common_msgs | |
3 | cv_bridge | |
2 | sensor_msgs | |
1 | roslint | |
2 | rostest |
System Dependencies
Dependant Packages
Name | Repo | Deps |
---|---|---|
jsk_common | github-jsk-ros-pkg-jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at answers.ros.org
|
Package Summary
Tags | No category tags. |
Version | 2.2.12 |
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 | 2022-12-15 |
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
rosrun jsk_rosbag_tools video_to_bag.py /tmp/output_bag/head_camera--slash--rgb--slash--throttled--slash--image_rect_color--slash--compressed-with-audio.mp4 \
-o /tmp/output_bag/video.bag --compress
compress_imgs.py
Convert Image
messages to CompressedImage
or CompressedDepthImage
.
Usage
usage: compress_imgs.py [-h] [--out OUT] [--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]] [--replace] [--no-progress-bar] input_bagfile
Convert Image messages to CompressedImage or CompressedDepthImage
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]
this image topics are compressed
--replace
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools compress_imgs.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
-o /tmp/20220530173950_go_to_kitchen_rosbag-compressed.bag
tf_static_to_tf.py
Convert tf_static to tf and save it as a rosbag.
usage: tf_static_to_tf.py [-h] [--out OUT] [--no-progress-bar] input_bagfile
Convert tf_static to tf and save it as a rosbag
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools tf_static_to_tf.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag
Note
jsk_topic_tools
has a static_tf_republisher.py which republish /tf_static
from a rosbag file.
tf_static_to_tf.py
is an approach to rewrite the rosbag file.
merge.py
Merges two bagfiles.
Usage
usage: merge.py [-h] [--out output_file] [--topics TOPICS] [-i] main_bagfile bagfile
Merges two bagfiles.
positional arguments:
main_bagfile path to a bagfile, which will be the main bagfile
bagfile path to a bagfile which should be merged to the main bagfile
optional arguments:
-h, --help show this help message and exit
--out output_file, -o output_file
name of the output file
--topics TOPICS, -t TOPICS
topics which should be merged to the main bag
-i reindex bagfile
Example
rosrun jsk_rosbag_tools merge.py \
$(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
$(rospack find jsk_rosbag_tools)/samples/data/2022-05-07-hello-test.bag
Wiki Tutorials
Source Tutorials
Package Dependencies
Deps | Name | |
---|---|---|
1 | catkin_virtualenv | |
1 | catkin | |
1 | audio_common_msgs | |
3 | cv_bridge | |
2 | sensor_msgs | |
1 | roslint | |
2 | rostest |
System Dependencies
Dependant Packages
Name | Repo | Deps |
---|---|---|
jsk_common | github-jsk-ros-pkg-jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at answers.ros.org
|
Package Summary
Tags | No category tags. |
Version | 2.2.12 |
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 | 2022-12-15 |
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
rosrun jsk_rosbag_tools video_to_bag.py /tmp/output_bag/head_camera--slash--rgb--slash--throttled--slash--image_rect_color--slash--compressed-with-audio.mp4 \
-o /tmp/output_bag/video.bag --compress
compress_imgs.py
Convert Image
messages to CompressedImage
or CompressedDepthImage
.
Usage
usage: compress_imgs.py [-h] [--out OUT] [--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]] [--replace] [--no-progress-bar] input_bagfile
Convert Image messages to CompressedImage or CompressedDepthImage
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]
this image topics are compressed
--replace
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools compress_imgs.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
-o /tmp/20220530173950_go_to_kitchen_rosbag-compressed.bag
tf_static_to_tf.py
Convert tf_static to tf and save it as a rosbag.
usage: tf_static_to_tf.py [-h] [--out OUT] [--no-progress-bar] input_bagfile
Convert tf_static to tf and save it as a rosbag
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools tf_static_to_tf.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag
Note
jsk_topic_tools
has a static_tf_republisher.py which republish /tf_static
from a rosbag file.
tf_static_to_tf.py
is an approach to rewrite the rosbag file.
merge.py
Merges two bagfiles.
Usage
usage: merge.py [-h] [--out output_file] [--topics TOPICS] [-i] main_bagfile bagfile
Merges two bagfiles.
positional arguments:
main_bagfile path to a bagfile, which will be the main bagfile
bagfile path to a bagfile which should be merged to the main bagfile
optional arguments:
-h, --help show this help message and exit
--out output_file, -o output_file
name of the output file
--topics TOPICS, -t TOPICS
topics which should be merged to the main bag
-i reindex bagfile
Example
rosrun jsk_rosbag_tools merge.py \
$(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
$(rospack find jsk_rosbag_tools)/samples/data/2022-05-07-hello-test.bag
Wiki Tutorials
Source Tutorials
Package Dependencies
Deps | Name | |
---|---|---|
1 | catkin_virtualenv | |
1 | catkin | |
1 | audio_common_msgs | |
3 | cv_bridge | |
2 | sensor_msgs | |
1 | roslint | |
2 | rostest |
System Dependencies
Dependant Packages
Name | Repo | Deps |
---|---|---|
jsk_common | github-jsk-ros-pkg-jsk_common |
Launch files
Messages
Services
Plugins
Recent questions tagged jsk_rosbag_tools at answers.ros.org
|
Package Summary
Tags | No category tags. |
Version | 2.2.12 |
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 | 2022-12-15 |
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
rosrun jsk_rosbag_tools video_to_bag.py /tmp/output_bag/head_camera--slash--rgb--slash--throttled--slash--image_rect_color--slash--compressed-with-audio.mp4 \
-o /tmp/output_bag/video.bag --compress
compress_imgs.py
Convert Image
messages to CompressedImage
or CompressedDepthImage
.
Usage
usage: compress_imgs.py [-h] [--out OUT] [--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]] [--replace] [--no-progress-bar] input_bagfile
Convert Image messages to CompressedImage or CompressedDepthImage
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--compressed-topics [COMPRESSED_TOPICS [COMPRESSED_TOPICS ...]]
this image topics are compressed
--replace
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools compress_imgs.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
-o /tmp/20220530173950_go_to_kitchen_rosbag-compressed.bag
tf_static_to_tf.py
Convert tf_static to tf and save it as a rosbag.
usage: tf_static_to_tf.py [-h] [--out OUT] [--no-progress-bar] input_bagfile
Convert tf_static to tf and save it as a rosbag
positional arguments:
input_bagfile input bagfile path
optional arguments:
-h, --help show this help message and exit
--out OUT, -o OUT output bagfile path
--no-progress-bar Don't show progress bar.
Example
rosrun jsk_rosbag_tools tf_static_to_tf.py $(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag
Note
jsk_topic_tools
has a static_tf_republisher.py which republish /tf_static
from a rosbag file.
tf_static_to_tf.py
is an approach to rewrite the rosbag file.
merge.py
Merges two bagfiles.
Usage
usage: merge.py [-h] [--out output_file] [--topics TOPICS] [-i] main_bagfile bagfile
Merges two bagfiles.
positional arguments:
main_bagfile path to a bagfile, which will be the main bagfile
bagfile path to a bagfile which should be merged to the main bagfile
optional arguments:
-h, --help show this help message and exit
--out output_file, -o output_file
name of the output file
--topics TOPICS, -t TOPICS
topics which should be merged to the main bag
-i reindex bagfile
Example
rosrun jsk_rosbag_tools merge.py \
$(rospack find jsk_rosbag_tools)/samples/data/20220530173950_go_to_kitchen_rosbag.bag \
$(rospack find jsk_rosbag_tools)/samples/data/2022-05-07-hello-test.bag
Wiki Tutorials
Source Tutorials
Package Dependencies
Deps | Name | |
---|---|---|
1 | catkin_virtualenv | |
1 | catkin | |
1 | audio_common_msgs | |
3 | cv_bridge | |
2 | sensor_msgs | |
1 | roslint | |
2 | rostest |
System Dependencies
Dependant Packages
Name | Repo | Deps |
---|---|---|
jsk_common | github-jsk-ros-pkg-jsk_common |