Open TaoXu-HNU opened 1 year ago
Thanks for your question! To convert rosbag to json file, we assume the 2D LiDAR data (sensor_msgs/LaserScan.msg) and pose data (nav_msgs/Odometry.msg) have been included in your bag file.
Regarding the json format, the LiDAR's parameters can be found in the LaserScan message:
'num_beams': the length of ranges "angle_min": angle_min "angle_max": angle_max "angle_res": angle_increment "field_of_view": angle_max - angle_min "max_range": range_max
For the "scan" in the json file:
"timestamp": in the header from LaserScan message
"range_readings": ranges from LaserScan message
"odom": pose from Odometry message, you need convert it to (x, y, yaw)
format
"transform_matrix": converting the "odom" to the transformation matrix
There are two points you should be careful of:
We will provide an example later. Thanks!
Thank you very much for your patient and professional reply and I will follow your instructions for further attempts.
Hi,
I provide a toolbox for data preprocessing, including data format conversions. You can check the INSTRUCTIONS.md in the dev
branch now.
Because the toolbox is not finished yet, we put it in the dev
branch now. If you found any bugs in these tools, please let me know! We will merge it into the main
after all modules are completed.
Thanks!
Can the author or anyone else tell me how to convert the (.bag) file format to (json) format and divide the training/validation/testing set when creating my own dataset?