| |
---|
| | 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() |
---|
| | |
---|
| | |
---|
| | |