Generating and tracking trajectories for a maneuverable underactuated reconfigurable agricultural robot