A Method of Spatial Curve Tracing Control of an Articulated Robot