|
30 | 30 | parser.add_argument("--warmup_steps", type=int, default=10, help="Number of warmup steps") |
31 | 31 | parser.add_argument("--num_instances", type=int, default=4096, help="Number of instances") |
32 | 32 | parser.add_argument("--device", type=str, default="cuda:0", help="Device for tensors") |
33 | | -parser.add_argument("--output_dir", type=str, default=".", help="Output directory for results") |
34 | | -parser.add_argument("--backend", type=str, default="json", choices=["json", "osmo", "omniperf"], help="Metrics backend") |
| 33 | +parser.add_argument( |
| 34 | + "--output_path", "--output_dir", dest="output_path", type=str, default=".", help="Output directory for results" |
| 35 | +) |
| 36 | +parser.add_argument( |
| 37 | + "--benchmark_formatter", |
| 38 | + "--backend", |
| 39 | + dest="benchmark_formatter", |
| 40 | + type=str, |
| 41 | + default="json", |
| 42 | + choices=["json", "osmo", "omniperf", "summary"], |
| 43 | + help="Metrics formatter", |
| 44 | +) |
35 | 45 |
|
36 | 46 | args = parser.parse_args() |
37 | 47 |
|
|
40 | 50 |
|
41 | 51 | from isaaclab_ovphysx.test.mock_interfaces import MockOvPhysxBindingSet, MockOvPhysxView |
42 | 52 |
|
43 | | -from isaaclab.test.benchmark import MethodBenchmarkRunner, MethodBenchmarkRunnerConfig |
| 53 | +from isaaclab.benchmark import MethodBenchmarkRunner, MethodBenchmarkRunnerConfig |
44 | 54 |
|
45 | 55 | # Suppress deprecation warnings during benchmarking |
46 | 56 | warnings.filterwarnings("ignore", category=DeprecationWarning) |
|
111 | 121 | PROPERTY_DEPENDENCIES = { |
112 | 122 | "root_link_lin_vel_w": ["root_link_vel_w"], |
113 | 123 | "root_link_ang_vel_w": ["root_link_vel_w"], |
114 | | - "root_link_lin_vel_b": ["root_link_vel_b"], |
115 | | - "root_link_ang_vel_b": ["root_link_vel_b"], |
| 124 | + "root_link_lin_vel_b": ["root_link_lin_vel_w", "root_link_quat_w"], |
| 125 | + "root_link_ang_vel_b": ["root_link_ang_vel_w", "root_link_quat_w"], |
116 | 126 | "root_com_pos_w": ["root_com_pose_w"], |
117 | 127 | "root_com_quat_w": ["root_com_pose_w"], |
118 | | - "root_com_lin_vel_b": ["root_com_vel_b"], |
119 | | - "root_com_ang_vel_b": ["root_com_vel_b"], |
| 128 | + "root_com_lin_vel_b": ["root_com_lin_vel_w", "root_link_quat_w"], |
| 129 | + "root_com_ang_vel_b": ["root_com_ang_vel_w", "root_link_quat_w"], |
120 | 130 | "root_com_lin_vel_w": ["root_com_vel_w"], |
121 | 131 | "root_com_ang_vel_w": ["root_com_vel_w"], |
122 | 132 | "root_link_pos_w": ["root_link_pose_w"], |
@@ -202,8 +212,8 @@ def gen_mock_data(_cfg: MethodBenchmarkRunnerConfig) -> dict: |
202 | 212 | runner = MethodBenchmarkRunner( |
203 | 213 | benchmark_name="ovphysx_rigid_object_data_benchmark", |
204 | 214 | config=config, |
205 | | - backend_type=args.backend, |
206 | | - output_path=args.output_dir, |
| 215 | + backend_type=args.benchmark_formatter, |
| 216 | + output_path=args.output_path, |
207 | 217 | use_recorders=True, |
208 | 218 | ) |
209 | 219 | runner.run_property_benchmarks( |
|
0 commit comments