waits for init costmap