Text this: Trajectory Planning of Energy Consumption Optimal Redundant Manipulators with Constraints