-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README: refactor Source Installation section
- Loading branch information
1 parent
e3c83a1
commit 0b425d0
Showing
3 changed files
with
73 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
doc/source-installation-using-the-full-superbuild-installation-from-source.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Source Installation using the full Superbuild Installation from Source | ||
|
||
- Clone and build the robotology-superbuild following the steps in https://github.com/robotology/robotology-superbuild/blob/master/README.md. | ||
- `icub-models`, `YARP` (dependency of `yarp-matlab-bindings`): set the profile option `ROBOTOLOGY_ENABLE_CORE`. | ||
- `iDynTree`, `WBToolbox`, `qpOASES`, `yarp-matlab-bindings` and `matlab-whole-body-simulator`: set the profile option `ROBOTOLOGY_ENABLE_DYNAMICS` and CMake option `ROBOTOLOGY_USES_MATLAB`. | ||
|
||
After these steps, the repository `matlab-whole-body-simulator` has been cloned in `<ROBOTOLOGY_SUPERBUILD_SOURCE_DIR>/src/matlab-whole-body-simulator`. | ||
|
||
**Note 1:** In general, for selecting the profile CMake options according to the sub-projects to install, refer to the table in the section [Profile CMake Options](https://github.com/robotology/robotology-superbuild/blob/master/doc/profiles.md#profile-cmake-options). | ||
**Note 2:** By setting the profile `ROBOTOLOGY_ENABLE_DYNAMICS`in the superbuild cmake options, the `qpOASES` library will then be installed along with `iDynTree` as an external dependency. | ||
**Note 3:** Previously, two other optional QP solvers were available: OSQP and the native MATLAB solver `quadprog`. OSQP bindings and `quadprog` are not supported by the Simulink code generation build option in the `step_block` MATLAB System block. For this reason, the `step_block` MATLAB System block uses the qpOASES WBT block through a Simulink function call, and this choice is hardcoded in the class `Contacts`. As soon as the OSQP WBT block is created, it will replace the qpOASES Solver block. |
44 changes: 44 additions & 0 deletions
44
doc/source-installation-using-the-robotology-conda-packages.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Source Installation using the Dependencies from the Conda Robotology Channel | ||
|
||
It is recommended to install these dependencies using the [robotology-superbuild](https://github.com/robotology/robotology-superbuild) resources: | ||
- Either installing the full superbuild from source. | ||
- Either installing the required binary packages derived from the above listed dependencies, using the [miniforge conda distribution](https://github.com/conda-forge/miniforge) package manager, from the robotology channel. | ||
|
||
|
||
1. Install the `conda` miniforge distribution following https://github.com/robotology/robotology-superbuild/blob/master/doc/install-miniforge.md#linux. Remember to restart your shell session or run `source ~/.bashrc` (`~/.bash_profile` on MacOS) for the `conda init` command to take effect. | ||
2. Install Mamba, create a new environment and install the robotology dependency binaries: | ||
``` | ||
conda install mamba | ||
conda create -n robotologyenv | ||
conda activate robotologyenv | ||
mamba install -c robotology yarp-matlab-bindings idyntree qpoases icub-models wb-toolbox | ||
``` | ||
To read more about installing robotology-superbuild package binaries refer to https://github.com/robotology/robotology-superbuild/blob/master/doc/conda-forge.md#binary-installation. | ||
3. Check the MATLABPATH environment variable. It should now have... | ||
``` | ||
<user-home-dir>/miniforge3/envs/robotologyenv/mex: <user-home-dir>/miniforge3/envs/robotologyenv/share/WBToolbox: <user-home-dir>/miniforge3/envs/robotologyenv/share/WBToolbox/images | ||
``` | ||
Check the mex libraries... | ||
``` | ||
ls <user-home-dir>/miniforge3/envs/robotologyenv/mex/ | ||
``` | ||
Should return: | ||
``` | ||
+iDynTree | ||
+iDynTreeWrappers | ||
+wbc | ||
BlockFactory.mexmaci64 | ||
BlockFactory.tlc | ||
SwigGet.m | ||
SwigMem.m | ||
SwigRef.m | ||
iDynTreeMEX.mexmaci64 | ||
mesh2tri.m | ||
``` | ||
4. Clone the repository `matlab-whole-body-simulators` | ||
``` | ||
git clone https://github.com/dic-iit/matlab-whole-body-simulator.git | ||
``` | ||
5. Run matlab in the same `conda` environment. | ||
6. Change working directory to the root path of repository `matlab-whole-body-simulators`. | ||
7. Open and run the model `test_matlab_system_2020b.mdl`. |