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 gaze.lua) are devised to perform a set of actions, including moving, gazing, blinking, face expressions, etc, which can be easily handled through rpc commands. Moreover, these calls can be managed directly 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. Several examples are available in the repo.
- Clone https://github.com/robotology/funny-things
- Compile the project
cdinto the repo folder (./funny-things)mkdir buildccmake ../makemake install
- Open
icubDemoScripts(oricubDemoScriptsSIMto 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
yarpserverandiCub_SIMon simulator). - If they are not running yet, open the emotions and speech applications:
Face_ExpressionsiCubSpeech* Open theicubDemoScripts(oricubDemoScriptsSIM) app and launch and connect modules. * On the terminal, go to the./funny-things/app/scripts/shellsfolder.
- Run any desired command from the command line as
./<scriptname>.sh <command>- eg./isp-movements welcome. - If new functionality is required, the easiest procedure is to copy an existing
.shwith another name (tg2.shcan be a good starting point), and modify it to suit your needs.
For more info, see:
