Sliding mode control to address uncertainties on constrained motion