diff --git a/scripts/map_changer b/scripts/map_changer index da454c2..10e3792 100755 --- a/scripts/map_changer +++ b/scripts/map_changer @@ -9,7 +9,7 @@ -class MultiMapServer(): +class MultiMapChanger(): def __init__(self): yaml = ruamel.yaml.YAML() @@ -29,6 +29,7 @@ ## Subscribe current waypoint number self.waypoint_num = 0 self.wp_num_sub = rospy.Subscriber("/waypoint_num", UInt16, self.waypoint_num_callback) + ## Service clients self.change_map = rospy.ServiceProxy("/change_map", LoadMap) self.amcl_update = rospy.ServiceProxy("/request_nomotion_update", Empty) return @@ -70,6 +71,6 @@ if __name__ == '__main__': rospy.init_node("map_changer") - mms = MultiMapServer() + mmc = MultiMapChanger() rospy.spin()