discard
1 parent 470efea commit 3217963887e9e42010b24c2c231cd13ed82b7fb0
@koki koki authored on 2 Nov 2022
Showing 1 changed file
View
5
scripts/map_changer
from std_srvs.srv import Empty
 
 
 
class MultiMapServer():
class MultiMapChanger():
def __init__(self):
yaml = ruamel.yaml.YAML()
## Read multimaps directory
self.change_point_num = np.array(self.change_point_num, dtype=np.uint16)
## 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
 
 
if __name__ == '__main__':
rospy.init_node("map_changer")
mms = MultiMapServer()
mmc = MultiMapChanger()
rospy.spin()