-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cleanup * migration to wb5.0 * new yoga controller under testing * almost working yoga demo * working yoga in simulation * added compatibility with matlab 2017b * updated readme * bugfix after testing on iCubGenova04 * models ported to WBT5 * updated simulink GUI
- Loading branch information
1 parent
36366c7
commit 0567206
Showing
160 changed files
with
52,369 additions
and
70,336 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
*.mdl -crlf -diff -merge | ||
*.mat -crlf -diff -merge | ||
*.mlx -crlf -diff -merge | ||
|
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 |
---|---|---|
|
@@ -43,4 +43,3 @@ slprj/ | |
##--------------------------------------------------- | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
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
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
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
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
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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
# Configuration scripts | ||
|
||
A collection of scripts used for correctly configure the repo. | ||
|
||
- [export_WBC.m](export_WBC.m): run this script once. Then, digit the Matlab version in which you want to export the Simulink models. All models in the repo will be exported in that version. By default, Simulnk models in this repo are written using Matlab 2017b. **Remember: you cannot export a model in a Matlab version newer than the one you are using**! | ||
|
||
- [startup.m](startup.m): run this script once. Then, the path to the `matlab-wbc` folder will be permanently added to the `pathdef.m` file, which is saved inside the Matlab `userpath`. In order to have the `matlab-wbc` folder inside the Matlab path, it is required to start Matlab from the folder where the `pathdef.m` file is (in general, `~/Documents/MATLAB`). | ||
|
||
|
||
|
||
A collection of scripts used for configuring the repo. | ||
|
||
- [export_WBC.m](export_WBC.m): run this script. Then, digit the Matlab version in which you want to export the Simulink models. All models in the repo will be exported to that version. By default, Simulnk models in this repo are written using Matlab 2017b. **Remember: you cannot export a model in a Matlab version newer than the one you are using**! | ||
|
||
- [startup_WBC.m](startup_WBC.m): run this script. Then, the path to the `matlab-wbc` folder will be **permanently** added to your `pathdef.m` file, which will be saved inside the Matlab `userpath`. In order to have the `matlab-wbc` folder inside the Matlab path, it is **required** to start Matlab from the folder where the `pathdef.m` file is (i.e., from the folder that the `userpath` is pointing, usually `~/Documents/MATLAB`). |
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
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 @@ | ||
add_subdirectory(floating-base-balancing-torque-control) |
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,13 @@ | ||
# Controllers | ||
|
||
Simulink controllers for humanoid robots. | ||
|
||
## List of available controllers: | ||
|
||
- **fixed-base-joints-control** [[README]](fixed-base-joints-control/README.md) | ||
- **floating-base-balancing-position-control** [[README]](floating-base-balancing-position-control/README.md) | ||
- **floating-base-balancing-torque-control** [[README]](floating-base-balancing-torque-control/README.md) | ||
|
||
## Usage | ||
|
||
See corresponding READMEs, and check the [documentation](https://github.com/robotology-playground/whole-body-controllers/tree/master/doc) of the repo. |
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,21 @@ | ||
## Module description | ||
|
||
This module implements a simple torque control balancing strategy. The robot is assumed to have its `base_link` fixed on a pole. Input torques are the `gravity toruqes` which allow to perform **gravity compensation**. Optionally, it is also possible to move each controlled joint in order to track a desired joints trajectory. | ||
|
||
### Compatibility | ||
|
||
The folder contains the Simulink model `jointsControl.mdl`, which is generated by using Matlab R2017b. | ||
|
||
### Supported robots | ||
|
||
Currently, supported robots are: `iCubGenova04`, `iCunGenova02`, `icubGazeboSim`, `iCubGazeboV2_5`. | ||
|
||
## Module details | ||
|
||
### Configuration file | ||
|
||
At start, the module calls the initialization file `initJointsControl.m`. Once opened, this file contains some configuration variables. Please follow the instruction inside the script to properly configure your simulation. | ||
|
||
### Robot and demo specific configurations | ||
|
||
The gains and references for a specific robot (specified by the variable `YARP_ROBOT_NAME`) or a specific demo can be found in the folder `app/robots/YARP_ROBOT_NAME`. |
13 changes: 13 additions & 0 deletions
13
controllers/fixed-base-joints-control/app/robots/iCubGazeboV2_5/configJointsControl.m
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,13 @@ | ||
% CONFIGJOINTSCONTROL configures all the options associated to the | ||
% joints controller. | ||
% | ||
|
||
%% --- Initialization --- | ||
|
||
% Default behaviour: gravity compensation. If Config.MOVE_JOINTS = true, | ||
% the robot will also move all actuated joints following a sine trajectory | ||
Config.MOVE_JOINTS = false; | ||
|
||
% Max unsigned difference between two consecutive (measured) joint positions, | ||
% i.e. delta_jointPos = abs(jointPos(k) - jointPos(k-1)) [rad] | ||
Sat.maxJointsPositionDelta = 15*pi/180; |
Oops, something went wrong.