예제 #1
0
 def handle_shutdown(self, message):
     print "sim complete!", message.data
     if self.generate_video:
         image_util.generate_video(self.iteration_number)
     if message.data:
         with open('policy_list.json', 'w') as policy:
             #Saving only the last policy to be compared
             json.dump(self.policy_list[-1], policy)
 def handle_shutdown(self, message):
     print "sim complete!", message.data
     if self.generate_video:
         image_util.generate_video(self.iteration_number)
     if message.data:
         with open('policy_list.json', 'w') as policy:
             #Saving only the last policy to be compared
             json.dump(self.policy_list[-1], policy)
예제 #3
0
 def handle_shutdown(self, message):
     print "sim complete!", message.data
     if self.generate_video:
         image_util.generate_video(self.iteration_number)
     if message.data:
         with open('path_list.json', 'w') as path:
             #Saving the entire path to be confirmed
             json.dump(self.path_list, path)
         with open('policy_list.json', 'w') as policy:
             #Saving only the last policy to be compared
             json.dump(self.policy_list[-1], policy)
         with open('qlearn_policy_list.json', 'w') as qPolicy:
             json.dump(self.qlearn_policy_list[-1], qPolicy)
예제 #4
0
 def handle_shutdown(self, message):
     print "sim complete!", message.data
     if self.generate_video:
         image_util.generate_video(self.iteration_number)
     if message.data:
         with open('path_list.json', 'w') as path:
             #Saving the entire path to be confirmed
             json.dump(self.path_list, path)
         with open('policy_list.json', 'w') as policy:
             #Saving only the last policy to be compared
             json.dump(self.policy_list[-1], policy)
         with open('qlearn_policy_list.json', 'w') as qPolicy:
             json.dump(self.qlearn_policy_list[-1], qPolicy)
예제 #5
0
    def handle_shutdown(self, message):
        print "sim complete!", message.data

        if message.data:
            with open('texture_results.json', 'w') as tex:
                json.dump(self.texture_data, tex)
            with open('temperature_results.json', 'w') as temp:
                json.dump(self.temperature_data, temp)
            with open('probability_results.json', 'w') as prob:
                json.dump(self.probability_data, prob)

        if self.generate_video:
            image_util.generate_video(self.iteration_number)
        if message.data:
            #with open('path_list.json', 'w') as path:
            #Saving the entire path to be confirmed
            #    json.dump(self.path_list, path)
            with open('policy_list.json', 'w') as policy:
                #Saving only the last policy to be compared
                json.dump(self.policy_list[-1], policy)
예제 #6
0
    def handle_shutdown(self, message):
        print "sim complete!", message.data

        if message.data:
            with open('texture_results.json', 'w') as tex:
                json.dump(self.texture_data, tex)
            with open('temperature_results.json', 'w') as temp:
                json.dump(self.temperature_data, temp)
            with open('probability_results.json', 'w') as prob:
                json.dump(self.probability_data, prob)

        
        if self.generate_video:
            image_util.generate_video(self.iteration_number)
        if message.data:
            #with open('path_list.json', 'w') as path:
                #Saving the entire path to be confirmed
            #    json.dump(self.path_list, path)
            with open('policy_list.json', 'w') as policy:
                #Saving only the last policy to be compared
                json.dump(self.policy_list[-1], policy)
 def handle_shutdown(self, message):
     print "sim complete!", message.data
     if self.generate_video:
         image_util.generate_video(self.iteration_number)
 def handle_shutdown(self, message):
     print "sim complete!", message.data
     if self.generate_video:
         image_util.generate_video(self.iteration_number)
     '''