add setParams function to robotCar