funny-things
is a repository which contains, among other funny things, a set of modules for easy scripting and execution of non-interactive (pre-programmed) demos. These modules (funnyPostures
, iCubBlinker
and iCubBreather
) are devised to perform a set of actions, including moving, "breathing", blinking, face expressions, etc, which can be easily handled through rpc
commands. It might be useful to automatize the management of these modules not directly from such rpc
commands, but through the use of bash (.sh
) scripts, which allow easy synchronization, ordering and test of these calls so that they can be predefined for particular demos.
- Clone https://github.com/robotology/funny-things
- Compile the project
cd
into the repo folder (./funny-things
)mkdir build
ccmake ../
make
make install
- Open
icubDemoScripts
(oricubDemoScriptsSIM
to work on the simulator) template, adapt them and save as apps. - Open or create a new script file (
.sh
) and modify or add any commands to suit your demo needs. - Set robot environment (start robot or run
yarpserver
andiCub_SIM
on simulator). - Open the
icubDemoScripts
(oricubDemoScriptsSIM
) app and launch and connect modules. - On the terminal, go to the
./funny-things/app/scripts/shells
folder. - Run any desired command from the command line as
./<scriptname>.sh <command>
- eg./isp-movements welcome
For more info, see: