Skip to content

Commit 144332b

Browse files
author
Gabriele
committed
cleanup of documentation, cmake and models
1 parent a27a8c9 commit 144332b

File tree

15 files changed

+751
-725
lines changed

15 files changed

+751
-725
lines changed

CMakeLists.txt

+19-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,27 @@ cmake_minimum_required(VERSION 3.5)
55
project(whole-body-controllers)
66

77
option(WBC_EXPORT_AUTOGENERATED "Enable the target to export code generated with Simulink Coder" OFF)
8+
option(WBC_INSTALL_ALL_HOME_POS "Installation of all available home positions" ON)
9+
10+
# ======================
11+
# Install home positions
12+
# ======================
13+
14+
find_package(YARP REQUIRED)
15+
set(CMAKE_MODULE_PATH ${YARP_MODULE_PATH} ${CMAKE_MODULE_PATH})
16+
17+
include(YarpInstallationHelpers)
18+
yarp_configure_external_installation(wbc)
19+
20+
add_subdirectory(utilities)
21+
22+
# ======================
23+
# Autogeneration routine
24+
# ======================
825

926
if(NOT WBC_EXPORT_AUTOGENERATED)
1027
# Fake installation.
11-
install(CODE "MESSAGE(\"This repository simply acts as a container\")")
28+
install(CODE "MESSAGE(\"Disabled exporting of autogenerated c++ code from Simulink.\")")
1229
return()
1330
endif()
1431

