-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathik_qpbenchmark.py
42 lines (32 loc) · 1016 Bytes
/
ik_qpbenchmark.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Inria
from pathlib import Path
import qpbenchmark
from qpbenchmark.benchmark import main
class IkQpbenchmark(qpbenchmark.ParquetTestSet):
"""IK test set."""
@property
def description(self) -> str:
return (
"Differential inverse kinematics QP problems "
"generated from robot motions"
)
@property
def title(self) -> str:
return "IK test set"
@property
def sparse_only(self) -> bool:
return False
def __init__(self):
script_dir = Path(__file__).resolve().parent
parquet_path = script_dir / "data" / "ik_qpbenchmark.parquet"
super().__init__(parquet_path)
if __name__ == "__main__":
test_set_path = Path(__file__).resolve()
results_path = (
test_set_path.parent / "results" / "qpbenchmark_results.parquet"
)
main(test_set_path=test_set_path, results_path=results_path)