Commit 276da11b authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

croccodyl

parent b61f1676
......@@ -11,3 +11,7 @@ Run examples available on the hpp-benchmark package.
## RBPRM
Run examples available on the hpp-rbprm-corba package.
## Crocoddyl
Run examples available on the croccodyl package.
## Crocoddyl
Run examples available on the crocoddyl package.
## Dependencies
- [pinocchio](https://github.com/stack-of-tasks/pinocchio)
- [gepetto-viewer-corba](https://github.com/gepetto/gepetto-viewer-corba)
- [example-robot-data](https://github.com/gepetto/example-robot-data)
- [croccodyl](https://github.com/loco-3d/crocoddyl)
```
py=27
qt=4
sudo apt install -qqy robotpkg-py${py}-qt${qt}-gepetto-viewer-corba robotpkg-py${py}-crocoddyl robotpkg-example-robot-data
```
## Available options
Look at `./crocoddyl.py -h` to see the list of available scenarii.
## Run
```
gepetto-gui &
./crocoddyl.py
```
#!/usr/bin/env python2
from argparse import ArgumentParser
from pathlib import Path
from subprocess import Popen
SCENARII = ['bipedal_walking_from_foot_traj', 'jump', 'quadrupedal_walking_balancing', 'salto', 'talos_arm', 'walk']
parser = ArgumentParser()
parser.add_argument('scenario', nargs='?', default=SCENARII[0], choices=SCENARII)
parser.add_argument(
'--crocoddyl', default='/local/users/gsaurel/loco-3d/crocoddyl', help='TODO: these files should be installed')
def main(crocoddyl, scenario):
script = Path(crocoddyl) / 'examples' / (scenario + '.py')
Popen(['python2', str(script), 'disp'], cwd=crocoddyl)
if __name__ == '__main__':
main(**vars(parser.parse_args()))
......@@ -4,9 +4,9 @@ Load a robot in a viewer, and put it in a standard posture.
## Dependencies
- [pinocchio](../../../stack-of-tasks/pinocchio)
- [gepetto-viewer-corba](../../../gepetto/gepetto-viewer-corba)
- [example-robot-data](../../../gepetto/example-robot-data)
- [pinocchio](https://github.com/stack-of-tasks/pinocchio)
- [gepetto-viewer-corba](https://github.com/gepetto/gepetto-viewer-corba)
- [example-robot-data](https://github.com/gepetto/example-robot-data)
```
py=27
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment