Writing /var/lib/dokuwiki/data/meta/tutorials/object_manipulation_system.meta failed
Unable to save metadata file. Hint: disk full; file permissions; safe_mode setting.
tutorials:object_manipulation_system
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:object_manipulation_system [2018/12/24 23:23] – [Execute with Whole robot] dgarcia | tutorials:object_manipulation_system [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 14: | Line 14: | ||
===== Installation ===== | ===== Installation ===== | ||
- | **OMS** is written in Python 3, and we tried to use only standard libraries. Before installing **OMS** you will have to install the following dependencies. Remember to install the versions | + | **First** you will need to install the humanoid robot Simulator. So follow [[tutorials: |
- | numpy scipy matplotlib | + | When you have installed the Humanoid Robot Simulator, you will need to create a Python virtual environment. **Please note that OMS uses Python3**, do not create a Python2 virtualenv, as it will not work. |
- | First you need to install YARP in your computer. **OMS** is writen in Python 3 so, when you generate the bidings be carefull to select Python 3, not Python 2. Unfortunately YARP only allows one type of binding, so if you generate Python3 bidings, you will loose Python 2 bidings. A fix that I implemented was to install a container (or chroot) with YARP compiled for Python 2 to use with the [[tutorials: | + | <code bash> |
- | + | mkdir ~/python | |
- | It is very important you make sure you have pyrovito installed. Follow [[tutorials: | + | cd python |
- | + | virtualenv --python=python3.7 arcos | |
- | | + | cd arcos |
+ | | ||
git clone ssh:// | git clone ssh:// | ||
- | git checkout arch-devel | + | </ |
+ | |||
+ | Now that you have created the virtual environment we need t activate it. Remember to do this __before__ working with OMS __always__ | ||
- | This is an internal repository, so if you do not have access, ask [[people: | + | <code bash> |
+ | cd ~/ | ||
+ | source bin/ | ||
+ | </ | ||
- | Follow | + | When the virtual environment is activated and you want to exit, just type |
+ | <code bash> | ||
+ | deactivate | ||
+ | </ | ||
+ | Now follow the '' | ||
===== Contributing ===== | ===== Contributing ===== | ||
Line 43: | Line 53: | ||
===== Execute with Whole robot ===== | ===== Execute with Whole robot ===== | ||
- | It is also possible to execute | + | **Warning!** this functionality |
- | First checkout | + | It is also possible to execute **OMS** with the robot. Inside |
- | + | ||
- | cd {CMOC_REPO_PATH} | + | |
- | git checkout | + | |
| | ||
Now, start a YARP server. | Now, start a YARP server. | ||
Line 56: | Line 63: | ||
cd ~/local/src | cd ~/local/src | ||
- | vfclik -i lwr -i right -d robot_descriptions/arcosbot/ | + | vfclik -s -n /arcosbot-real -i lwr -i right -d robot_descriptions/ |
- | + | ||
- | In a separate terminal, execute '' | + | |
- | + | ||
- | cd ~/ | + | |
- | vfclik | + | |
In another terminal execute the hands simulator: | In another terminal execute the hands simulator: | ||
cd ~/local/src | cd ~/local/src | ||
- | sahand_yarp_sim -s -d -n -f robot_descriptions/ | + | sahand_yarp_sim -b / |
| | ||
Then execute '' | Then execute '' | ||
cd ~/local/src | cd ~/local/src | ||
- | pyrovito -r lwr --arm_right | + | pyrovito |
| | ||
Finally execute '' | Finally execute '' | ||
cd ~/ | cd ~/ | ||
- | python glue | + | python glue.py |
| | ||
+ | If you want to run with the finger calibration | ||
+ | |||
+ | cd ~/ | ||
+ | python glue.py -c ~/ | ||
+ | |||
If you want to ignore **OMS** commands and move the robot from the keyboard add the '' | If you want to ignore **OMS** commands and move the robot from the keyboard add the '' | ||
Line 98: | Line 105: | ||
python3 test_collector.py -s ~/ | python3 test_collector.py -s ~/ | ||
| | ||
- | Now a configuration file has to be created so that the '' | + | Now a configuration file has to be created so that the '' |
- | <code - cylinder_configuration.json> | + | <code - conf_cylinder.json> |
{ | { | ||
" | " | ||
Line 111: | Line 118: | ||
" | " | ||
" | " | ||
+ | " | ||
" | " | ||
} | } | ||
</ | </ | ||
+ | |||
+ | If you executed '' | ||
+ | |||
+ | cd ~/ | ||
+ | python3 test_pseudo_ai.py -i ~/ | ||
+ | | ||
+ | Finally, execute the '' | ||
+ | |||
+ | oms_core.py -c .oms_data/ |
tutorials/object_manipulation_system.1545693809.txt.gz · Last modified: 2022/09/20 00:08 (external edit)