Tube model predictive control for motion planning of robots in environments with dynamic obstaclesÂ