A global approach to kinematic path planning to robots with holonomic and nonholonomic constraints