Nonsmooth Trajectory Optimization for Wheeled Balancing Robots With Contact Switches and Impacts | IEEE Journals & Magazine | IEEE Xplore