(step_timings: np.ndarray)
| 234 | |
| 235 | |
| 236 | def printSimulationPerfStats(step_timings: np.ndarray): |
| 237 | print("============================================") |
| 238 | print("SIMULATION") |
| 239 | print("Time elapsed: ", np.sum(step_timings)) |
| 240 | print( |
| 241 | "Mean timings time step: {mean:.2f} +/- {std:.2f} microseconds".format( |
| 242 | mean=np.mean(step_timings) * 1e6, std=np.std(step_timings) * 1e6 |
| 243 | ) |
| 244 | ) |
| 245 | print( |
| 246 | "Steps frequency: {freq:.2f} kHz".format( |
| 247 | freq=(step_timings.size) / np.sum(step_timings) * 1e-3 |
| 248 | ) |
| 249 | ) |
| 250 | print("============================================") |
| 251 | |
| 252 | |
| 253 | def runMujocoXML(model_path: str, args: SimulationArgs): |
no outgoing calls
no test coverage detected