Reusing Python code from examples/unittest in benchmark
There two Python files that have been using for benchmark:
- from unit-test: https://gepgitlab.laas.fr/loco-3d/crocoddyl/blob/cpp_devel/unittest/bindings/utils.py
- from examples: https://gepgitlab.laas.fr/loco-3d/crocoddyl/blob/cpp_devel/examples/quadruped_utils.py and https://gepgitlab.laas.fr/loco-3d/crocoddyl/blob/cpp_devel/examples/biped_utils.py
The places were I used this are:
- https://gepgitlab.laas.fr/loco-3d/crocoddyl/blob/cpp_devel/benchmark/lqr.py#L2
- https://gepgitlab.laas.fr/loco-3d/crocoddyl/blob/cpp_devel/benchmark/hyq.py#L4
- https://gepgitlab.laas.fr/loco-3d/crocoddyl/blob/cpp_devel/benchmark/talos_legs.py#L4
Could @gsaurel help me to understand how we should organize this? It would be great if we can run a particular benchmark as:
make benchmark "myBenchmark"
Edited by Carlos Mastalli