added possibility to automatically obtain dirt map size and resolution from /map topic, added gridDimensions parameter to generally handle the grid size