Architectures and models for humanoid robots in collaborative working environments