robotwin data conversion issue
Dear authors, thank you for your excellent work and code!
However, when I followed data/robotwin2/robotwin_data_convert/README.md, I found run_conversion.sh L158:
$PYTHON_CMD robotwin_converter_new.py \ # not uploaded
--config "$CONFIG_FILE" \
$VERBOSE_FLAG \
2>&1 | tee "$LOG_FILE"
There is only robotwin_converter.py, no robotwin_converter_new.py, in current data/robotwin2/robotwin_data_convert dir.
I manually modified it here to call robotwin_converter.py. Unfortunately, this file will search for qpos data in the robotwin hdf5 file, but I found that there is no such item.
Therefore, I judged that the qpos in the code should correspond to joint_action/vector in the data and added it to L400. Overall, most data processing was fine, but occasionally data processing may report the following errors:
Processing aloha-agilex_randomized_500: 57%|█████▋ | 283/500 [10:21<08:06, 2.24s/it]2025-12-29 09:11:28,640 - WARNING - Trajectory rejected: max absolute qpos value 8.527 > 4.0
2025-12-29 09:11:28,640 - WARNING - Skipping episode 283: qpos validation failed
2025-12-29 09:11:28,644 - WARNING - Failed to process episode 283 in task aloha-agilex_randomized_500
I am not sure if this is correct, so I would like to consult your opinion. Alternatively, uploading robotwin_comverter_new.by may solve the problem I encountered. Thank you.
Thank you very much. I'll fix it right away
Processing aloha-agilex_randomized_500: 57%|█████▋ | 283/500 [10:21<08:06, 2.24s/it]2025-12-29 09:11:28,640 - WARNING - Trajectory rejected: max absolute qpos value 8.527 > 4.0 2025-12-29 09:11:28,640 - WARNING - Skipping episode 283: qpos validation failed 2025-12-29 09:11:28,644 - WARNING - Failed to process episode 283 in task aloha-agilex_randomized_500
This is because the data of robotwin, whether it is the official data or the data produced by ourselves, will have the problem of weird rotation of the robot arm. It is better to remove this part of data, so we remove the data whose absolute value is greater than 4 in qpos 14dim.