Source code for the publication "Socially competent robots"