changed origin to the coord which height is ground
initialize function for cart.