Rapid Motion Generation Based on Adaptive Algorithm for Service Robots