GUI tool to convert topics in rosbag file to json file.
Currently, this tool supports Python2 and behavior was confirmed on ROS Melodic.
Clone this repository in your ROS workspace and execute the following commands. If you have not initialized rosdep yet, please run rosdep init and update commends before installation.
$ cd ~/catkin_ws/src
$ git clone https://github.com/ShisatoYano/rosbag_to_json_converter.git
$ cd ~/catkin_ws
$ rosdep install -r --ignore-src --from-paths src
$ catkin_make
Execute this command.
$ rosrun rosbag_to_json_converter rosbag_to_json_converter.py
By executing the command with an option, -h or --help, you can see optional arguments as follow.
After you executed the above command, an dialog to select a rosbag file will be displayed as follow. And then, select bag file and click "Open" button.
After you selected bag files, an GUI to select topics you want to convert will be displayed as follow.
You can selsect single or multiple topics. After that, please push "OK" button.
After you selected topics and pushed "OK", this tool will start converting to json file and diplay the following message and loaded bag file in the terminal. Please wait for a while until finish converting.
Finally, the following message dialog is displayed and conversion complete.
JSON file is generated in your current directory.
The file's name is defined as "(Loaded bag file's name)_(each selected topic name).json".