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 21:15] – [The Object Manipulation System (OMS)] 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 42: | Line 52: | ||
===== Execute with Whole robot ===== | ===== Execute with Whole robot ===== | ||
+ | |||
+ | **Warning!** this functionality is currently broken in master, because of some changes that were introduced for allowing interactive model parameters modifications. | ||
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 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 91: | Line 98: | ||
* $s$ rotates the robot around '' | * $s$ rotates the robot around '' | ||
- | The following commands are for **OMS**, so they should be executed in its environment //(chroot, container, python virtual environment)// | + | The following commands are for **OMS**, so they should be executed in its environment //(chroot, container, python virtual environment)// |
+ | |||
+ | First execute the '' | ||
cd ~/ | cd ~/ | ||
python3 test_collector.py -s ~/ | python3 test_collector.py -s ~/ | ||
+ | | ||
+ | Now a configuration file has to be created so that the '' | ||
+ | |||
+ | <code - conf_cylinder.json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | If you executed '' | ||
+ | |||
+ | cd ~/ | ||
+ | python3 test_pseudo_ai.py -i ~/ | ||
+ | | ||
+ | Finally, execute the '' | ||
+ | |||
+ | oms_core.py -c .oms_data/ |
tutorials/object_manipulation_system.1545686143.txt.gz · Last modified: 2022/09/20 00:08 (external edit)