modify checking connection in init of kobuki.