Planning movements of redundant robots using an analogic approach