Learning in Robotics using Bayesian Nonparametrics