Trajectory Optimization for Highly Articulated Robots based on Sparsity–Free Local Direct Collocation (International Journal of Applied Mathematics and Computer Science, 2025)