@@ -73,4 +90,4 @@ add_custom_command(TARGET copy-autogenerated-models
7390
POST_BUILD
7491
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_BINARY_DIR}/autogenerated" "${AUTOGENERATED_WBC_SOURCE_DIR}/autogenerated"
7592
COMMENT "Copying generated files to ${AUTOGENERATED_WBC_SOURCE_DIR}/autogenerated"
76-
)
93+
)

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This repository depends upon the following Software:
2525
- [Gazebo Simulator](http://gazebosim.org/), default version **9.0**.
2626
- [gazebo-yarp-plugins](https://github.com/robotology/gazebo-yarp-plugins).
2727
- [icub-gazebo](https://github.com/robotology/icub-gazebo), [icub-gazebo-wholebody](https://github.com/robotology-playground/icub-gazebo-wholebody) and [icub-models](https://github.com/robotology/icub-models) to access iCub models.
28-
- [codyco-modules](https://github.com/robotology/codyco-modules) (**Optional**, for using [home positions](https://github.com/robotology/codyco-modules/tree/master/src/modules/torqueBalancing/app/robots) and [wholeBodyDynamics](https://github.com/robotology/codyco-modules/tree/master/src/devices/wholeBodyDynamics) device).
28+
- [codyco-modules](https://github.com/robotology/codyco-modules) (**Optional**, for using [wholeBodyDynamics](https://github.com/robotology/codyco-modules/tree/master/src/devices/wholeBodyDynamics) device).
2929
- [YARP](https://github.com/robotology/yarp) and [icub-main](https://github.com/robotology/icub-main).
3030

3131
## Installation and usage
@@ -77,6 +77,7 @@ Please refer to the [WBToolbox troubleshooting documentation](https://robotology
7777
- [fixed-base-joints-torque-control](controllers/fixed-base-joints-torque-control/README.md)
7878
- [floating-base-balancing-position-control](controllers/floating-base-balancing-position-control/README.md)
7979
- [floating-base-balancing-torque-control](controllers/floating-base-balancing-torque-control/README.md)
80+
- [simulink-balancing-simulator](controllers/simulink-balancing-simulator/README.md)
8081

8182
### Matlab functions library
8283

@@ -92,6 +93,10 @@ There is the possibility to generate c++ code from the Simulink models using [Si
9293

9394
When used for controlling real platforms, heavy Simulink models may violate the user-defined simulation time step, see also [this issue](https://github.com/robotology/wb-toolbox/issues/160). It seems a source of delay is the run-time update of the Simulink interface. For this reason, a [static GUI for running the models](library/matlab-gui) has been developed. If you want to run Simulink with the static GUI, run the [startModelWithStaticGui](controllers/floating-base-balancing-torque-control/startModelWithStaticGui.m) script.
9495

96+
### Home positions for yarpmotorgui
97+
98+
The repo contains a set of predefined [home positions](utilities/homePositions) to be used with the [yarpmotorgui](https://www.yarp.it/yarpmotorgui.html). By default, if the repo is installed through `robotology-superbuild`, the home positions are installed in the `robotology-superbuild/build/install` directory. Otherwise add the path to the [homePositions](utilities/homePositions) folder to the `YARP_DATA_DIRS` environmental variable in your `.bashrc` file . The command to use the home positions with the yarpmotorgui is `yarpmotorgui --from myHomePosFileName.ini`.
99+
95100
## Where do I find legacy materials?
96101

97102
Official legacy repositories are: [mex-wholebodymodel](https://github.com/robotology/mex-wholebodymodel) and [WBI-Toolbox-controllers](https://github.com/robotology-legacy/WBI-Toolbox-controllers). **Note**: these legacy repos contain undocumented/outdated code, and duplicated or not tested matlab functions. They also contain original code that has been tested on the robot in the past and then never used again, or code that will be ported in the main repository in the future.

controllers/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Simulink controllers for humanoid robots.
77
- **fixed-base-joints-torque-control** [[README]](fixed-base-joints-torque-control/README.md)
88
- **floating-base-balancing-position-control** [[README]](floating-base-balancing-position-control/README.md)
99
- **floating-base-balancing-torque-control** [[README]](floating-base-balancing-torque-control/README.md)
10+
- **simulink-balancing-simulator** [[README]](simulink-balancing-simulator/README.md)
1011

1112
## Plotting Utilities
1213

controllers/fixed-base-joints-torque-control/jointsControl.mdl

+30-30
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Model {
66
NumRootInports 0
77
NumRootOutports 0
88
ParameterArgumentNames ""
9-
ComputedModelVersion "1.360"
9+
ComputedModelVersion "1.361"
1010
NumModelReferences 0
1111
NumTestPointedSignals 0
1212
NumProvidedFunctions 0
@@ -193,9 +193,9 @@ Model {
193193
ModifiedByFormat "%<Auto>"
194194
LastModifiedBy "gnava"
195195
ModifiedDateFormat "%<Auto>"
196-
LastModifiedDate "Tue Oct 15 12:23:31 2019"
197-
RTWModifiedTimeStamp 493043011
198-
ModelVersionFormat "1.%<AutoIncrement:360>"
196+
LastModifiedDate "Wed Feb 19 15:30:22 2020"
197+
RTWModifiedTimeStamp 504027021
198+
ModelVersionFormat "1.%<AutoIncrement:361>"
199199
SampleTimeColors off
200200
SampleTimeAnnotations off
201201
LibraryLinkDisplay "disabled"
@@ -4480,7 +4480,7 @@ Model {
44804480
TiledPageScale 1
44814481
ShowPageBoundaries off
44824482
ZoomFactor "100"
4483-
SIDHighWatermark "3788"
4483+
SIDHighWatermark "3791"
44844484
Block {
44854485
BlockType Inport
44864486
Name "umin"
@@ -4519,20 +4519,20 @@ Model {
45194519
Block {
45204520
BlockType Demux
45214521
Name " Demux "
4522-
SID "479::3787"
4522+
SID "479::3790"
45234523
Ports [1, 1]
45244524
Position [270, 230, 320, 270]
4525-
ZOrder 137
4525+
ZOrder 140
45264526
Outputs "1"
45274527
}
45284528
Block {
45294529
BlockType S-Function
45304530
Name " SFunction "
4531-
SID "479::3786"
4531+
SID "479::3789"
45324532
Tag "Stateflow S-Function jointsControl 18"
45334533
Ports [4, 2]
45344534
Position [180, 102, 230, 203]
4535-
ZOrder 136
4535+
ZOrder 139
45364536
FunctionName "sf_sfun"
45374537
PortCounts "[4 2]"
45384538
SFunctionDeploymentMode off
@@ -4546,9 +4546,9 @@ Model {
45464546
Block {
45474547
BlockType Terminator
45484548
Name " Terminator "
4549-
SID "479::3788"
4549+
SID "479::3791"
45504550
Position [460, 241, 480, 259]
4551-
ZOrder 138
4551+
ZOrder 141
45524552
}
45534553
Block {
45544554
BlockType Outport
@@ -4559,51 +4559,51 @@ Model {
45594559
IconDisplay "Port number"
45604560
}
45614561
Line {
4562-
ZOrder 43
4562+
ZOrder 50
45634563
SrcBlock "umin"
45644564
SrcPort 1
45654565
DstBlock " SFunction "
45664566
DstPort 1
45674567
}
45684568
Line {
4569-
ZOrder 44
4569+
ZOrder 51
45704570
SrcBlock "umax"
45714571
SrcPort 1
45724572
DstBlock " SFunction "
45734573
DstPort 2
45744574
}
45754575
Line {
4576-
ZOrder 45
4576+
ZOrder 52
45774577
SrcBlock "u"
45784578
SrcPort 1
45794579
DstBlock " SFunction "
45804580
DstPort 3
45814581
}
45824582
Line {
4583-
ZOrder 46
4583+
ZOrder 53
45844584
SrcBlock "tol"
45854585
SrcPort 1
45864586
DstBlock " SFunction "
45874587
DstPort 4
45884588
}
45894589
Line {
45904590
Name "inRange"
4591-
ZOrder 47
4591+
ZOrder 54
45924592
Labels [0, 0]
45934593
SrcBlock " SFunction "
45944594
SrcPort 2
45954595
DstBlock "inRange"
45964596
DstPort 1
45974597
}
45984598
Line {
4599-
ZOrder 48
4599+
ZOrder 55
46004600
SrcBlock " Demux "
46014601
SrcPort 1
46024602
DstBlock " Terminator "
46034603
DstPort 1
46044604
}
46054605
Line {
4606-
ZOrder 49
4606+
ZOrder 56
46074607
SrcBlock " SFunction "
46084608
SrcPort 1
46094609
DstBlock " Demux "
@@ -4735,7 +4735,7 @@ Model {
47354735
TiledPageScale 1
47364736
ShowPageBoundaries off
47374737
ZoomFactor "100"
4738-
SIDHighWatermark "3788"
4738+
SIDHighWatermark "3791"
47394739
Block {
47404740
BlockType Inport
47414741
Name "u"
@@ -4756,20 +4756,20 @@ Model {
47564756
Block {
47574757
BlockType Demux
47584758
Name " Demux "
4759-
SID "485::3787"
4759+
SID "485::3790"
47604760
Ports [1, 1]
47614761
Position [270, 230, 320, 270]
4762-
ZOrder 137
4762+
ZOrder 140
47634763
Outputs "1"
47644764
}
47654765
Block {
47664766
BlockType S-Function
47674767
Name " SFunction "
4768-
SID "485::3786"
4768+
SID "485::3789"
47694769
Tag "Stateflow S-Function jointsControl 14"
47704770
Ports [2, 2]
47714771
Position [180, 100, 230, 160]
4772-
ZOrder 136
4772+
ZOrder 139
47734773
FunctionName "sf_sfun"
47744774
PortCounts "[2 2]"
47754775
SFunctionDeploymentMode off
@@ -4783,9 +4783,9 @@ Model {
47834783
Block {
47844784
BlockType Terminator
47854785
Name " Terminator "
4786-
SID "485::3788"
4786+
SID "485::3791"
47874787
Position [460, 241, 480, 259]
4788-
ZOrder 138
4788+
ZOrder 141
47894789
}
47904790
Block {
47914791
BlockType Outport
@@ -4796,38 +4796,38 @@ Model {
47964796
IconDisplay "Port number"
47974797
}
47984798
Line {
4799-
ZOrder 31
4799+
ZOrder 36
48004800
SrcBlock "u"
48014801
SrcPort 1
48024802
Points [120, 0]
48034803
DstBlock " SFunction "
48044804
DstPort 1
48054805
}
48064806
Line {
4807-
ZOrder 32
4807+
ZOrder 37
48084808
SrcBlock "delta_u_max"
48094809
SrcPort 1
48104810
DstBlock " SFunction "
48114811
DstPort 2
48124812
}
48134813
Line {
48144814
Name "noSpikes"
4815-
ZOrder 33
4815+
ZOrder 38
48164816
Labels [0, 0]
48174817
SrcBlock " SFunction "
48184818
SrcPort 2
48194819
DstBlock "noSpikes"
48204820
DstPort 1
48214821
}
48224822
Line {
4823-
ZOrder 34
4823+
ZOrder 39
48244824
SrcBlock " Demux "
48254825
SrcPort 1
48264826
DstBlock " Terminator "
48274827
DstPort 1
48284828
}
48294829
Line {
4830-
ZOrder 35
4830+
ZOrder 40
48314831
SrcBlock " SFunction "
48324832
SrcPort 1
48334833
DstBlock " Demux "

0 commit comments

Comments
 (0)