A Method for Trajectory Optimization of Robots having Contacts or Motion Constraints | IEEE Conference Publication | IEEE Xplore