===== Dataset Creation =====
How to create dataset in SLAM-Hive System.
==== Full Version ====
=== 1. Provide Dataset Sequence with Running Script ===
You should have your dataset sequence at /SLAM-Hive/slam_hive_datasets/xxx, and provide a running script to play the dataset.
We provide a script example for reference (EuRoC MH_01_easy sequency):
import yaml
import subprocess
config_raw = open("/slamhive/config.yaml",'r',encoding="UTF-8").read()
config_dict = yaml.load(config_raw, Loader=yaml.FullLoader)
remap_dict = config_dict["dataset-remap"]
topic_list = ["/cam0/image_raw",
"/cam1/image_raw",
"/imu0",
"/leica/position"]
remap_list = []
if remap_dict != None:
for key, value in remap_dict.items():
if value in topic_list:
remap_list.append(value + ":=" + key)
remap = ' '.join(remap_list)
playrosbag_command = "rosbag play /slamhive/dataset/MH_01_easy.bag " \
+ remap + " --clock "
print(playrosbag_command)
subprocess.run(playrosbag_command, shell=True)
=== 2. Add new Dataset to SLAM-Hive ===
For example, you want to upload a new dataset sequence named "New-Dataset-seq1":
You should input:
Dataset folder name: New-Dataset-seq1
Dataset address link: Dataset Downloading Link # If you provide
Description: # Some description of algorithm
Attribute: # Some special attributes of dataset
After all, you can click //save// button to add the dataset to the database.