()
| 470 | |
| 471 | |
| 472 | def main(): |
| 473 | if len(sys.argv) < 2: |
| 474 | print("Error: No XML file specified") |
| 475 | print("Usage: python clean_meshes_trimesh.py <path_to_xml>") |
| 476 | print('Example: python clean_meshes_trimesh.py "C:/mujoco_menagerie/franka_emika_panda/panda.xml"') |
| 477 | return |
| 478 | |
| 479 | xml_path = Path(sys.argv[1]) |
| 480 | |
| 481 | if xml_path.suffix.lower() == ".xml": |
| 482 | process_xml(xml_path) |
| 483 | else: |
| 484 | print(f"Error: Expected an .xml file, got '{xml_path.suffix}'") |
| 485 | print("Usage: python clean_meshes_trimesh.py <path_to_xml>") |
| 486 | |
| 487 | |
| 488 | if __name__ == "__main__": |
no test coverage detected