Diferencia entre revisiones de «OpenMR: Running the Examples»
De WikiRobotics
(→Python) |
|||
Línea 12: | Línea 12: | ||
* Make sure you have installed OpenRave with Python support | * Make sure you have installed OpenRave with Python support | ||
* Go to the openmr/examples directory | * Go to the openmr/examples directory | ||
− | * Modify the '''PYTHONPATH''' to include openrave | + | * Modify the '''PYTHONPATH''' to include openrave |
− | '''export PYTHONPATH=$PYTHONPATH: | + | '''export PYTHONPATH=$PYTHONPATH:`openrave-config --python-dir`''' |
* The python examples are ready! You can try this one: | * The python examples are ready! You can try this one: | ||
'''python Test-servocontroller-1.py''' | '''python Test-servocontroller-1.py''' |
Revisión actual del 01:26 17 oct 2010
Linux
C++
- Go to the openmr/examples directory
- Execute cmake
cmake .
- Compile with make:
make
- The examples are ready. Try this one:
./Test-servocontroller-1
Python
- Make sure you have installed OpenRave with Python support
- Go to the openmr/examples directory
- Modify the PYTHONPATH to include openrave
export PYTHONPATH=$PYTHONPATH:`openrave-config --python-dir`
- The python examples are ready! You can try this one:
python Test-servocontroller-1.py