Optimal trajectory planning of robot energy consumption based on improved sparrow search algorithm | Synapse