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 [2019/05/06 14:12] – [Installation] dgarcia | tutorials:object_manipulation_system [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 14: | Line 14: | ||
===== Installation ===== | ===== Installation ===== | ||
- | There are 3 things you need to install. | + | **First** you will need to install the humanoid robot Simulator. So follow [[tutorials: |
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. | 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. | ||
Line 30: | Line 30: | ||
<code bash> | <code bash> | ||
- | cd ~/python/acos | + | cd ~/python/arcos |
source bin/ | source bin/ | ||
</ | </ | ||
Line 40: | Line 40: | ||
</ | </ | ||
- | **OMS** is written in Python 3, and we tried to use only standard libraries. Before installing **OMS** you will have to install | + | Now follow |
- | + | ||
- | numpy scipy matplotlib | + | |
- | + | ||
- | 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: | + | |
- | + | ||
- | It is very important you make sure you have pyrovito installed. Follow [[tutorials: | + | |
- | + | ||
- | cd ~/local/src/ | + | |
- | git clone ssh:// | + | |
- | git checkout arch-devel | + | |
- | + | ||
- | This is an internal repository, so if you do not have access, ask [[people: | + | |
- | + | ||
- | Follow | + | |
- | + | ||
===== Contributing ===== | ===== Contributing ===== | ||
Line 72: | Line 56: | ||
It is also possible to execute **OMS** with the robot. Inside the **OMS** repository some instructions are provided to get a basic setup going. Here one can learn how to execute it with the entire robot. It is worth mentioning that **OMS** and the robot simulator are not 100% compatible (mainly because they use different Python versions) so a //glue// script was developed to have an interface between the two. This //glue// is not part of the official simulator, because when the simulator is ported to Python3/ | It is also possible to execute **OMS** with the robot. Inside the **OMS** repository some instructions are provided to get a basic setup going. Here one can learn how to execute it with the entire robot. It is worth mentioning that **OMS** and the robot simulator are not 100% compatible (mainly because they use different Python versions) so a //glue// script was developed to have an interface between the two. This //glue// is not part of the official simulator, because when the simulator is ported to Python3/ | ||
- | |||
- | First checkout the branch where the script was included: | ||
- | |||
- | cd {CMOC_REPO_PATH} | ||
- | git checkout glue | ||
| | ||
Now, start a YARP server. | Now, start a YARP server. | ||
Line 84: | 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 '' | ||
Line 106: | Line 80: | ||
python glue.py | 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 139: | Line 118: | ||
" | " | ||
" | " | ||
+ | " | ||
" | " | ||
} | } |
tutorials/object_manipulation_system.1557151943.txt.gz · Last modified: 2022/09/20 00:08 (external edit)